/* 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: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        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);
    }
    
    .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);
    }
    
    /* Hamburger lines */
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: #ffffff;
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 1px rgba(0, 0, 0, 0.8);
    }
    
    /* Animation when menu is open */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Dropdown Menu */
    .categories-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        background: rgba(255, 196, 16, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 1), 0 0 0 2px rgba(0, 0, 0, 0.6);
        border: 2px solid #e6b00f;
        min-width: 200px;
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        margin-top: 8px;
    }
    
    .categories-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    /* Category Items */
    .category-dropdown-item {
        padding: 12px 20px !important;
        color: #ffffff !important;
        background: transparent !important;
        text-decoration: none !important;
        display: block !important;
        font-size: 1rem !important;
        font-weight: 800 !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 12px 12px;
    }
    
    .category-dropdown-item:first-child {
        border-radius: 12px 12px 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) {
    .categories-dropdown {
        min-width: 180px;
        left: 0;
        transform: translateY(-10px);
        margin-left: -20px;
    }
    
    .categories-dropdown.show {
        transform: translateY(0);
    }
    
    .category-dropdown-item {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
    }
}