/* Games Block Styles */
.games-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.games-title {
    font-size: 2rem;
    font-weight: bold;
    color: #f0c354;
    margin: 0;
}

.games-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.games-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #f0c354;
    color: #f0c354;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f0c354;
    color: #000;
    transform: translateY(-2px);
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(240, 195, 84, 0.1);
    border: 1px solid rgba(240, 195, 84, 0.3);
    color: #f0c354;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.sort-btn:hover,
.sort-btn.active {
    background: #f0c354;
    color: #000;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.game-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(240, 195, 84, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(240, 195, 84, 0.3);
    border-color: #f0c354;
}

.game-card .game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card .game-image {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(240, 195, 84, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(45deg, #f0c354, #ff6b35);
    color: #000;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(240, 195, 84, 0.5);
}

.game-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: #f0c354;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.game-popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b35, #f0c354);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.game-time-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
}

.game-rtp-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #f0c354, #ff6b35);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 2;
}

.game-demo-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(240, 195, 84, 0.9);
    color: #000;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-demo-btn:hover {
    background: #f0c354;
    transform: scale(1.05);
}

.games-cta {
    text-align: center;
    margin-top: 2rem;
}

.games-cta .btn {
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .games-title {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .games-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .games-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        flex: none;
    }
}

/* Loading Animation */
.games-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #f0c354;
}

.games-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f0c354;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy Loading */
.game-card .game-image[data-src] {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
