/* Games Page Specific Styles */

.games-hero {
    padding: 60px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 20, 147, 0.1) 0%, transparent 70%);
}

.games-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ff1493;
    animation: fadeInUp 0.8s ease-out;
}

.games-hero p {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.game-categories-section {
    padding: 80px 0;
}

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

.tab-btn {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #ff1493 0%, #9932cc 100%);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

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

.games-section {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}

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

.games-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffd700;
    text-align: center;
}

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

.game-card {
    background: rgba(26, 26, 46, 0.9);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #ff1493 0%, #9932cc 100%);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 70%, transparent 100%);
    padding: 25px;
    transform: translateY(50%);
    transition: all 0.3s ease;
    z-index: 2;
}

.game-card:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.game-overlay p {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.rtp, .volatility {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.volatility {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.play-btn {
    background: linear-gradient(135deg, #00ff7f 0%, #32cd32 100%);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
}

.game-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.3);
}

/* Live Casino Specific */
#live .game-card {
    border-color: rgba(0, 191, 255, 0.3);
}

#live .game-card:hover {
    border-color: #00bfff;
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.3);
}

#live .play-btn {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
    color: #ffffff;
}

/* Crash Games Specific */
#crash .game-card {
    border-color: rgba(255, 165, 0, 0.3);
}

#crash .game-card:hover {
    border-color: #ffa500;
    box-shadow: 0 20px 40px rgba(255, 165, 0, 0.3);
}

#crash .play-btn {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-hero h1 {
        font-size: 32px;
    }
    
    .games-hero p {
        font-size: 16px;
    }
    
    .category-tabs {
        gap: 15px;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card img {
        height: 150px;
    }
    
    .game-overlay {
        padding: 20px;
        transform: translateY(30%);
    }
    
    .game-overlay h3 {
        font-size: 18px;
    }
    
    .games-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .games-hero {
        padding: 40px 0;
    }
    
    .games-hero h1 {
        font-size: 28px;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
        justify-content: center;
    }
    
    .game-overlay {
        padding: 15px;
    }
    
    .play-btn {
        padding: 10px 20px;
    }
}