/* =========================================================
   SYRVEK COLLECTIVES — SHARED NAVIGATION
   =========================================================
   One stylesheet for the floating nav bar used across every
   section page (Music / Screens). Previously this whole
   block was copy-pasted into 4 separate <style> tags — edit
   it here once instead.

   The homepage (index.html) has its own distinct header and
   does not use this component.

   Paired with /js/nav.js, which renders the markup. See
   nav.js for usage.
========================================================= */

.sk-global-nav {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(1180px, calc(100% - 40px));
    height: 58px;
    padding: 0 10px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(8, 8, 13, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* The playlist/show/movie popups add "modal-open" to <body> while
   open (SPOTIFY/app.js, WATCH/js/app.js, WATCH/js/movie-app.js).
   Those popups sit at a lower z-index than this nav, so without
   this the nav rendered on top of — and overlapped — the popup's
   close button. Hiding the nav while any popup is open fixes that
   for every section from this one shared file. */

body.modal-open .sk-global-nav {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-16px);
    pointer-events: none;
}

.sk-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.sk-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sk-nav-brand-text {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sk-nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sk-nav-link {
    padding: 9px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.sk-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Default (Music / "Sound") accent is purple. */

.sk-nav-link.active {
    color: #fff;
    background: rgba(173, 91, 255, 0.18);
    border: 1px solid rgba(190, 112, 255, 0.18);
}

/* Screens ("Shows" / "Movies") uses the red/pink accent
   instead — set via the theme-red modifier class that
   nav.js adds automatically based on the active section. */

.sk-global-nav.theme-red .sk-nav-link.active {
    background: rgba(255, 80, 105, 0.16);
    border: 1px solid rgba(255, 100, 120, 0.18);
}

/* =====================================================
   SCREEN DROPDOWN
===================================================== */

.sk-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Invisible hover bridge prevents the menu from closing
   while moving the cursor from SCREEN to the dropdown. */

.sk-nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 170px;
    height: 12px;
}

.sk-nav-dropdown > .sk-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: default;
}

.sk-nav-dropdown > .sk-nav-link::after {
    content: "⌄";
    font-size: 11px;
    line-height: 1;
    opacity: 0.7;
    transform: translateY(-1px);
    transition: transform 0.25s ease;
}

.sk-nav-dropdown:hover > .sk-nav-link::after {
    transform: translateY(1px);
}

.sk-screen-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    min-width: 155px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 13px;
    background: rgba(8, 8, 13, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.sk-nav-dropdown:hover .sk-screen-menu,
.sk-nav-dropdown:focus-within .sk-screen-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sk-screen-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 11px;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.sk-screen-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sk-screen-menu a.active {
    color: #fff;
    background: rgba(255, 80, 105, 0.14);
}

.sk-screen-menu .menu-arrow {
    font-size: 12px;
    opacity: 0.65;
}

@media (max-width: 650px) {
    .sk-global-nav {
        width: calc(100% - 24px);
        top: 10px;
        height: 54px;
        padding-left: 12px;
    }

    .sk-nav-brand-text {
        display: none;
    }

    .sk-nav-link {
        padding: 8px 9px;
        font-size: 9px;
    }

}
