/* ========================================
   FRACTALLA - Core Styles
   Variables, Base Layout, Animations
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cosmic color system */
    --void-black: #000000;
    --deep-space: #0a0a12;
    --cosmic-purple: #1a0b2e;
    --nebula-violet: #2d1b4e;
    --stardust-blue: #16213e;

    /* Mystical accents */
    --celestial-gold: #ffd89b;
    --aurora-cyan: #19f2ff;
    --spirit-purple: #a78bfa;
    --ether-pink: #f0abfc;
    --divine-white: #ffffff;

    /* Sacred geometry gradients */
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-aurora: linear-gradient(135deg, #19f2ff 0%, #a78bfa 50%, #f0abfc 100%);
    --gradient-celestial: radial-gradient(circle, rgba(167,139,250,0.3) 0%, rgba(25,242,255,0.1) 50%, transparent 100%);

    /* Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Mystical glow */
    --glow-cyan: 0 0 20px rgba(25, 242, 255, 0.4), 0 0 40px rgba(25, 242, 255, 0.2);
    --glow-purple: 0 0 20px rgba(167, 139, 250, 0.4), 0 0 40px rgba(167, 139, 250, 0.2);
    --glow-gold: 0 0 20px rgba(255, 216, 155, 0.4), 0 0 40px rgba(255, 216, 155, 0.2);
}

/* ========================================
   BASE LAYOUT - Immersive Canvas
   ======================================== */
body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--void-black);
    color: var(--divine-white);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Cosmic background with particle field effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 77% 88%, rgba(255, 255, 255, 0.15), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 120s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Aurora gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(167, 139, 250, 0.08), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(25, 242, 255, 0.06), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(240, 171, 252, 0.04), transparent 50%);
    animation: auroraDrift 30s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes starfield {
    from { background-position: 0% 0%; }
    to { background-position: 100% 100%; }
}

@keyframes auroraDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(3%, 3%) rotate(3deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes mandalaGlow {
    0%, 100% {
        box-shadow:
            0 0 2px 1px rgba(255, 255, 255, 0.05),
            0 0 60px rgba(25, 242, 255, 0.2),
            0 0 120px rgba(167, 139, 250, 0.15),
            inset 0 0 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow:
            0 0 2px 1px rgba(255, 255, 255, 0.08),
            0 0 80px rgba(167, 139, 250, 0.25),
            0 0 140px rgba(25, 242, 255, 0.2),
            inset 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes orbRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cosmicSpin {
    to { transform: rotate(360deg); }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-aurora);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--spirit-purple);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

/* ========================================
   GDPR CONSENT BANNER
   ======================================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--music-panel-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(167, 139, 250, 0.15);
    padding: 1.5rem 2rem;
    z-index: 10000;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.consent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aurora-cyan), var(--spirit-purple));
    border-radius: 50%;
    box-shadow: var(--glow-purple);
}

.consent-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--void-black);
    stroke-width: 2.5;
}

.consent-text {
    flex: 1;
}

.consent-text h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--divine-white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.consent-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.consent-link {
    color: var(--aurora-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.consent-link:hover {
    color: var(--spirit-purple);
    border-bottom-color: var(--spirit-purple);
}

.consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.consent-btn {
    padding: 0.7rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.consent-btn-primary {
    background: var(--music-accent);
    color: var(--void-black);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

.consent-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(167, 139, 250, 0.6);
}

.consent-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
}

.consent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--divine-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem 1.5rem;
    }

    .consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .consent-icon {
        display: none;
    }

    .consent-text h3 {
        font-size: 1.1rem;
    }

    .consent-text p {
        font-size: 0.9rem;
    }

    .consent-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .consent-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}
