﻿@import "header.css";
@import "background.css";
@import "footer.css";

h1{
    text-align: center;
    font-family:  Verdana, serif;
}

#gameSubtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.1vw;
    margin-top: -0.5em;
    margin-bottom: 2em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: Verdana, serif;
}

/* ── FILTER BAR ── */
#filterBar {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    margin-bottom: 2.5em;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(178, 75, 209, 0.35);
    color: #aaa;
    font-family: Verdana, serif;
    font-size: 0.72em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: rgba(178, 75, 209, 0.7);
    color: #c87fe8;
}

.filter-btn.active {
    background: rgba(178, 75, 209, 0.2);
    border-color: rgba(178, 75, 209, 0.8);
    color: white;
    box-shadow: 0 0 12px rgba(178, 75, 209, 0.25);
}

/* ── GAME GRID ── */
#gamesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8em;
    margin: 0 6vw 4em;
}

.game-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(178, 75, 209, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: white;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(178, 75, 209, 0.35);
    border-color: rgba(178, 75, 209, 0.7);
}

/* Ocultar cartas filtradas */
.game-card.hidden {
    display: none;
}

/* Badge en la esquina de la imagen */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(178, 75, 209, 0.85);
    color: white;
    font-size: 0.55em;
    font-family: Verdana, serif;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.game-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a0a22, #2d1040);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.game-info {
    padding: 1em 1.2em 1.2em;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.game-title {
    font-family: Verdana, serif;
    font-size: 1em;
    font-weight: bold;
    color: #e0c8f0;
    margin: 0;
}
.game-desc {
    font-family: Verdana, serif;
    font-size: 0.78em;
    color: #bbb;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}
.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5em;
}
.game-tag {
    background: rgba(178, 75, 209, 0.2);
    border: 1px solid rgba(178, 75, 209, 0.4);
    color: #c87fe8;
    font-size: 0.68em;
    padding: 2px 10px;
    border-radius: 50px;
    font-family: Verdana, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.game-play-badge {
    font-size: 0.68em;
    color: #7ec87e;
    font-family: Verdana, serif;
    border: 1px solid rgba(126, 200, 126, 0.4);
    padding: 2px 10px;
    border-radius: 50px;
}

#itchFooter {
    text-align: center;
    margin: 0 0 3em;
}
#itchFooter a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(178, 75, 209, 0.5);
    color: #c87fe8;
    font-family: Verdana, serif;
    font-size: 0.95em;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
#itchFooter a:hover {
    background: rgba(178, 75, 209, 0.15);
    box-shadow: 0 0 20px rgba(178, 75, 209, 0.3);
    border-color: rgba(178, 75, 209, 0.8);
    color: white;
}

@media (max-width: 600px) {
    #gameSubtitle { font-size: 3vw; }
    #gamesGrid { margin: 0 4vw 3em; gap: 1.2em; }
}