/* ═══════════════════════════════════════════════════════════════
   Games Catalog Styles
   ═══════════════════════════════════════════════════════════════ */

.games-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* ─── Banner ───────────────────────────────────────────────── */
.games-banner {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    margin-bottom: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(80, 102, 255, 0.12) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 1px solid rgba(80, 102, 255, 0.2);
}

.banner-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(80, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-label {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.banner-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.banner-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
}

/* ─── Search ───────────────────────────────────────────────── */
.games-search-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.game-search-input {
    width: 100%;
    padding: 14px 20px 14px 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    transition: all 0.25s ease;
    outline: none;
}

.game-search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(80, 102, 255, 0.15);
}

.game-search-input::placeholder {
    color: var(--text-muted);
}

.games-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.games-count strong {
    color: var(--accent-blue);
    font-weight: 700;
}

/* ─── Games Grid ───────────────────────────────────────────── */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ─── Game Card ────────────────────────────────────────────── */
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.35s ease;
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 30px rgba(80, 102, 255, 0.2);
    transform: translateY(-6px);
}

.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    background: var(--bg-primary);
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.08);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-buy {
    padding: 10px 28px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(80, 102, 255, 0.4);
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(80, 102, 255, 0.6);
    color: white;
}

/* ─── Game Badges ──────────────────────────────────────────── */
.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: rgba(255, 68, 102, 0.85);
    color: white;
}

.badge-new {
    background: rgba(80, 102, 255, 0.85);
    color: white;
}

/* ─── Game Info ─────────────────────────────────────────────── */
.game-info {
    padding: 16px;
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-cheats {
    font-size: 12px;
    color: var(--text-muted);
}

.cheat-count {
    font-weight: 700;
    color: var(--accent-orange);
}

.game-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .games-container {
        padding-top: 80px;
    }

    .games-banner {
        padding: 36px 24px;
    }

    .games-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .games-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }
}