/* ======================================================
   NIGHTANGELS ? THEME.CSS
   Base universelle multi-univers
====================================================== */

/* ======================================================
   VARIABLES PAR DÉFAUT
====================================================== */

:root{

    --theme-bg:#050505;
    --theme-bg-secondary:#111111;

    --theme-primary:#888888;
    --theme-primary-light:#ffffff;

    --theme-gold:#d4c3a3;

    --theme-text:#f5f5f5;
    --theme-text-secondary:#b8b8b8;

    --theme-title:#ffffff;

    --theme-border:
    rgba(255,255,255,0.08);

    --theme-glow:
    rgba(255,255,255,0.12);

    --hero-overlay:
    rgba(0,0,0,0.72);

    --hero-overlay-strong:
    rgba(0,0,0,0.92);

    --hero-image:none;
}

/* ======================================================
   GLOBAL RESET
====================================================== */

*{

    box-sizing:border-box;
}

/* ======================================================
   GLOBAL UNIVERSE
====================================================== */

body[data-universe]{

    background:
    linear-gradient(
    to bottom,
    var(--theme-bg),
    var(--theme-bg-secondary)
    );

    color:var(--theme-text);
}

/* ======================================================
   PAGE TRANSITION
====================================================== */

#pageTransition{

    position:fixed;

    inset:0;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    z-index:99999;

    transition:
    opacity 0.8s ease,
    visibility 0.8s ease,
    backdrop-filter 1s ease,
    background 1s ease;
}

/* =========================================
DEFAULT DARK TRANSITION
========================================= */

#pageTransition.active{

    opacity:1;

    visibility:visible;

    backdrop-filter:
    blur(12px);

    background:
    radial-gradient(
    circle,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.96)
    );
}

/* =========================================
GAIA PORTAL TRANSITION
========================================= */

#pageTransition.portal-open{

    opacity:1;

    visibility:visible;

    backdrop-filter:
    blur(18px)
    brightness(1.35);

    background:
    radial-gradient(
    circle at center,
    rgba(255,248,220,1) 0%,
    rgba(255,230,160,0.96) 18%,
    rgba(176,126,74,0.75) 42%,
    rgba(28,18,8,0.94) 100%
    );

    animation:
    portalFlash 1.5s ease forwards;
}

/* =========================================
PORTAL FLASH
========================================= */

@keyframes portalFlash{

    0%{

        opacity:0;

        transform:
        scale(0.96);
    }

    30%{

        opacity:1;

        transform:
        scale(1.02);
    }

    100%{

        opacity:1;

        transform:
        scale(1);
    }
}

/* ======================================================
   GENERIC SECTION
====================================================== */

.theme-section{

    position:relative;

    padding:
    120px 20px;
}

/* ======================================================
   SECTION TITLES
====================================================== */

.section-title{

    margin-bottom:25px;

    font-size:clamp(2.5rem,6vw,5rem);

    color:var(--theme-title);

    text-transform:uppercase;

    letter-spacing:4px;

    text-align:center;

    text-shadow:
    0 0 25px var(--theme-glow);
}

.section-subtitle{

    margin-bottom:70px;

    text-align:center;

    letter-spacing:4px;

    text-transform:uppercase;

    color:var(--theme-gold);

    font-size:0.9rem;
}

/* ======================================================
   GLASS PANEL
====================================================== */

.glass-panel{

    background:
    linear-gradient(
    145deg,
    rgba(255,255,255,0.04),
    rgba(0,0,0,0.30)
    );

    border:
    1px solid var(--theme-border);

    backdrop-filter:blur(12px);

    border-radius:28px;
}

/* ======================================================
   FADE ANIMATIONS
====================================================== */

.fade-up{

    opacity:0;

    transform:translateY(30px);

    transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.fade-up.visible{

    opacity:1;

    transform:translateY(0);
}

/* ======================================================
   MOBILE PERFORMANCE
====================================================== */

@media(max-width:768px){

    .track-card,
    .atmosphere-card,
    .theme-button{

        backdrop-filter:none;
    }

}
/* ======================================================
   BUTTON SYSTEM
====================================================== */

.theme-btn{

    position:relative;
isolation:isolate;
    overflow:hidden;

    display:inline-flex;

    justify-content:center;
    align-items:center;

    gap:10px;

    padding:
    18px
    34px;

    border-radius:18px;

    border:
    1px solid var(--theme-border);

    background:
    linear-gradient(
    145deg,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.28)
    );

    color:var(--theme-text);

    text-decoration:none;

    text-transform:uppercase;

    letter-spacing:2px;

    font-size:0.82rem;

    font-weight:600;

    cursor:pointer;

    transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

/* =========================================
ACTIVE TOUCH
========================================= */

.theme-btn:active{

    transform:
    scale(0.98);
}

/* =========================================
HOVER
========================================= */

.theme-btn:hover{

    transform:
    translateY(-4px);

    border-color:
    rgba(255,255,255,0.16);

    box-shadow:
    0 0 35px var(--theme-glow);
}

/* =========================================
LIGHT SWEEP
========================================= */

.theme-btn::before{

    content:'';

    position:absolute;

    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:
    linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
    );

    transform:skewX(-25deg);

    transition:0.9s ease;
}

.theme-btn:hover::before{

    left:150%;
}
/* ======================================================
   SEPARATORS
====================================================== */

.theme-separator{

    width:220px;
    height:2px;

    margin:
    0 auto
    28px;

    background:
    linear-gradient(
    to right,
    transparent,
    var(--theme-primary-light),
    transparent
    );

    opacity:0.7;
}
/* ======================================================
   GLOBAL OVERLAY
====================================================== */

.na-overlay{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-3;

    background:
    radial-gradient(
    circle at center,
    transparent,
    rgba(0,0,0,0.35)
    );
}
/* ======================================================
   CONTAINER
====================================================== */

.theme-container{

    width:100%;

    max-width:1600px;

    margin:0 auto;

    position:relative;

    z-index:5;
}
/* ======================================================
   MOBILE
====================================================== */

@media(max-width:768px){

    .theme-btn{

        width:100%;

        padding:
        16px
        20px;

        border-radius:16px;

        font-size:0.76rem;

        letter-spacing:1.5px;
    }

}
