/* ——— MOBILE NAV ——— */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(212, 169, 75, 0.25);
    cursor: pointer;
    padding: 9px 10px;
    transition: border-color 0.3s;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-hamburger:hover {
    border-color: var(--gold);
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animated to X when open */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile overlay drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

/* Dark backdrop */
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Slide-in panel */
.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--charcoal);
    border-left: 1px solid rgba(212, 169, 75, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

/* Open state */
.mobile-menu.open {
    pointer-events: all;
}

.mobile-menu.open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

/* Panel header */
.mmp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(212, 169, 75, 0.1);
    flex-shrink: 0;
}

.mmp-logo {
    display: flex;
    align-items: center;
}

.mmp-logo img {
    max-width: 54px;
}

.mmp-close {
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(212, 169, 75, 0.2);
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
    flex-shrink: 0;
}

.mmp-close:hover {
    border-color: var(--gold);
    background: rgba(212, 169, 75, 0.08);
}

/* Nav links list */
.mmp-links {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.mmp-links li {
    border-bottom: 1px solid rgba(212, 169, 75, 0.06);
}

.mmp-links li:last-child {
    border-bottom: none;
}

.mmp-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 236, 216, 0.65);
    text-decoration: none;
    transition: color 0.25s, background 0.25s;
}

.mmp-links a::after {
    content: '→';
    font-size: 0.7rem;
    color: rgba(212, 169, 75, 0.3);
    transition: transform 0.3s, color 0.3s;
}

.mmp-links a:hover {
    color: var(--ivory);
    background: rgba(212, 169, 75, 0.04);
}

.mmp-links a:hover::after {
    transform: translateX(4px);
    color: var(--gold);
}

.mmp-links a.active {
    color: var(--gold);
}

.mmp-links a.active::after {
    color: var(--gold);
}

/* Auth buttons at bottom */
.mmp-auth {
    padding: 24px 28px;
    border-top: 1px solid rgba(212, 169, 75, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mmp-btn-login {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 0;
    border: 1px solid rgba(212, 169, 75, 0.4);
    color: var(--ivory);
    background: transparent;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s;
}

.mmp-btn-login:hover {
    background: rgba(212, 169, 75, 0.08);
    border-color: var(--gold);
    color: var(--gold);
}

.mmp-btn-register {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 0;
    background: linear-gradient(110deg, var(--gold), var(--rose-gold));
    color: var(--onyx);
    border: none;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: opacity 0.3s;
    box-shadow: 0 4px 18px rgba(212, 169, 75, 0.25);
}

.mmp-btn-register:hover {
    opacity: 0.88;
}

/* Show hamburger, hide desktop links on mobile */
@media (max-width: 768px) {
    nav {
        grid-template-columns: auto auto !important;
        padding: 14px 20px !important;
    }

    .nav-links {
        display: none !important;
    }

    .nav-auth {
        display: none !important;
    }

    .nav-hamburger {
        display: flex;
    }
}