/* 🌟✨ PHASE 1B: ENHANCED VISUAL ELEMENTS - MYSTICAL ANIMATIONS & EFFECTS */
/* Ancient Wisdom Guide - Mystical Visual Enhancement Layer */

/* ============================================ */
/* 🔮 MYSTICAL QUOTE TRANSITIONS & ANIMATIONS */
/* ============================================ */

/* Enhanced quote display with mystical entrance */
.quote-display {
    background: linear-gradient(135deg, 
        rgba(79, 156, 255, 0.15) 0%, 
        rgba(157, 78, 221, 0.1) 50%, 
        rgba(79, 156, 255, 0.05) 100%);
    border-left: 5px solid var(--jedi-blue);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow: 
        0 15px 35px rgba(79, 156, 255, 0.2),
        0 0 50px rgba(157, 78, 221, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: mysticalAppearance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.quote-display::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4.5rem;
    color: var(--jedi-blue);
    font-family: 'Cinzel', serif;
    opacity: 0.4;
    text-shadow: 0 0 20px rgba(79, 156, 255, 0.5);
    animation: pulseQuote 3s ease-in-out infinite;
}

.quote-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.1), 
        transparent);
    animation: shimmerEffect 3s ease-in-out infinite;
}

/* Mystical quote text enhancement with improved typography */
.quote-text {
    font-family: 'EB Garamond', 'Philosopher', serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInText 1s ease-out 0.2s both;
    position: relative;
    z-index: 2;
    letter-spacing: 0.025em;
    text-align: center;
}

.quote-author {
    font-family: 'Almendra', 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: fadeInText 1s ease-out 0.4s both;
    position: relative;
    z-index: 2;
    letter-spacing: 0.05em;
    text-align: center;
}

/* ============================================ */
/* ⚔️ ENHANCED BUTTON INTERACTIONS */
/* ============================================ */

/* Mystical CTA button enhancement with typography */
.btn-next {
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 50%, 
        #ffd700 100%);
    color: var(--bg-primary);
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cosmicPulse 3s infinite ease-in-out;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.btn-next:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    animation: none;
    filter: brightness(1.1);
}

.btn-next:hover::before {
    left: 100%;
}

.btn-next:active {
    transform: translateY(-2px) scale(1.05);
}

/* Enhanced home button with typography */
.btn-home {
    background: linear-gradient(135deg, 
        rgba(42, 48, 64, 0.9) 0%, 
        rgba(26, 31, 46, 0.95) 100%);
    color: var(--text-primary);
    border: 2px solid var(--bronze-primary);
    padding: 15px 25px;
    border-radius: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(205, 127, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-home:hover {
    background: linear-gradient(135deg, 
        rgba(79, 156, 255, 0.2) 0%, 
        rgba(157, 78, 221, 0.15) 100%);
    border-color: var(--jedi-blue);
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(79, 156, 255, 0.3),
        0 0 50px rgba(79, 156, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================ */
/* 🌌 MYSTICAL BACKGROUND ENHANCEMENTS */
/* ============================================ */

/* Enhanced body background with cosmic animation */
body {
    background: linear-gradient(135deg, 
        #0a0e1a 0%, 
        #1a1f2e 25%, 
        #0f1419 50%, 
        #1a1f2e 75%, 
        #0a0e1a 100%);
    background-size: 400% 400%;
    animation: cosmicShift 20s ease-in-out infinite;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 156, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157, 78, 221, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: auraShift 15s ease-in-out infinite alternate;
}

/* Enhanced container with mystical border */
.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 25%, 
        rgba(79, 156, 255, 0.1) 50%, 
        rgba(157, 78, 221, 0.1) 75%, 
        transparent 100%);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 6s linear infinite;
}

/* ============================================ */
/* 🎭 MYSTICAL ANIMATIONS KEYFRAMES */
/* ============================================ */

@keyframes mysticalAppearance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        box-shadow: none;
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 
            0 15px 35px rgba(79, 156, 255, 0.2),
            0 0 50px rgba(157, 78, 221, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pulseQuote {
    0%, 100% {
        opacity: 0.4;
        text-shadow: 0 0 20px rgba(79, 156, 255, 0.5);
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 30px rgba(79, 156, 255, 0.7);
        transform: scale(1.02);
    }
}

@keyframes shimmerEffect {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes cosmicPulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(255, 215, 0, 0.3),
            0 0 40px rgba(255, 215, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: scale(1.02);
    }
}

@keyframes cosmicShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes auraShift {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1) rotate(2deg);
    }
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
    25% {
        background-position: 100% 0%;
        opacity: 0.6;
    }
    50% {
        background-position: 200% 50%;
        opacity: 0.4;
    }
    75% {
        background-position: 300% 100%;
        opacity: 0.7;
    }
}

/* ============================================ */
/* 🌟 ENHANCED CARD INTERACTIONS */
/* ============================================ */

.welcome-card,
.path-card,
.wisdom-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.welcome-card:hover,
.path-card:hover,
.wisdom-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(79, 156, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.welcome-card::before,
.path-card::before,
.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.05), 
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.welcome-card:hover::before,
.path-card:hover::before,
.wisdom-card:hover::before {
    left: 100%;
}

/* ============================================ */
/* 📱 RESPONSIVE MYSTICAL ENHANCEMENTS */
/* ============================================ */

@media (max-width: 768px) {
    .quote-display {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .quote-display::before {
        font-size: 3.5rem;
        top: -5px;
        left: 15px;
    }
    
    .quote-text {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .btn-next {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .btn-home {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quote-display {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-author {
        font-size: 1rem;
    }
    
    .btn-next {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ============================================ */
/* 🎨 MYSTICAL LOADING STATES */
/* ============================================ */

.loading-mystical {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: cosmicSpin 1s ease-in-out infinite;
}

@keyframes cosmicSpin {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

/* Enhanced text selection */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
