/* Games Page Specific Styles */

.games-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.games-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-header h2 {
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Game Filters */
.game-filters {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 30px;
}

.game-filters h3 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    margin: 0 20px 15px;
    letter-spacing: 0.5px;
}

.filter-group {
    margin: 0 20px 20px;
}

.filter-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    background: var(--background-dark);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Featured Games Section */
.featured-games {
    margin-bottom: 60px;
}

.featured-games h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Game Cards Enhanced */
.game-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.game-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.game-card.exclusive {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--background-darker), var(--surface-color));
    overflow: hidden;
}

.game-image img, .live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition);
    flex-direction: column;
}

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

.play-btn {
    background: var(--gradient-primary);
    color: var(--background-dark);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.demo-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.05);
}

.demo-btn:hover {
    background: var(--text-primary);
    color: var(--background-dark);
}

/* Game Badges */
.hot-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--error-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.exclusive-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    animation: glow 2s infinite;
}

.jackpot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--warning-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    animation: bounce 1s infinite;
}

.bangla-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
}

/* Game Info Enhanced */
.game-info {
    padding: 25px;
}

.game-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.game-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.game-stats span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.rtp {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.volatility {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.volatility.low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.volatility.medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.volatility.high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.volatility.mega {
    background: var(--gradient-primary);
    color: var(--background-dark);
}

.provider {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-color);
}

/* Live Casino Enhanced */
.live-casino-section {
    margin-bottom: 60px;
}

.live-casino-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-games-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.live-game-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.live-game-card.featured {
    border: 2px solid var(--success-color);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.live-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.live-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--background-darker), var(--surface-color));
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.live-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--error-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.live-stats {
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.live-stats i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* All Games Section */
.all-games-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-color);
    color: var(--background-dark);
    border-color: var(--primary-color);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

/* List View Styles */
.games-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.games-grid.list-view .game-card {
    display: flex;
    align-items: center;
    padding: 20px;
}

.games-grid.list-view .game-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 20px;
}

.games-grid.list-view .game-info {
    flex: 1;
    padding: 0;
}

.games-grid.list-view .game-stats {
    margin-top: 10px;
}

/* Animation Delays for Staggered Effect */
.games-grid .game-card:nth-child(1) { animation-delay: 0.1s; }
.games-grid .game-card:nth-child(2) { animation-delay: 0.2s; }
.games-grid .game-card:nth-child(3) { animation-delay: 0.3s; }
.games-grid .game-card:nth-child(4) { animation-delay: 0.4s; }
.games-grid .game-card:nth-child(5) { animation-delay: 0.5s; }
.games-grid .game-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .games-header h1 {
        font-size: 32px;
    }
    
    .games-header h2 {
        font-size: 18px;
    }
    
    .featured-games h2,
    .live-casino-section h2,
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .view-options {
        justify-content: center;
    }

		.games-grid, .live-games-grid {
			grid-template-columns: 1fr;
		}
    
    .games-grid.list-view .game-card {
        flex-direction: column;
        text-align: center;
    }
    
    .games-grid.list-view .game-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 480px) {
    .games-header h1 {
        font-size: 26px;
    }
    
    .games-header h2 {
        font-size: 16px;
    }
    
    .featured-games h2,
    .live-casino-section h2,
    .section-header h2 {
        font-size: 24px;
    }
    
    .game-info,
    .live-game-card {
        padding: 20px;
    }
    
    .game-stats {
        gap: 6px;
    }
    
    .game-stats span {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .play-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .demo-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Special Effects */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.game-card.loading {
    background: linear-gradient(90deg, var(--surface-color) 0%, rgba(255, 215, 0, 0.1) 50%, var(--surface-color) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}