/* Games Page Specific Styles */

.games-btn.active {
    background: #333;
    color: white;
}

/* Games Header */
.games-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 40px 40px;
    background-color: #1a1a1a;
}

.games-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.games-left {
    flex: 1;
    position: relative;
}

.games-left h1 {
    font-size: clamp(120px, 15vw, 200px);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 40px;
    color: white;
}

.games-hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.games-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: stretch;
    justify-content: space-between;
}

.featured-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.featured-game {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.featured-game:hover {
    transform: scale(1.05);
}

.featured-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-game a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.featured-game:hover .game-overlay {
    transform: translateY(0);
}

.game-overlay h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 5px;
}

.game-overlay p {
    font-size: 12px;
    opacity: 0.8;
}

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

.game-tile {
    background: #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.game-tile:hover {
    transform: translateY(-10px);
}

.game-tile a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.game-info p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
    color: white;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-rating span:first-child {
    color: #ffd700;
    font-size: 16px;
}

.game-rating span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Responsive Design for Games Page */
@media (max-width: 1024px) {
    .games-content {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .featured-games {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .games-header,
    .game-categories-section,
    .all-games-section {
        padding: 80px 20px;
    }
    
    .featured-games {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .category-games {
        flex-direction: column;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .featured-games {
        max-width: 250px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}