/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transition: background-color 0.3s;
}

.app-header.scrolled {
    background-color: rgb(17, 18, 25);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    height: 40px;
    /* Matched to cinematic plans page */
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.logo-link:hover .logo {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

.nav-menu {
    display: none;
    gap: 24px;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }

    .app-header {
        padding: 16px 60px;
    }
}

.nav-link {
    color: var(--color-text-dim);
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 0;
}

/* Hide toggle on desktop */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu Overlay */
@media (max-width: 1023px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: #0b0c10;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        padding-top: 60px;
        /* Space for header */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* Close icon logic handled by JS toggling class */
    .menu-toggle.active svg path:nth-child(1) {
        d: path("M18 6L6 18");
    }

    .menu-toggle.active svg path:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active svg path:nth-child(3) {
        d: path("M6 6L18 18");
    }
}