/* Games Blocks Styles */
.games-section {
    margin: 40px 0;
}

.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: #FEE001;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.games-btn {
    background: linear-gradient(45deg, #FEE001, #ffd700);
    color: #065C26;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 224, 1, 0.4);
    background: linear-gradient(45deg, #ffd700, #FEE001);
}

.games-btn.secondary {
    background: transparent;
    color: #FEE001;
    border: 2px solid #FEE001;
}

.games-btn.secondary:hover {
    background: #FEE001;
    color: #065C26;
}

.games-btn.active {
    background: #FEE001;
    color: #065C26;
    box-shadow: 0 4px 15px rgba(254, 224, 1, 0.3);
}

/* Filter Buttons */
.games-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #127C3A;
    color: #fff;
    padding: 8px 16px;
    border: 1px solid #FEE001;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FEE001;
    color: #065C26;
    transform: translateY(-1px);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.games-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Game Card */
.game-card {
    background: #127C3A;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 165, 0, 0.4);
    border-color: #FEE001;
}

.game-card-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

/* Game Type Badge */
.game-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #FEE001;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Game Overlay */
.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;
    z-index: 3;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(45deg, #FEE001, #ffd700);
    color: #065C26;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(254, 224, 1, 0.4);
}

/* Game Info */
.game-info {
    padding: 20px;
    text-align: center;
}

.game-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.game-category {
    font-size: 0.9rem;
    color: #FEE001;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-time {
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 15px;
}

/* Game Badges */
.game-badges {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-badge {
    background: #FEE001;
    color: #065C26;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    background: #127C3A;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #FEE001;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #FEE001;
    color: #065C26;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .games-title {
        font-size: 2rem;
    }
    
    .games-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .games-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .games-btn {
        width: 100%;
        text-align: center;
    }
}
