.category-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #2c2c2c;
    border-radius: 12px;
    margin-bottom: 30px;
}

.category-filters .btn-category {
    background: linear-gradient(145deg, #3a3a3a, #2c2c2c);
    color: #e0e0e0;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.category-filters .btn-category:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #4a4a4a, #3c3c3c);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    color: #fff;
}

.category-filters .btn-category.active {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.4);
    border-color: #007bff;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .category-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    .category-filters .btn-category {
        font-size: 0.8rem;
        padding: 12px 8px;
    }
}
/* === Custom Category Filter Styles (4x4 Grid) === */
.category-filters-wrapper .category-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    background-color: #2a2a2e;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #444;
}

.category-filters-wrapper .category-filters .btn-category {
    background: linear-gradient(145deg, #38383e, #2a2a2e);
    color: #f0f0f0;
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.category-filters-wrapper .category-filters .btn-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.35);
    color: #fff;
}

.category-filters-wrapper .category-filters .btn-category.active {
    background: linear-gradient(145deg, #0d6efd, #0a58ca);
    box-shadow: 0 3px 6px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

/* No mobile-specific changes needed for 4x4 grid */


.player-count {
    color: #00ff00;
    font-weight: 700;
}

@media (max-width: 768px) {
    .player-count-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* Trending Games Title - White Text */
.homepage-games .section-title {
    color: #ffffff !important;
}

/* Increased spacing between game rows */
.games-grid {
    row-gap: 30px !important; /* Increased from default */
}

.homepage-games .games-grid {
    row-gap: 30px !important;
}

@media (max-width: 768px) {
    .games-grid {
        row-gap: 20px !important;
    }
    
    .homepage-games .games-grid {
        row-gap: 20px !important;
    }
}

/* White text for game count subtitle */
.lobby-subtitle {
    color: #ffffff !important;
}

/* Enhanced Category Icon Styling */
.category-item i,
.filter-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.category-item:hover i,
.filter-btn:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Specific icon colors for better visual appeal */
.category-item:nth-child(1) i, .filter-btn:nth-child(1) i { color: #A78BFA; } /* All Games - Purple */
.category-item:nth-child(2) i, .filter-btn:nth-child(2) i { color: #F87171; } /* Slots - Red */
.category-item:nth-child(3) i, .filter-btn:nth-child(3) i { color: #34D399; } /* Crash - Green */
.category-item:nth-child(4) i, .filter-btn:nth-child(4) i { color: #FBBF24; } /* Live Casino - Orange */
.category-item:nth-child(5) i, .filter-btn:nth-child(5) i { color: #60A5FA; } /* Blackjack - Blue */
.category-item:nth-child(6) i, .filter-btn:nth-child(6) i { color: #EC4899; } /* Baccarat - Pink */
.category-item:nth-child(7) i, .filter-btn:nth-child(7) i { color: #A78BFA; } /* Roulette - Purple */
.category-item:nth-child(8) i, .filter-btn:nth-child(8) i { color: #10B981; } /* Instant Win - Teal */

/* Active state keeps icon color */
.category-item.active i,
.filter-btn.active i {
    color: inherit;
    text-shadow: 0 0 10px currentColor;
}

/* Updated Player Count Badge Position - Lower and More Left */
.player-count-badge {
    position: absolute;
    bottom: 4px !important;
    left: 4px !important;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    z-index: 5;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 0, 0.3);
    max-width: 85px;
}

.player-count {
    color: #00ff00;
    font-weight: 700;
    margin: 0 2px;
}

@media (max-width: 768px) {
    .player-count-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        bottom: 3px !important;
        left: 3px !important;
    }
}

/* Make category filter icons more visible and larger */
.filter-btn i {
    font-size: 1.5rem !important;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.filter-btn:hover i {
    opacity: 1;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

/* Ensure icons are visible on colored backgrounds */
.filter-btn {
    position: relative;
}

.filter-btn i {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Reduce gap between search bar and Trending Games section */
.homepage-games {
    padding-top: 15px !important; /* Reduced from 30px (50% reduction) */
    margin-top: -15px; /* Additional reduction for tighter spacing */
}

@media (max-width: 768px) {
    .homepage-games {
        padding-top: 10px !important;
        margin-top: -10px;
    }
}

/* Increase featured game brightness */
.featured-game-banner {
    filter: brightness(1.15) contrast(1.05) !important;
}

.featured-game-banner img {
    filter: brightness(1.1);
}

/* Ensure featured game images are vibrant */
.featured-game-content {
    filter: brightness(1.05);
}
