/* Mobile Hamburger Menu for Game Categories */

/* Hide hamburger menu on desktop */
.hamburger-menu-container {
    display: none;
}

/* Show hamburger menu only on mobile */
@media (max-width: 768px) {
    .hamburger-menu-container {
        display: block !important;
        position: relative;
        z-index: 10;
    }
    
    /* Hamburger Button */
    .hamburger-btn {
        background: rgba(255, 196, 16, 0.9);
        border: 1px solid #ffc410;
        cursor: pointer;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 120px;
        max-width: 120px;
        height: 40px;
        border-radius: 6px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(0, 0, 0, 0.5);
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 700;
        text-shadow: 0 0 5px rgba(0, 0, 0, 1), 1px 1px 2px rgba(0, 0, 0, 0.8);
        white-space: nowrap;
        box-sizing: border-box;
    }
    
    .hamburger-btn:hover {
        background: #ffc410;
        border-color: #e6b00f;
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(0, 0, 0, 0.6);
    }
    
    /* Text button styling when active */
    .hamburger-btn.active {
        background: #e6b00f;
        color: #ffffff;
        text-shadow: 0 0 8px rgba(0, 0, 0, 1), 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    /* Dropdown Menu */
    .categories-dropdown {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 196, 16, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
        min-width: 120px;
        max-width: 120px;
        border: 1px solid #e6b00f;
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        margin-top: 4px;
        max-height: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .categories-dropdown.show {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
    }
    
    /* Category Items */
    .category-dropdown-item {
        padding: 8px 16px !important;
        color: #ffffff !important;
        background: transparent !important;
        text-decoration: none !important;
        display: block !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        text-align: center !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        text-shadow: 0 0 5px rgba(0, 0, 0, 1), 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.6);
    }
    
    .category-dropdown-item:last-child {
        border-bottom: none !important;
        border-radius: 0 0 8px 8px;
    }
    
    .category-dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .category-dropdown-item:hover {
        background: rgba(230, 176, 15, 0.8) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transform: scale(1.02);
        text-shadow: 0 0 5px rgba(0, 0, 0, 1), 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.6);
    }
    
    .category-dropdown-item.active {
        background: rgba(230, 176, 15, 0.9) !important;
        color: #ffffff !important;
        text-shadow: 0 0 5px rgba(0, 0, 0, 3), 1px 1px 3px rgba(0, 0, 0, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.6);
    }
    
    /* Hide original category buttons on mobile */
    .navbar_limit.mobile .original-categories {
        display: none !important;
    }
}

/* Very small screens adjustments */
@media (max-width: 480px) {
    .hamburger-btn {
        font-size: 0.7rem;
        min-width: 120px;
        padding: 6px 8px;
    }
    
    .categories-dropdown {
        margin-top: 3px;
    }
    
    .category-dropdown-item {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
    }
}
