﻿/* ===========================
   GAMES PAGE STYLES
   =========================== */

/* GAMES HERO SECTION */
.games-hero {
    position: relative;
    height: 45vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 42, 42, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.games-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 42, 42, 0.1) 100%);
}

.games-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.breadcrumb a {
    color: #ff2a2a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff4444;
}

.games-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(255, 42, 42, 0.3);
}

.games-hero-content p {
    font-size: 1.1rem;
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FILTER SECTION */
.filter-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, rgba(255, 42, 42, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 42, 42, 0.1);
}

.filter-bar {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 42, 42, 0.05);
    border: 2px solid rgba(255, 42, 42, 0.2);
    color: #aaaaaa;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: #ff2a2a;
    color: #ff2a2a;
}

.filter-btn.active {
    background: #ff2a2a;
    border-color: #ff2a2a;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.4);
}

/* GAMES GRID */
.games-section {
    padding: 5rem 0;
    background: #0a0a0a;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: #121212;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    border-color: #ff2a2a;
    box-shadow: 0 0 40px rgba(255, 42, 42, 0.3);
    transform: translateY(-10px);
}

.game-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 42, 42, 0.15), rgba(255, 42, 42, 0.05));
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.game-card:hover .game-card-image {
    background: linear-gradient(135deg, rgba(255, 42, 42, 0.3), rgba(255, 42, 42, 0.15));
    transform: scale(1.05);
}

.game-card-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: all 0.4s ease;
    z-index: 5;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.game-genre {
    display: inline-block;
    background: rgba(255, 42, 42, 0.2);
    color: #ff2a2a;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-description {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.game-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.2);
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.platform-btn:hover {
    background: rgba(255, 42, 42, 0.2);
    border-color: #ff2a2a;
    color: #ff2a2a;
}

.platform-icon {
    font-size: 1rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* FEATURED GAME SECTION */
.featured-game {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, rgba(255, 42, 42, 0.02) 100%);
    border-top: 1px solid rgba(255, 42, 42, 0.1);
}

.featured-game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-game-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(255, 42, 42, 0.2), rgba(255, 42, 42, 0.1));
    border: 2px solid rgba(255, 42, 42, 0.2);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.featured-game-container:hover .featured-game-image {
    border-color: #ff2a2a;
    box-shadow: 0 0 40px rgba(255, 42, 42, 0.3);
}

.featured-game-content {
    z-index: 2;
}

.featured-badge {
    display: inline-block;
    background: #ff2a2a;
    color: #0a0a0a;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.featured-game-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.featured-genre {
    color: #ff2a2a;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.featured-description {
    color: #aaaaaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-block;
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid rgba(255, 42, 42, 0.3);
    color: #aaaaaa;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    background: rgba(255, 42, 42, 0.2);
    border-color: #ff2a2a;
    color: #ff2a2a;
}

.featured-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* RESPONSIVE GAMES */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .featured-game-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-game-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .games-hero-content h1 {
        font-size: 2.5rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .game-card-image {
        height: 200px;
    }

    .game-card-content {
        padding: 1.5rem;
    }

    .filter-bar {
        gap: 1rem;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .featured-game-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .games-hero {
        height: 35vh;
        margin-top: 100px;
    }

    .games-hero-content h1 {
        font-size: 1.8rem;
    }

    .games-hero-content p {
        font-size: 0.95rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-bar {
        flex-direction: column;
        gap: 0.8rem;
    }

    .filter-btn {
        width: 100%;
    }

    .game-card-content {
        padding: 1.25rem;
    }

    .game-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .game-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .featured-game-image {
        height: 250px;
    }

    .featured-game-content h2 {
        font-size: 1.8rem;
    }

    .featured-buttons {
        flex-direction: column;
    }

    .featured-buttons .btn-primary,
    .featured-buttons .btn-secondary {
        width: 100%;
    }
}
