/* Games Page Specific Styles */

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1B3E 50%, #2D1B69 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Game Filters */
.game-filters {
    padding: 2rem 0;
    background: rgba(26, 27, 62, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 90;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Games Section */
.games-section {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.games-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card.hot {
    border-color: #EF4444;
    animation: glow-red 3s ease-in-out infinite alternate;
}

.game-card.new {
    border-color: #10B981;
}

.game-card.exclusive {
    border-color: #FFD700;
    animation: glow-gold 3s ease-in-out infinite alternate;
}

.game-card.jackpot {
    border-color: #F59E0B;
    animation: glow-orange 3s ease-in-out infinite alternate;
}

@keyframes glow-red {
    0% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
}

@keyframes glow-gold {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

@keyframes glow-orange {
    0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.6); }
}

.game-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gradient-primary);
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-overlay button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-overlay button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Game Badges */
.hot-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.new-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.exclusive-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.jackpot-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-warning);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0, -30px, 0); }
    70% { transform: translate3d(0, -15px, 0); }
    90% { transform: translate3d(0, -4px, 0); }
}

/* Game Info */
.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.game-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.rtp {
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.volatility {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.volatility.high {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.volatility.medium {
    background: var(--gradient-warning);
    color: white;
}

.volatility.low {
    background: var(--gradient-success);
    color: white;
}

.jackpot-amount {
    background: var(--gradient-warning);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

/* Live Casino Section */
.live-casino-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1A1B3E 0%, #0F0F23 100%);
}

.live-casino-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.game-card.live {
    border-color: #10B981;
}

.game-card.vip {
    border-color: #8B5CF6;
}

.game-card.bengali {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--card-bg) 50%);
}

.live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.vip-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bengali-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.player-count {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--success-color);
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dealer-info {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.dealer-info span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.stats-grid {
    display: flex;
		flex-wrap: wrap;
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Responsive Design for Games */
@media (max-width: 768px) {
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .stats-grid {
        flex-direction: column;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-info h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .game-image {
        height: 180px;
    }
    
    .play-overlay button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Filter Animation */
.game-card[style*="display: none"] {
    display: none !important;
}

.game-card.filtering-in {
    animation: fadeInScale 0.5s ease-out forwards;
}

.game-card.filtering-out {
    animation: fadeOutScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}