/* ================================================================
   NETHERWARE GAMES CATALOG (GRID 9x9 + PAGINATION)
   ================================================================ */

.games-catalog-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h2 {
    font-family: 'Archivo Black', sans-serif, system-ui;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.catalog-header .highlight-red {
    color: #FF1E1E;
}

.catalog-header p {
    color: #888888;
    font-size: 0.95rem;
    margin: 0;
}

/* --- GRID DE 3 COLUMNAS --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* --- TARJETA Y FICHA --- */
.catalog-card {
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: translateY(-6px);
    border-color: #FF1E1E;
    box-shadow: 0 12px 30px rgba(255, 30, 30, 0.15);
}

.card-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: #000000;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.catalog-card:hover .card-cover img {
    transform: scale(1.05);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border-top: 1px solid #151515;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: #FF1E1E;
    background: rgba(255, 30, 30, 0.08);
    border: 1px solid rgba(255, 30, 30, 0.25);
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-title {
    font-family: 'Archivo Black', sans-serif, system-ui;
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.catalog-card:hover .card-title {
    color: #FF1E1E;
}

.card-desc {
    font-size: 0.88rem;
    color: #999999;
    line-height: 1.45;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-footer {
    padding-top: 12px;
    border-top: 1px solid #181818;
}

.btn-more {
    font-size: 0.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.btn-more .arrow {
    font-style: normal;
    color: #FF1E1E;
    transition: transform 0.3s ease;
}

.catalog-card:hover .btn-more {
    color: #FF1E1E;
}

.catalog-card:hover .btn-more .arrow {
    transform: translateX(5px);
}

/* --- ESTILOS DE PAGINACIÓN --- */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #0a0a0a;
    border: 1px solid #222222;
    color: #ffffff;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background-color: #FF1E1E;
    border-color: #FF1E1E;
    color: #ffffff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}