/* ========================================
   HEADER / NAVIGATION
======================================== */

.site-header {
    background: #111;
    padding: 15px 0;
}

.nav {
    position: relative;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #e10600;
}


/* ========================================
   DROPDOWN BASE
======================================== */

.dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    background: #222;
}

.dropdown li a {
    padding: 10px 15px;
    display: block;
}


/* ========================================
   DESKTOP DROPDOWN (>= 992px)
======================================== */

@media (min-width: 992px) {

    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.2s ease;
    }

    .has-dropdown:hover > .dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .submenu-toggle {
        display: none;
    }

    .menu-toggle {
        display: none;
    }
}


/* ========================================
   MOBILE NAVIGATION (<= 991px)
======================================== */

@media (max-width: 991px) {

    /* Hamburger visible */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        color: #fff;
    }

    /* Nav container */
    .nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #111;
        display: none;
        z-index: 999;
    }

    .nav.active {
        display: block;
    }

    /* Stack menu */
    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    /* Dropdown behavior */
    .dropdown {
        position: static;
        display: none;
        background: #1a1a1a;
        margin-top: 10px;
    }

    .dropdown.active {
        display: block;
    }

    /* Chevron visible in mobile */
    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        padding-left: 10px;
        cursor: pointer;
    }
}


/* ========================================
   TOGGLE / CHEVRON
======================================== */

.dropdown-toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.submenu-toggle.active .chevron-icon {
    transform: rotate(180deg);
}


/* ========================================
   AUTH BOX
======================================== */

.auth-box {
    background: #e3e471;
    padding: 40px;
    border-radius: 8px;
}


/* ========================================
   AUTH CaRD
======================================== */

.auth-section {
    padding: 40px 0;
}

.auth-card {
    background: #e3e471;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-logo {
    max-width: 300px;
    margin-bottom: 20px;
}

.auth-card h2 {
    margin-bottom: 10px;
    font-size: 2em;
}

.auth-sub {
    margin-bottom: 20px;
    color: #555;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.auth-card button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-card button:hover {
    background: #333;
}

#authResponse {
    margin-top: 20px;
    font-weight: bold;
}

.success {
    color: green;
}

.error {
    color: red;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px;
    }
}

/* ========================================
   BOOTSTRAP BUTTON OVERRIDE
======================================== */

.btn-primary {
    --bs-btn-bg: #000;
    --bs-btn-border-color: #000;

    --bs-btn-hover-bg: #333;
    --bs-btn-hover-border-color: #333;

    --bs-btn-active-bg: #222;
    --bs-btn-active-border-color: #222;
}
