/**
 * Game category navigation style
 */

.category-header {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 10px;
    min-width: max-content;
}

.category-tab {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-tab:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.category-tab.active {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.category-tab i {
    margin-right: 8px;
    font-size: 16px;
}

.game-count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 5px;
}

/* Dropdown menu styles */.category-dropdown {    position: relative;    display: inline-block;    z-index: 1000; /* Ensure dropdown container has the same z-index */}.dropdown-toggle {    position: relative;    z-index: 1001; /* Make sure button is above the dropdown content */}.dropdown-toggle::after {    content: "\f078";    font-family: "Font Awesome 5 Free";    font-weight: 900;    margin-left: 8px;    font-size: 10px;    transition: transform 0.3s;}.dropdown-toggle.active::after {    transform: rotate(180deg);}.dropdown-content {    display: none;    position: absolute;    background-color: white;    min-width: 250px;    max-height: 80vh; /* Use viewport height for larger screens */    overflow-y: auto;    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);    z-index: 1000;    border-radius: 8px;    margin-top: 8px;    padding: 8px 0;    right: 0;    left: auto;    top: 100%;    border: 1px solid #e0e0e0;    transition: opacity 0.2s, transform 0.2s;    opacity: 0;    transform: translateY(-10px);}/* Make sure dropdown is above other elements */.category-dropdown:hover .dropdown-content,.dropdown-content.show {    display: block;    opacity: 1;    transform: translateY(0);}

.dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.dropdown-item i {
    margin-right: 10px;
    color: #555;
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-tabs {
        gap: 6px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .category-tab i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-header {
        margin-bottom: 10px;
    }
    
    .category-tabs {
        gap: 4px;
    }
    
    .category-tab {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .game-count {
        display: none;
    }
} 