/*
 * Avangelia
 * URI:     https://www.avangelia.com
 * Author:  Dennis de Groot / Okay, Sounds Great
 * Version: 2.0.0
 */

/* =============================================================================
   THEME VARIABLES
   Defaults = light. Overridden at runtime by js/script.js via links.json.
   ============================================================================= */

:root {
    --btn-color:        rgba(255, 255, 255, 0.92);
    --btn-border:       rgba(255, 255, 255, 0.45);
    --btn-hover-bg:     rgba(255, 255, 255, 0.12);
    --btn-hover-border: rgba(255, 255, 255, 0.85);
    --icon-color:       rgba(255, 255, 255, 0.70);
    --icon-hover-color: #ffffff;
    --footer-color:     rgba(255, 255, 255, 0.45);
    --logo-filter:      none;
    --tidal-filter:     none;
}

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

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================================================================
   BASE
   ============================================================================= */

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    background: #000;
    color: #fff;
}

/* =============================================================================
   BACKGROUND VIDEO
   ============================================================================= */

.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.45) 100%
    );
    z-index: 1;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.site {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 36px;
}

/* =============================================================================
   HEADER / LOGO
   ============================================================================= */

.site-header {
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo {
    width: 200px;
    height: auto;
    filter: var(--logo-filter);
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
}

@media (max-width: 767px) {
    .logo { width: 160px; }
}

/* =============================================================================
   NAV BUTTONS
   ============================================================================= */

.site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 380px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 24px;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--btn-color);
    background: transparent;
    border: 1px solid var(--btn-border);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: slideUp 0.6s ease forwards;
}

.btn:hover {
    background: var(--btn-hover-bg);
    border-color: var(--btn-hover-border);
    color: var(--btn-color);
}

/* Type prefix e.g. "listen:" — muted relative to the label */
.btn-type {
    opacity: 0.55;
    margin-right: 2px;
}

/* Stagger entrance — also set inline by script.js per button count */
.btn:nth-child(1) { animation-delay: 0.50s; }
.btn:nth-child(2) { animation-delay: 0.65s; }
.btn:nth-child(3) { animation-delay: 0.80s; }
.btn:nth-child(4) { animation-delay: 0.95s; }
.btn:nth-child(5) { animation-delay: 1.10s; }
.btn:nth-child(6) { animation-delay: 1.25s; }

/* =============================================================================
   SOCIAL ICONS
   ============================================================================= */

.site-icons {
    display: flex;
    align-items: center;
    gap: 28px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.4s forwards;
}

.site-icons a {
    color: var(--icon-color);
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.site-icons a:hover {
    color: var(--icon-hover-color);
    transform: translateY(-2px);
}

/* Tidal — loaded as <img> from Simple Icons CDN (not in Font Awesome) */
.icon-tidal-img {
    display: block;
    opacity: 0.7;
    filter: var(--tidal-filter);
    transition: opacity 0.25s ease;
}

.site-icons a:hover .icon-tidal-img {
    opacity: 1;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    color: var(--footer-color);
    opacity: 0;
    animation: fadeIn 0.8s ease 1.6s forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
