/* Mobile Header Responsiveness Fixes */
@media (max-width: 768px) {

    /* Header adjustments */
    .header {
        padding: 12px 0;
    }

    /* Logo - reduce size and wrap text */
    .logo {
        font-size: 1.1rem !important;
        max-width: 60%;
        line-height: 1.2;
        word-break: break-word;
    }

    .logo img {
        height: 32px !important;
    }

    /* Nav flex - allow wrapping if needed */
    .nav-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Hide desktop nav items on mobile */
    .mobile-hide {
        display: none !important;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-main);
        padding: 8px;
        z-index: 10001 !important;
        /* Above everything */
        pointer-events: auto !important;
    }

    /* Adjust nav buttons for mobile */
    .nav-btns {
        gap: 8px;
    }

    .nav-btns .btn-gold,
    .nav-btns .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-btns .nav-link {
        font-size: 0.85rem;
        margin-right: 8px !important;
    }

    /* Mobile Navigation Overlay */
    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-bg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-nav.active {
        right: 0;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .close-menu {
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-main);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav li {
        margin-bottom: 20px;
    }

    .mobile-nav a {
        color: var(--text-main);
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        padding: 10px 0;
        transition: color 0.3s;
    }

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