/* ===== FLOATING NAVBAR ===== */

.navbar {
    position: fixed;
    top: 1.25rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    background: #fff;
    border-radius: 0.875rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    transition: box-shadow 0.25s;
}

.navbar.is-open {
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.14);
}

/* ── Top bar ── */
.navbar-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.75rem 1.25rem;
}

/* Burger */
.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
}
.nav-burger:hover {
    background: #f5f0ee;
}
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.navbar.is-locked .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.is-locked .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar.is-locked .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.nav-logo-link {
    justify-self: center;
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}
.nav-logo-text {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--color-dark);
    letter-spacing: 0.05em;
}

/* Tickets button */
.nav-tickets-btn {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 0.625rem;
    font-family: var(--font-header);
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.nav-tickets-btn:hover {
    background: var(--color-dark);
    transform: scale(1.03);
    color: #fff;
}
.nav-tickets-btn svg {
    flex-shrink: 0;
}

/* ── Dropdown ── */
.navbar-dropdown {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-dropdown-inner {
    overflow: hidden;
    display: flex;
    min-height: 0;
}
.navbar.is-open .navbar-dropdown {
    grid-template-rows: 1fr;
}
.navbar.is-open .nav-dropdown-inner {
    border-top: 1px solid #ede8e5;
}

/* Left: page list */
.nav-left {
    width: 210px;
    flex-shrink: 0;
    padding: 1.25rem 1rem 1.5rem;
}
.nav-page-list {
    list-style: none;
}
.nav-page-item {
    margin-bottom: 0.125rem;
}
.nav-page-item > a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-family: var(--font-header);
    font-size: 1.2rem;
    color: #444444;
    border-radius: 0.375rem;
    position: relative;
    transition: color 0.15s;
}
.nav-page-item > a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}
.nav-page-item.is-active > a,
.nav-page-item > a:hover {
    color: var(--color-primary);
}
.nav-page-item.is-active > a::after {
    width: calc(100% - 1.5rem);
}

/* Divider */
.nav-divider {
    width: 1px;
    background: #ede8e5;
    margin: 1.25rem 0 1.5rem;
    flex-shrink: 0;
}

/* Right: cards */
.nav-right {
    flex: 1;
    padding: 1.25rem 1.25rem 1.5rem;
    overflow: hidden;
}
.nav-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    height: 100%;
}
.nav-card {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s;
}
.nav-card:hover {
    transform: translateY(-3px);
}
.nav-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8e4e0;
    object-fit: cover;
    border-radius: 0.5rem;
}
.nav-card-title {
    padding: 0.5rem 0.25rem 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.3;
    display: inline-block;
    position: relative;
}
.nav-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}
.nav-card:hover .nav-card-title::after {
    width: 100%;
}
.nav-card-date {
    padding: 0.15rem 0.25rem 0;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* ── Mobiel: dropdown stapelt i.p.v. naast elkaar ── */
@media (max-width: 700px) {
    .navbar {
        left: 1rem;
        right: 1rem;
    }
    .nav-dropdown-inner {
        flex-direction: column;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
    }
    .nav-left {
        width: 100%;
        padding: 1.25rem 1.25rem 0.5rem;
    }
    .nav-divider {
        width: auto;
        height: 1px;
        margin: 0.5rem 1.25rem;
    }
    .nav-right {
        padding: 0.75rem 1.25rem 1.5rem;
        overflow: visible;
    }
    .nav-cards {
        flex-wrap: wrap;
        justify-content: flex-start;
        height: auto;
    }
    .nav-card {
        width: calc(50% - 0.5rem);
    }
}

@media (max-width: 420px) {
    .nav-card {
        width: 100%;
    }
}

