/* Games Page Specific Styles */

.games-hero {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="10,10 20,5 30,15 25,25 15,20" fill="rgba(255,255,255,0.1)"/><polygon points="70,20 80,15 90,25 85,35 75,30" fill="rgba(255,255,255,0.1)"/><polygon points="40,60 50,55 60,65 55,75 45,70" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: gameFloat 15s ease-in-out infinite;
}

@keyframes gameFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(-5px) rotate(240deg); }
}

.games-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.games-hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Game Categories */
.game-categories {
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.tab-btn.active {
    background: linear-gradient(145deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a2e;
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.tab-btn i {
    font-size: 18px;
}

/* Games Section */
.games-section {
    display: none;
    margin-bottom: 50px;
}

.games-section.active {
    display: block;
}

.games-section h2 {
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.games-section h2 i {
    margin-right: 15px;
}

/* Enhanced Game Card */
.game-card .game-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.8);
    overflow: hidden;
}

.game-card .game-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.game-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.volatility {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.players {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

/* Live Badge */
.live-badge {
    position: relative;
}

.live-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8), 0 0 30px rgba(231, 76, 60, 0.6); }
}

/* Sports Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.sport-card {
    background: linear-gradient(145deg, #16a085 0%, #1abc9c 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sport-card:hover::before {
    transform: translateX(100%);
}

.sport-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.sport-icon {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
}

.sport-card h4 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 10px;
}

.sport-card p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.odds-display {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    color: #ffffff;
}

/* Game Providers */
.game-providers {
    margin-bottom: 50px;
}

.game-providers h2 {
    text-align: center;
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.provider-card {
    background: linear-gradient(145deg, #8e44ad 0%, #9b59b6 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.provider-logo {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 15px;
}

.provider-card h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .games-hero {
        padding: 40px 20px;
    }
    
    .games-hero h1 {
        font-size: 28px;
    }
    
    .game-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .category-tabs {
        justify-content: center;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .games-section h2 {
        font-size: 24px;
    }
    
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .providers-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Game Card Animations */
@keyframes cardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.game-card.hot {
    animation: cardPulse 3s ease-in-out infinite;
    border: 2px solid #ffd700;
}

.game-card.new::after {
    content: 'NEW';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
}