/*
 Theme Name:   BirdCom
 Theme URI:    https://birdcom.es
 Description:  BirdCom Comunicación y Diseño
 Author:       Dani Moreno
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

a {
    text-decoration: none;
}

/* ══════════════════════════════════════
   SLIDER JUGADORES
══════════════════════════════════════ */

.jugadores-slider {
    position: relative;
    max-width: 100%;
    background: #f5f5f5;
    padding: 60px 0 120px;
    overflow: hidden;
}

/* ── Thumbnails ── */
.splide--thumbs {
    margin-bottom: 0;
}

.splide--thumbs .splide__track {
    overflow: visible !important;
    padding: 20px 0 !important;
}

.splide--thumbs .splide__slide {
    opacity: 0.2;
    transition: opacity .4s ease;
    border: none !important;
    outline: none !important;
}
.splide--thumbs .splide__slide.is-active {
    opacity: 1;
    border: none !important;
    outline: none !important;
}

.splide--thumbs .splide__slide.is-prev,
.splide--thumbs .splide__slide.is-next {
    opacity: 0.35;
}

.splide--thumbs .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* ── Info panel ── */
.splide--info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    max-width: 85vw;
    z-index: 10;
}

.splide--info .splide__track {
    overflow: visible;
}

.splide--info .splide__list {
    overflow: visible;
}

.splide--info .splide__slide a {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #111;
    background: #fff;
    padding: 20px 28px;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.dorsal {
    font-size: 4rem;
    font-weight: 900;
    color: #ccc;
    line-height: 1;
    flex-shrink: 0;
}

.jugador-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.posicion {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
    margin: 0;
    color: #888;
}

/* ── Flechas ── */
.jugadores-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: box-shadow .2s;
    padding: 0;
    line-height: 1;
}

.jugadores-arrow:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.jugadores-arrow svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    color: #111;
    display: block !important;
    flex-shrink: 0;
}

.jugadores-arrow svg path {
    stroke: #111;
    stroke-width: 2;
}

.jugadores-prev { left: 20px; }
.jugadores-next { right: 20px; }

/* ── Responsive slider ── */
@media (max-width: 768px) {
    .jugadores-slider { padding-bottom: 100px; }
    .splide--info { width: 85vw; bottom: 20px; }
    .dorsal { font-size: 2.8rem; }
    .jugadores-prev { left: 10px; }
    .jugadores-next { right: 10px; }
}

/* ══════════════════════════════════════
   GRID JUGADORES
══════════════════════════════════════ */

.jugadores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jugador-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.jugador-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    display: block;
    filter: grayscale(20%);
    transition: filter .3s;
}

.jugador-card:hover img {
    filter: grayscale(0%);
}

.jugador-card__info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 2px solid #111;
}

.jugador-card__dorsal {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ddd;
    line-height: 1;
}

.jugador-card__info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 3px;
}

.jugador-card__info p {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #888;
    margin: 0;
}

@media (max-width: 1024px) {
    .jugadores-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .jugadores-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .jugadores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}