/* ==========================================
   TIERSTRATEGY — TAXONOMÍA POKÉMON TYPE
========================================== */

.type-page {
    width: min(calc(100% - 56px), 1180px);
    margin: 0 auto;
    padding: 72px 0 90px;
}

.type-title {
    margin: 0 0 48px;
    color: var(--ts-text, #11182c);
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.pokemon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 30px 28px 28px;
    border: 1px solid var(--ts-border, #dbe2ee);
    border-radius: 24px;
    background: var(--ts-bg, #ffffff);
    color: var(--ts-text, #11182c);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pokemon-card:hover {
    border-color: var(--ts-blue, #2864e8);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(17, 24, 44, 0.06);
}

.pokemon-card:focus-visible {
    outline: 2px solid var(--ts-blue, #2864e8);
    outline-offset: 4px;
}

.pokemon-card img {
    display: block;
    width: min(100%, 180px);
    height: 180px;
    margin: 0 auto 24px;
    object-fit: contain;
}

/* ENLACE DEL POKÉMON */
.pokemon-card-link {
    color: inherit;
    text-decoration: none;
}

.pokemon-card-link:hover,
.pokemon-card-link:focus,
.pokemon-card-link:visited {
    color: inherit;
    text-decoration: none;
}

.pokemon-card h3 {
    width: 100%;
    margin: 0 0 16px;
    color: var(--ts-text, #11182c);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.pokemon-card .types {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.pokemon-card .type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ts-surface, #f5f7fa);
    color: var(--ts-text, #11182c);
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
}

.type-page > p {
    margin: 0;
    color: var(--ts-text-soft, #647795);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ------------------------------------------
   Tablet
------------------------------------------ */

@media (max-width: 900px) {
    .type-page {
        width: min(calc(100% - 48px), 760px);
        padding: 64px 0 80px;
    }

    .pokemon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ------------------------------------------
   Móvil
------------------------------------------ */

@media (max-width: 600px) {
    .type-page {
        width: min(calc(100% - 40px), 520px);
        padding: 56px 0 70px;
    }

    .type-title {
        margin-bottom: 36px;
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .pokemon-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pokemon-card {
        padding: 28px 24px 26px;
        border-radius: 22px;
    }

    .pokemon-card img {
        width: min(100%, 170px);
        height: 170px;
        margin-bottom: 22px;
    }

    .pokemon-card h3 {
        font-size: 1.65rem;
    }
}
