/**
 * Talavera CF - Plantilla
 * Estilos para el shortcode [talavera_plantilla]
 */

/* Wrapper general */
.tcfp-plantilla-wrapper {
    box-sizing: border-box;
    width: 100%;
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.tcfp-plantilla-wrapper *,
.tcfp-plantilla-wrapper *::before,
.tcfp-plantilla-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Filtros (botones de posiciones) ---------- */
.tcfp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
    padding: 0 10px;
}

.tcfp-filter {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: #ffffff;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.tcfp-filter:hover,
.tcfp-filter:focus {
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.tcfp-filter.is-active {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

/* ---------- Grid de jugadores ---------- */
.tcfp-grid-wrapper {
    position: relative;
    min-height: 200px;
    transition: opacity 0.25s ease;
}

.tcfp-grid-wrapper.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

.tcfp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 1100px) {
    .tcfp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (max-width: 800px) {
    .tcfp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .tcfp-filters {
        gap: 8px;
    }
    .tcfp-filter {
        padding: 10px 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tcfp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ---------- Tarjeta ---------- */
.tcfp-card {
    background-color: #0d1525;
    border: 1px solid #64748B;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tcfp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

/* Foto */
.tcfp-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #0F172A;
    overflow: hidden;
}

.tcfp-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Dorsal */
.tcfp-card__number {
    position: absolute;
    right: 14px;
    bottom: 14px;
    min-width: 56px;
    height: 56px;
    padding: 0 10px;
    background-color: #1567ff; /* azul fuerte como en la imagen */
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    letter-spacing: -0.02em;
}

@media (max-width: 800px) {
    .tcfp-card__number {
        min-width: 44px;
        height: 44px;
        font-size: 22px;
        right: 10px;
        bottom: 10px;
        border-radius: 6px;
    }
}

/* Info */
.tcfp-card__info {
    padding: 22px 24px 26px;
}

.tcfp-card__name {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tcfp-card__position {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

@media (max-width: 800px) {
    .tcfp-card__info {
        padding: 16px 18px 20px;
    }
    .tcfp-card__name {
        font-size: 18px;
    }
    .tcfp-card__position {
        font-size: 13px;
    }
}

/* ---------- Estado vacío ---------- */
.tcfp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    opacity: 0.7;
    font-size: 16px;
}

/* ---------- Animación de entrada ---------- */
.tcfp-grid {
    animation: tcfpFadeIn 0.35s ease;
}

@keyframes tcfpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
