﻿/* Header styling */
.site-header {
    display: flex;
    justify-content: center;
    padding: 5px 0 5px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.site-nav {
    position: relative;
    width: min(1200px, 96%);
    height: 50px;
    background: #5b311c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: visible;
    align-items: center;
    display: flex;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    flex-wrap: wrap;
}

.nav-links a {
    position: relative;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-decoration: none;
    padding: 10px 6px;
    transition: color 0.2s ease, transform 0.15s ease, text-shadow 0.2s ease;
}

.nav-links a.is-multiline {
    text-align: center;
    line-height: 1.1;
    padding-top: 4px;
    padding-bottom: 4px;
}

.nav-links a.is-active {
    color: #ffe084;
    transform: translateY(-1px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.nav-links a:hover {
    color: #ffe084;
    transform: translateY(-1px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.86);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.nav-btn--gold {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.nav-btn--orange {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.24);
    filter: brightness(1.02);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: #ffffff;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.nav-toggle .icon {
    width: 22px;
    height: 22px;
}

.nav-toggle .icon-close {
    display: none;
}

.site-nav.is-open .nav-toggle {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(0, 0, 0, 0.2);
}

.site-nav.is-open .icon-menu {
    display: none;
}

.site-nav.is-open .icon-close {
    display: block;
}

@media (max-width: 1120px) {
    .site-nav {
        padding: 12px 14px;
    }

    .nav-shell {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 10px;
    }

    .nav-actions {
        flex: 1;
        order: 1;
        gap: 10px;
    }

    .nav-actions .nav-btn {
        flex: 1;
        min-width: auto;
        box-sizing: border-box;
    }

    .nav-toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .nav-links {
        order: 3;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        background: #5b311c;
        border-radius: 16px;
        padding: 18px 16px 18px;
        flex-direction: column;
        gap: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
        z-index: 10;
    }

    .site-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 90%;
        text-align: center;
        color: #ffe084;
        padding: 12px 12px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        transform: none;
    }

    .nav-links a.is-active {
        color: #fff3ba;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        color: #fff3ba;
        background: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 640px) {
    .nav-actions {
        gap: 8px;
    }

    .nav-btn {
        padding: 10px 12px;
        min-width: 0;
    }
}

/* Mobile buttons hidden by default */
.nav-btns-mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

}

.nav-btns-mobile .nav-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 400px) {

    /* Compact header positioning */
    .site-header {
        justify-content: flex-end;
        padding-right: 14px;
    }

    .site-nav {
        width: auto;
        padding: 6px;
        border-radius: 12px;

    }

    /* Hide main actions */
    .nav-actions {
        display: none;
    }

    /* Show mobile buttons inside dropdown */
    .nav-btns-mobile {
        display: flex;
    }

    /* Adjust dropdown positioning for compact header */
    .nav-links {
        right: 0;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 30px);
    }

    .nav-links a {
        width: 80%;
        margin: auto;
    }

    .nav-btns-mobile {
        display: flex;
        width: 100%;
        margin: 10px 0 0 0;
        justify-content: center;
    }

    .nav-btns-mobile .nav-btn {
        width: 100%;
        box-sizing: border-box;
    }
}