/* Enhanced Game Lobby Filters - Unique Game-Like Design */
.lobby-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(15, 18, 35, 0.95) 0%, rgba(25, 28, 50, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.lobby-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    opacity: 0.5;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px;
    background: linear-gradient(145deg, rgba(40, 44, 75, 0.9) 0%, rgba(30, 33, 57, 0.95) 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: currentColor;
    transition: width 0.3s;
    border-radius: 3px 3px 0 0;
}

.filter-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover::after {
    width: 60%;
}

.filter-btn.active {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.filter-btn.active::after {
    width: 80%;
}

.filter-btn i {
    font-size: 2rem;
    transition: all 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.filter-btn:hover i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.filter-btn span {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Individual Category Styles with Unique Themes */

/* All Games - Royal Purple */
.filter-btn:nth-child(1) {
    background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
    border-color: rgba(124, 58, 237, 0.5);
    color: #fff;
}
.filter-btn:nth-child(1)::after { background: #c4b5fd; }
.filter-btn:nth-child(1):hover, .filter-btn:nth-child(1).active {
    background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.5), 0 0 20px rgba(124, 58, 237, 0.3);
}

/* Slots - Fiery Red/Orange */
.filter-btn:nth-child(2) {
    background: linear-gradient(145deg, #ef4444 0%, #b91c1c 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fff;
}
.filter-btn:nth-child(2)::after { background: #fca5a5; }
.filter-btn:nth-child(2):hover, .filter-btn:nth-child(2).active {
    background: linear-gradient(145deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5), 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Crash Games - Electric Teal */
.filter-btn:nth-child(3) {
    background: linear-gradient(145deg, #14b8a6 0%, #0d9488 100%);
    border-color: rgba(20, 184, 166, 0.5);
    color: #fff;
}
.filter-btn:nth-child(3)::after { background: #5eead4; }
.filter-btn:nth-child(3):hover, .filter-btn:nth-child(3).active {
    background: linear-gradient(145deg, #2dd4bf 0%, #14b8a6 100%);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.5), 0 0 20px rgba(20, 184, 166, 0.3);
}

/* Live Casino - Golden Amber */
.filter-btn:nth-child(4) {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fff;
}
.filter-btn:nth-child(4)::after { background: #fcd34d; }
.filter-btn:nth-child(4):hover, .filter-btn:nth-child(4).active {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
}

/* Blackjack - Ocean Blue */
.filter-btn:nth-child(5) {
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
}
.filter-btn:nth-child(5)::after { background: #93c5fd; }
.filter-btn:nth-child(5):hover, .filter-btn:nth-child(5).active {
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Baccarat - Hot Pink */
.filter-btn:nth-child(6) {
    background: linear-gradient(145deg, #ec4899 0%, #be185d 100%);
    border-color: rgba(236, 72, 153, 0.5);
    color: #fff;
}
.filter-btn:nth-child(6)::after { background: #f9a8d4; }
.filter-btn:nth-child(6):hover, .filter-btn:nth-child(6).active {
    background: linear-gradient(145deg, #f472b6 0%, #ec4899 100%);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.5), 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Roulette - Deep Violet */
.filter-btn:nth-child(7) {
    background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
}
.filter-btn:nth-child(7)::after { background: #c4b5fd; }
.filter-btn:nth-child(7):hover, .filter-btn:nth-child(7).active {
    background: linear-gradient(145deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Instant Win - Emerald Green */
.filter-btn:nth-child(8) {
    background: linear-gradient(145deg, #10b981 0%, #047857 100%);
    border-color: rgba(16, 185, 129, 0.5);
    color: #fff;
}
.filter-btn:nth-child(8)::after { background: #6ee7b7; }
.filter-btn:nth-child(8):hover, .filter-btn:nth-child(8).active {
    background: linear-gradient(145deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Lobby Header Enhancement */
.lobby-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 30px 20px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, transparent 100%);
    border-radius: 20px;
    position: relative;
}

.lobby-title {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .lobby-filters {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .lobby-filters {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px;
    }
    
    .filter-btn {
        padding: 18px 12px;
        min-height: 90px;
    }
    
    .filter-btn i {
        font-size: 1.6rem;
    }
    
    .filter-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .lobby-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 15px 10px;
        min-height: 80px;
        border-radius: 12px;
    }
    
    .filter-btn i {
        font-size: 1.4rem;
    }
    
    .filter-btn span {
        font-size: 0.75rem;
    }
    
    .lobby-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .lobby-filters {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .filter-btn {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .filter-btn i {
        font-size: 1.2rem;
    }
    
    .filter-btn span {
        font-size: 0.7rem;
    }
}
