/* ==========================================
   TIERSTRATEGY — SINGLE POKÉMON
   BASE PAGE
   ========================================== */


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.ts-single-pokemon {
    width: min(
        calc(100% - 40px),
        var(--ts-container)
    );

    margin: 0 auto;

    min-width: 0;
}


/* =========================================================
   PREVENCIÓN DE OVERFLOW
   ========================================================= */

.ts-single-pokemon,
.ts-single-pokemon__content,
.single-pokemon-section,
.ts-single-pokemon-sets,
.ts-competitive-sets,
.ts-competitive-set {
    min-width: 0;
    max-width: 100%;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.ts-single-pokemon__section,
.single-pokemon-section,
.ts-single-pokemon-sets {
    width: 100%;
    margin-top: 40px;
}

.ts-single-pokemon__section:first-child {
    margin-top: 0;
}


/* =========================================================
   ENCABEZADOS
   ========================================================= */

.ts-single-pokemon__section h2,
.single-pokemon-section h2,
.ts-section-header h2 {
    margin: 0;

    color: var(--ts-text);

    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.single-pokemon-section h3,
.ts-set-section h4 {
    margin: 0;

    color: var(--ts-text);

    line-height: 1.3;
}


/* =========================================================
   KICKER
   ========================================================= */

.ts-single-pokemon__section-kicker {
    margin: 0 0 8px;

    color: var(--ts-blue);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   TEXTO
   ========================================================= */

.ts-single-pokemon__analysis,
.ts-set-analysis__content,
.single-pokemon-intelligence-item__explanation {
    color: var(--ts-text-soft);

    font-size: 16px;
    line-height: 1.7;

    overflow-wrap: anywhere;
    word-break: normal;
}

.ts-single-pokemon__analysis p,
.ts-set-analysis__content p,
.single-pokemon-intelligence-item__explanation p {
    margin: 0 0 16px;
}

.ts-single-pokemon__analysis p:last-child,
.ts-set-analysis__content p:last-child,
.single-pokemon-intelligence-item__explanation p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ENLACES
   ========================================================= */

.ts-single-pokemon a {
    color: var(--ts-blue);
    text-decoration: none;

    transition: color 0.2s ease;
}

.ts-single-pokemon a:hover {
    color: var(--ts-blue-dark);
}


/* =========================================================
   LISTAS GENERALES
   ========================================================= */

.ts-single-pokemon ul {
    margin-top: 0;
    margin-bottom: 0;
}


/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.ts-empty-state {
    margin: 0;

    color: var(--ts-text-soft);

    font-size: 15px;
    line-height: 1.6;
}



/* =========================================================
   NAVEGACIÓN GLOBAL DE VISTA
   ========================================================= */

.ts-single-pokemon__view-nav {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin: 24px 0 32px;

    border: 1px solid var(--ts-border);
    border-radius: 12px;
    overflow: hidden;

    background: var(--ts-bg-soft);
}

.ts-single-pokemon__view-link {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;

    color: var(--ts-text-soft);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    border-right: 1px solid var(--ts-border);

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.ts-single-pokemon__view-link:last-child {
    border-right: 0;
}

.ts-single-pokemon__view-link:hover {
    color: var(--ts-text);
    background: var(--ts-bg);
}

.ts-single-pokemon__view-link:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--ts-blue);
    outline-offset: -2px;
}

.ts-single-pokemon__view-link.is-active {
    color: var(--ts-text);
    background: var(--ts-bg);
}

.ts-single-pokemon__view-link.is-active:hover {
    color: var(--ts-text);
}


/* =========================================================
   RESPONSIVE — NAVEGACIÓN DE VISTA
   ========================================================= */

@media (max-width: 480px) {

    .ts-single-pokemon__view-nav {
        margin: 20px 0 28px;
        border-radius: 10px;
    }

    .ts-single-pokemon__view-link {
        min-height: 44px;
        padding: 10px 8px;

        font-size: 13px;
    }
}



/* =========================================================
   EFECTIVIDAD DE TIPOS
   Bloque compartido de Single Pokémon
   ========================================================= */

.ts-pokedex-effectiveness {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 48px;
}

.ts-pokedex-effectiveness__group {
    margin-top: 20px;
}

.ts-pokedex-effectiveness__group-title {
    margin: 0 0 12px;
    color: var(--ts-text);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
}

.ts-pokedex-effectiveness__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ts-pokedex-effectiveness__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 16px 20px;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    background: var(--ts-bg);
}

.ts-pokedex-effectiveness__type {
    min-width: 0;
    color: var(--ts-text);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
}

.ts-pokedex-effectiveness__type:hover,
.ts-pokedex-effectiveness__type:focus-visible {
    color: var(--ts-blue-dark);
}

.ts-pokedex-effectiveness__multiplier {
    flex: 0 0 auto;
    color: var(--ts-text-soft);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

@media (min-width: 769px) {

    .ts-pokedex-effectiveness__group {
        margin-top: 24px;
    }

    .ts-pokedex-effectiveness__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .ts-pokedex-effectiveness__item {
        padding: 18px 22px;
    }
}

@media (max-width: 800px) {

    .ts-pokedex-effectiveness {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {

    .ts-pokedex-effectiveness {
        margin-top: 28px;
        padding-bottom: 28px;
    }
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

    .ts-single-pokemon {
        width: min(
            calc(100% - 32px),
            var(--ts-container)
        );
    }

    .ts-single-pokemon__section,
    .single-pokemon-section,
    .ts-single-pokemon-sets {
        margin-top: 32px;
    }

    .ts-single-pokemon__section h2,
    .single-pokemon-section h2,
    .ts-section-header h2 {
        font-size: 24px;
    }
}


/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 480px) {

    .ts-single-pokemon {
        width: calc(100% - 24px);
    }

    .ts-single-pokemon__section,
    .single-pokemon-section,
    .ts-single-pokemon-sets {
        margin-top: 28px;
    }

    .ts-single-pokemon__section h2,
    .single-pokemon-section h2,
    .ts-section-header h2 {
        font-size: 22px;
    }

    .ts-single-pokemon__analysis,
    .ts-set-analysis__content,
    .single-pokemon-intelligence-item__explanation {
        font-size: 15px;
    }
}