/**
 * Truth Ripple & Sacred Enhancement Styles
 * Visual effects for deeper spiritual resonance
 */

/* ==========================================
   TRUTH RIPPLE EFFECT
   ========================================== */

.truth-ripple-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.truth-ripple-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border: 2px solid var(--spiral-gold);
    border-radius: 50%;
    opacity: 1;
    animation: truthRippleExpand 1.2s ease-out forwards;
}

.truth-ripple-ring:nth-child(1) { animation-delay: 0s; }
.truth-ripple-ring:nth-child(2) { animation-delay: 0.15s; border-color: var(--spiral-violet); }
.truth-ripple-ring:nth-child(3) { animation-delay: 0.3s; border-color: var(--love-pink); }

@keyframes truthRippleExpand {
    0% {
        width: 10px;
        height: 10px;
        opacity: 1;
        border-width: 3px;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        border-width: 1px;
    }
}

.truth-center-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--spiral-gold);
    text-shadow: 0 0 20px var(--spiral-gold), 0 0 40px var(--spiral-violet);
    animation: truthFlash 0.8s ease-out forwards;
}

@keyframes truthFlash {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

/* Truth activated state for elements */
.truth-activated {
    animation: truthGlow 0.8s ease-out !important;
}

@keyframes truthGlow {
    0% {
        filter: drop-shadow(0 0 5px var(--spiral-gold));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--spiral-gold)) drop-shadow(0 0 60px var(--spiral-violet));
    }
    100% {
        filter: none;
    }
}

/* Mini ripple for scroll reveals */
.mini-truth-ripple {
    position: fixed;
    width: 10px;
    height: 10px;
    border: 1px solid var(--spiral-violet);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: miniRipple 0.8s ease-out forwards;
}

@keyframes miniRipple {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.8;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* ==========================================
   GLYPH OF THE DAY
   ========================================== */

.glyph-of-day {
    max-width: 400px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.glyph-of-day.visible {
    opacity: 1;
    transform: translateY(0);
}

.glyph-of-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.glyph-day-header {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--spiral-violet);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.glyph-day-symbol {
    font-size: 4rem;
    color: var(--spiral-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(155, 89, 182, 0.4);
    margin-bottom: 1rem;
    animation: glyphFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.glyph-day-symbol:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes glyphFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.glyph-day-name {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    color: var(--spiral-light);
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.glyph-day-meaning {
    font-style: italic;
    color: var(--spiral-violet);
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ==========================================
   COSMIC DUST PARTICLES
   ========================================== */

.cosmic-dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cosmic-dust {
    position: absolute;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.8) 0%, rgba(155, 89, 182, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    animation: cosmicFloat linear infinite;
    opacity: 0.6;
}

@keyframes cosmicFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================
   ACTIVATION PULSE
   ========================================== */

.activation-pulse {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(155, 89, 182, 0.2) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
}

.activation-pulse.active {
    animation: activationPulse 1.8s ease-out forwards;
}

@keyframes activationPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300vmax;
        height: 300vmax;
        opacity: 0;
    }
}

/* ==========================================
   TRUTH REVEALED STATE
   ========================================== */

.truth-revealed {
    animation: truthReveal 0.6s ease-out forwards !important;
}

@keyframes truthReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ==========================================
   ENHANCED HOVER STATES
   ========================================== */

.coherence-card:hover .card-symbol,
.question-block:hover h3::before,
.concept-section:hover .concept-symbol {
    animation: symbolPulse 0.6s ease-in-out;
}

@keyframes symbolPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px currentColor;
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 30px currentColor, 0 0 60px var(--spiral-gold);
    }
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .glyph-of-day {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .glyph-day-symbol {
        font-size: 3rem;
    }
    
    .cosmic-dust-container .cosmic-dust {
        display: none; /* Reduce particles on mobile for performance */
    }
    
    .cosmic-dust-container .cosmic-dust:nth-child(-n+10) {
        display: block;
    }
}
