/* Games Page Specific Styles */

.games-hero {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9));
}

/* Navigation Active State */
.nav-menu a.active {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
}

/* Games Filter */
.games-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    transform-style: preserve-3d;
}

.game-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.game-card.featured {
    border: 2px solid var(--primary-gold);
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 215, 0, 0.05));
}

.game-card.popular {
    border: 2px solid var(--casino-red);
    background: linear-gradient(135deg, var(--card-bg), rgba(220, 20, 60, 0.05));
}

.game-card.exclusive {
    border: 2px solid var(--casino-green);
    background: linear-gradient(135deg, var(--card-bg), rgba(34, 139, 34, 0.05));
}

.game-card.jackpot {
    border: 2px solid #ff6b35;
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 107, 53, 0.05));
    animation: jackpotGlow 3s ease-in-out infinite;
}

@keyframes jackpotGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.6); }
}

/* Game Badges */
.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-primary);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
}

.popular-badge {
    background: var(--gradient-secondary);
    color: var(--text-light);
}

.exclusive-badge {
    background: var(--gradient-green);
    color: var(--text-light);
}

.jackpot-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: var(--text-light);
    animation: pulse 2s infinite;
}

/* Game Card Content */
.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.game-card:hover img {
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    transform: scale(1.05);
}

.game-card-content {
    padding: 1.5rem;
}

.game-card h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-family: 'Oswald', sans-serif;
}

.game-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.rtp {
    background: rgba(34, 139, 34, 0.2);
    color: var(--casino-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.volatility {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.volatility.low {
    background: rgba(34, 139, 34, 0.2);
    color: var(--casino-green);
}

.volatility.medium {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.volatility.high {
    background: rgba(220, 20, 60, 0.2);
    color: var(--casino-red);
}

/* Jackpot Counter */
.jackpot-counter {
    background: rgba(255, 107, 53, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.jackpot-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.jackpot-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b35;
    animation: numberTick 2s ease-in-out infinite;
}

@keyframes numberTick {
    0%, 95% { transform: scale(1); }
    97.5% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: 0.5rem;
}

.game-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
}

/* Live Casino Section */
.live-casino-section {
    background: rgba(26, 26, 26, 0.3);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.live-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.live-game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.live-game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

.live-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.live-game-card.bengali {
    border-color: var(--casino-green);
}

.live-game-card.gameshow {
    border-color: var(--casino-red);
}

/* Live Indicator */
.live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.bengali-live {
    background: rgba(34, 139, 34, 0.9);
}

.gameshow-live {
    background: rgba(255, 107, 53, 0.9);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-game-content {
    padding: 1.5rem;
}

.live-game-content h3 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
}

.live-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.full-width {
    width: 100%;
}

/* Table Games Section */
.table-games-section {
    background: rgba(13, 13, 13, 0.5);
}

.table-game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.table-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.table-game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.table-game-content {
    padding: 1rem;
}

.table-game-content h4 {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.table-stats {
    margin: 0.5rem 0;
}

.house-edge {
    background: rgba(34, 139, 34, 0.2);
    color: var(--casino-green);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Game Providers */
.game-providers {
    background: rgba(26, 26, 26, 0.5);
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.provider-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.provider-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

.provider-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Filter Animation */
.game-card[data-category]:not(.show) {
    display: none;
}

.game-card.show {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .live-games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .games-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .game-card-content,
    .live-game-content {
        padding: 1rem;
    }
    
    .providers-grid {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
