/* Games Page Specific Styles */

/* Games Hero Section */
.games-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a1810 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 0, 0, 0.08) 0%, transparent 50%);
    animation: games-bg-move 25s ease-in-out infinite alternate;
}

@keyframes games-bg-move {
    0% { transform: translateX(-5px) translateY(-5px) rotate(0deg); }
    100% { transform: translateX(5px) translateY(5px) rotate(1deg); }
}

.games-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.7); }
}

.games-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Game Categories */
.game-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.category-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-slow);
    z-index: -1;
}

.category-btn:hover::before,
.category-btn.active::before {
    left: 0;
}

.category-btn:hover,
.category-btn.active {
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Top Slots Section */
.top-slots {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.slot-card {
    background: rgba(26, 26, 26, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.slot-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(26, 26, 26, 0.95));
}

.slot-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 4px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 2;
}

.slot-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

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

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: var(--transition);
}

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

.slot-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.slot-info {
    padding: 24px;
}

.slot-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.slot-info p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.slot-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.rtp {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.volatility {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.jackpot {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    animation: jackpot-pulse 2s infinite;
}

@keyframes jackpot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.slot-actions {
    display: flex;
    gap: 12px;
}

.btn-play {
    flex: 1;
    background: var(--gradient-primary);
    color: var(--dark-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-demo {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--light-color);
    color: var(--light-color);
    padding: 10px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Live Casino Section */
.live-casino-section {
    background: linear-gradient(135deg, #2d1810 0%, #1a1a1a 50%, #2d1810 100%);
}

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

.live-game-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(139, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
}

.live-game-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.3);
}

.live-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.live-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.live-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff0000, #ff4444);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: live-pulse 2s infinite;
}

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

@keyframes live-blink {
    0% { opacity: 1; }
    100% { opacity: 0.3; }
}

.players-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.live-info {
    padding: 20px;
}

.live-info h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.live-info p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.live-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.min-bet,
.max-bet {
    color: var(--accent-color);
    font-weight: 600;
}

.btn-live {
    background: var(--gradient-secondary);
    color: var(--light-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

/* Crash Games Section */
.crash-games-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #102d2d 50%, #1a1a1a 100%);
}

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

.crash-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid rgba(80, 200, 120, 0.3);
    transition: var(--transition);
    position: relative;
}

.crash-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(80, 200, 120, 0.3);
}

.crash-image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.crash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    animation: multiplier-glow 2s infinite alternate;
}

@keyframes multiplier-glow {
    0% { text-shadow: 0 0 10px var(--accent-color); }
    100% { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
}

.crash-info {
    padding: 20px;
}

.crash-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.crash-info p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.crash-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.last-crash,
.players {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-crash {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.btn-crash:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(80, 200, 120, 0.4);
}

/* Sports Integration Section */
.sports-integration {
    background: linear-gradient(135deg, #0f2a0f 0%, #1a1a1a 50%, #2d1810 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sports-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.match-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 2px solid rgba(80, 200, 120, 0.3);
    transition: var(--transition);
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(80, 200, 120, 0.2);
}

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

.sport-icon {
    font-size: 1.5rem;
    margin-right: 8px;
}

.sport-type {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
}

.match-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status.live {
    background: linear-gradient(45ff, #ff4444, #ff6666);
    color: white;
    animation: live-pulse 2s infinite;
}

.match-status.upcoming {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-color);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.team {
    color: var(--light-color);
}

.vs {
    color: var(--primary-color);
    font-weight: 700;
}

.match-odds {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.odd-btn {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius-small);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.odd-btn:hover {
    background: var(--gradient-primary);
    color: var(--dark-color);
    transform: scale(1.05);
}

.btn-bet {
    background: var(--gradient-accent);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: var(--transition);
}

.btn-bet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(80, 200, 120, 0.4);
}

.sports-note {
    text-align: center;
    font-style: italic;
    color: #ccc;
    font-size: 1rem;
    margin-top: 30px;
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 40px;
}

.section-cta .btn {
    margin: 0 8px 16px;
    min-width: 200px;
}

/* Games CTA */
.games-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #102d1a 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #50C878, #FFD700, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 220px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-categories {
        gap: 12px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .slots-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .live-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .crash-games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sports-matches {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-cta .btn {
        min-width: 180px;
        margin: 0 4px 12px;
    }
    
    .cta-buttons {
        gap: 16px;
    }
    
    .cta-buttons .btn {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .games-hero {
        padding: 100px 0 60px;
    }
    
    .game-categories {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .category-btn {
        min-width: 200px;
    }
    
    .slot-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .slot-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .match-teams {
        font-size: 1rem;
    }
    
    .section-cta .btn {
        min-width: 160px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 240px;
    }
}

/* Category Filter Animation */
[data-category] {
    transition: all 0.5s ease;
}

[data-category].hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}