/* Games Section Styles */

/* Games Container */
.games-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.games-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f7d462, #FFB472);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.games-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.games-cta .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.games-cta .btn-primary {
    background: linear-gradient(180deg, #f7d462, #FFB472);
    color: #110D14;
    border: none;
}

.games-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 211, 88, 0.3);
}

.games-cta .btn-secondary {
    background: transparent;
    color: #f7d462;
    border: 1px solid #f7d462;
}

.games-cta .btn-secondary:hover {
    background: #f7d462;
    color: #110D14;
    transform: translateY(-2px);
}

/* Filter Buttons */
.games-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #f7d462;
    color: #110D14;
    border-color: #f7d462;
    transform: translateY(-1px);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Game Card */
.game-card {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(254, 211, 88, 0.3);
    border-color: #f7d462;
}

.game-card img {
    width: 100%;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

/* Game Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 13, 20, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    gap: 1rem;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-play-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, #f7d462, #FFB472);
    color: #110D14;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 211, 88, 0.4);
}

.game-demo-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #f7d462;
    border: 1px solid #f7d462;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.game-demo-btn:hover {
    background: #f7d462;
    color: #110D14;
}

/* Game Info */
.game-info {
    padding: 1rem;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.game-category {
    font-size: 0.85rem;
    color: #f7d462;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.game-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Game Badge */
.game-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f7d462;
    color: #110D14;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.game-type-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(17, 13, 20, 0.8);
    color: #f7d462;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

/* Sorting Controls */
.games-sorting {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-btn:hover,
.sort-btn.active {
    background: #f7d462;
    color: #110D14;
    border-color: #f7d462;
}

/* Category Filters */
.games-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: #f7d462;
    color: #110D14;
    border-color: #f7d462;
}

/* CTA Section */
.games-cta-section {
    text-align: center;
    padding: 2rem 0;
    background: rgba(254, 211, 88, 0.2);
    border-radius: 12px;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.games-cta-section h3 {
    font-size: 1.5rem;
    color: #f7d462;
    margin: 0 0 1rem 0;
}

.games-cta-section p {
    color: rgba(247, 212, 98, .7);
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .games-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .games-filters,
    .games-sorting,
    .games-categories {
        justify-content: center;
    }
    
    .filter-btn,
    .sort-btn,
    .category-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .games-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
