/* Games Block Styles */
.games-section {
    padding: 40px 0;
    background: #1a1a1a;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.games-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.games-title i {
    color: #78E02C;
    font-size: 2rem;
}

.games-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.games-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #78E02C;
    color: #000;
    border-color: #78E02C;
}

.view-all-btn {
    padding: 12px 24px;
    background: #78E02C;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    background: #6bc924;
    transform: translateY(-2px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.3);
    border-color: #78E02C;
}

.game-image-container {
    position: relative;
    overflow: hidden;
}

.game-image-container .game-image {
    width: 100%;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    padding: 12px 24px;
    background: #78E02C;
    color: #000;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-button:hover {
    background: #6bc924;
    transform: scale(1.05);
}

.game-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #78E02C;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.game-category {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0 0 8px 0;
}

.game-time {
    font-size: 0.8rem;
    color: #78E02C;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.game-popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 12px;
    border: 1px solid #444;
}

.cta-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.cta-description {
    color: #ccc;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.cta-button {
    padding: 15px 30px;
    background: #78E02C;
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-button:hover {
    background: #6bc924;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 224, 44, 0.3);
}

/* Sorting and Filtering */
.sorting-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sort-btn:hover,
.sort-btn.active {
    background: #78E02C;
    color: #000;
    border-color: #78E02C;
}

.category-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.category-btn:hover,
.category-btn.active {
    background: #78E02C;
    color: #000;
    border-color: #78E02C;
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .games-header {
        flex-direction: column;
        align-items: center;
    }
    
    .games-title {
        font-size: 2rem;
    }
    
    .games-controls {
        width: 100%;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .filter-btn,
    .sort-btn,
    .category-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .cta-section {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-filter-buttons,
    .sorting-controls,
    .category-filters {
        justify-content: center;
    }
}
