/* /public/css/layout.css */

/* =========================================================
   Header Layout
   ========================================================= */

#siteHeader {
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px 20px 24px;
    z-index: 1000;
    transition: padding 0.3s ease;
    position: relative;
    background: transparent;
}

/* HOME — fixed, always transparent */
#siteHeader.home {
    position: fixed;
    top: 0;
    min-height: 80px;
    background: transparent !important;
    box-shadow: none !important;
}

/* INNER PAGES */
#siteHeader.inner {
    position: sticky;
    top: 0;
    background: var(--cream);
    padding: 10px 60px 10px 24px;
}

/* =========================================================
   Logo
   ========================================================= */

.logo img {
    height: 70px;
    transition: height 0.3s ease;
    /* White logo always visible via drop-shadow */
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

/* =========================================================
   Spotify Nav Link
   ========================================================= */

.spotify-nav-link {
    color: white;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
         1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px  1px 0 rgba(0, 0, 0, 0.8),
         1px  1px 0 rgba(0, 0, 0, 0.8),
         0    2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.spotify-nav-link:hover {
    opacity: 0.75;
}

.spotify-nav-link .fa-spotify {
    font-size: 18px;
}

/* =========================================================
   Nav Inner (Desktop Layout)
   ========================================================= */

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* =========================================================
   Navigation
   ========================================================= */

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: white;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
         1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px  1px 0 rgba(0, 0, 0, 0.8),
         1px  1px 0 rgba(0, 0, 0, 0.8),
         0    2px 8px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.nav a:hover {
    opacity: 0.75;
}

/* Inner pages — dark nav links */
#siteHeader.inner .nav a,
#siteHeader.inner .spotify-nav-link {
    color: var(--brown);
    text-shadow: none;
}

/* Home page stays transparent even when scrolled — the dark text-shadow on
   .nav a / .spotify-nav-link keeps the white text legible over any section. */

/* =========================================================
   Play Button — Centered Nav Style
   ========================================================= */

.play-btn {
    font-family: "Times New Roman", Times, serif;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 0;
    cursor: pointer;
    color: white;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    transition: opacity 0.2s ease;
}

.play-btn:hover {
    opacity: 0.7;
}

.play-btn.playing {
    font-style: italic;
}

/* =========================================================
   Hamburger
   ========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
    width: 28px;
    height: 22px;
    padding: 0;
    color: white;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: 0.25s ease;
}

/* X animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {

    .hamburger {
        display: flex;
    }

    .nav-center {
        display: none;
    }

    .nav-inner {
        display: none;
        position: absolute;
        top: calc(100% - 15px);
        right: 20px;

        background: rgba(20, 20, 20, 0.95);
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);

        padding: 22px;
        flex-direction: column;
        gap: 16px;
        width: 200px;
        align-items: center;
    }

    .nav-inner a {
        color: white !important;
        text-shadow: none !important;
    }

    .nav-inner.open {
        display: flex;
    }

    /* Inner pages hamburger */
    #siteHeader.inner .hamburger {
        color: var(--brown);
        filter: none;
    }

    #siteHeader.inner .nav-inner {
        background: var(--cream);
        border: 2px solid var(--brown);
    }

    #siteHeader.inner .nav-inner a {
        color: var(--brown) !important;
    }
}

/* =========================================================
   Sticky Social Icons — Bottom Left
   ========================================================= */

.sticky-social {
    position: fixed;
    bottom: 32px;
    left: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.sticky-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0.85;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sticky-social a:hover {
    opacity: 1;
    color: var(--cream);
    transform: scale(1.25);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    display: none;
}