/* =========================
   Header + Burger + Overlay
   ========================= */

.dj-header {
    background: #ffffff;
    border-bottom: 1px solid var(--dj-border);
    padding: 10px 16px;
    margin: 0;             /* stop earlier margin rules */
    max-width: none;       /* stop earlier max-width rules */
}

.dj-header-inner {
    max-width: 720px;      /* align with your main column */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;            /* stop earlier padding rules */
    flex-direction: row;   /* force row layout */
    gap: 12px;
}

.dj-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.dj-logo {
    height: 44px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .dj-logo {
        height: 52px;
    }
}

.dj-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.dj-menu-btn:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/* Burger icon */
.dj-burger,
.dj-burger::before,
.dj-burger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    position: relative;
    border-radius: 2px;
}

.dj-burger::before,
.dj-burger::after {
    content: "";
    position: absolute;
    left: 0;
}

.dj-burger::before { top: -6px; }
.dj-burger::after { top: 6px; }

/* Overlay */
.dj-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: flex-end;
    z-index: 1000;
}

/* IMPORTANT: ensure hidden actually hides */
.dj-overlay[hidden] {
    display: none !important;
}

.dj-overlay-inner {
    width: min(320px, 86vw);
    background: #ffffff;
    height: 100%;
    padding: 22px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.dj-overlay-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    align-self: flex-end;
    padding: 6px 10px;
    border-radius: 10px;
}

.dj-overlay-close:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.dj-overlay-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.dj-overlay-nav a {
    text-decoration: none;
    font-size: 16px;
    color: #111;
}

.dj-overlay-nav a:hover {
    color: var(--dj-accent);
}


/* Slide animation states */
.dj-overlay {
    opacity: 0;
    transition: opacity 180ms ease;
}

/* panel starts off-screen */
.dj-overlay-inner {
    transform: translateX(100%);
    transition: transform 220ms ease;
    will-change: transform;
}

/* when open */
.dj-overlay.is-open {
    opacity: 1;
}

.dj-overlay.is-open .dj-overlay-inner {
    transform: translateX(0);
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .dj-overlay,
    .dj-overlay-inner {
        transition: none !important;
    }
}

.dj-menu-btn:active {
    transform: scale(0.98);
}

.dj-overlay[hidden] {
    display: none;
}
