/* Joy88 Casino Games Page Styles */
@import url('index.css'); /* Import base styles */

/* Games-specific overrides and additions */

/* Hero Section for Games */
.hero {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 5px;
}

/* Game Filters */
.game-filters {
    background: var(--darker-bg);
    padding: 40px 0;
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
    top: 0;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.game-card:hover .btn-play {
    transform: translateY(0);
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: var(--neon-glow);
}

.jackpot-badge,
.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.live-badge {
    background: var(--gradient-success);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.game-info p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rtp {
    background: var(--gradient-secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.volatility {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.volatility.high {
    background: var(--danger-color);
}

.volatility.medium {
    background: var(--accent-color);
}

.volatility.low {
    background: var(--success-color);
}

.live-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.players {
    color: var(--accent-color);
}

.dealer {
    color: var(--success-color);
    font-weight: 500;
}

/* Section Styling */
.popular-slots,
.live-casino,
.sports-betting,
.jackpot-games,
.game-providers {
    padding: 80px 0;
}

.popular-slots {
    background: var(--dark-bg);
}

.live-casino {
    background: var(--darker-bg);
}

.sports-betting {
    background: var(--dark-bg);
}

.jackpot-games {
    background: var(--darker-bg);
}

.game-providers {
    background: var(--dark-bg);
}

.popular-slots h2,
.live-casino h2,
.sports-betting h2,
.jackpot-games h2,
.game-providers h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Sports Betting */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.sport-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.sport-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.sport-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.sport-card p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.odds-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.odds {
    display: flex;
    gap: 10px;
}

.odd {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
}

.btn-bet {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--gradient-secondary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-bet:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

/* Jackpot Games */
.jackpot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.jackpot-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.jackpot-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(243, 156, 18, 0.4);
    border-color: var(--primary-color);
}

.jackpot-image {
    position: relative;
    height: 250px;
}

.jackpot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jackpot-amount {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 15px;
    color: var(--accent-color);
    font-weight: 700;
}

.jackpot-amount .currency {
    font-size: 18px;
}

.jackpot-amount .amount {
    font-size: 24px;
    animation: jackpot-pulse 2s infinite;
}

@keyframes jackpot-pulse {
    0%, 100% { color: var(--accent-color); }
    50% { color: var(--primary-color); transform: scale(1.1); }
}

.jackpot-info {
    padding: 25px;
    text-align: center;
}

.jackpot-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.jackpot-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-jackpot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: jackpot-glow 3s infinite;
}

@keyframes jackpot-glow {
    0%, 100% { box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 10px 40px rgba(255, 107, 53, 0.6); }
}

.btn-jackpot:hover {
    transform: scale(1.05);
    animation: none;
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.8);
}

/* Game Providers */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.provider-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.provider-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
}

.provider-card p {
    opacity: 0.8;
    font-size: 14px;
}

/* Live Card Specific Styles */
.live-card .game-overlay {
    background: linear-gradient(45deg, rgba(39, 174, 96, 0.8), rgba(46, 204, 113, 0.8));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .stat-item {
        padding: 15px 25px;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .jackpot-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .game-card {
        margin: 0 10px;
    }
    
    .jackpot-amount .amount {
        font-size: 20px;
    }
    
    .jackpot-amount .currency {
        font-size: 16px;
    }
}

/* Loading Animation for Games */
.games-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.games-loading.show {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* Filter Animation */
.game-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.game-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
