/* Documentación de Diseño: Interfaz "Panini Legends" - Black & Gold Edition */

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@300;400;500;700&display=swap');

/* =========================
   Base & Layout
   ========================= */
.players-directory-page {
  --psd-color-primary: #D4AF37;
  /* Gold */
  --psd-color-secondary: #000000;
  --psd-color-bg: #FFFFFF;
  --psd-color-text: #121213;
  --psd-spacing-xl: 32px;
  --psd-spacing-md: 16px;
  --psd-spacing-lg: 24px;
}

/* --- ESTILO DE LA TARJETA --- */
.sticker-card {
  /* Fondo BLACK & GOLD: Negro profundo con un toque dorado muy sutil */
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #333;
}

/* Borde dorado externo al hacer hover */
.sticker-card:hover {
  transform: scale(1.03) translateY(-5px);
  z-index: 20;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.3);
  border-color: #D4AF37;
}

/* Marco Dorado Interno */
.gold-frame-inner {
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  /* Sombra interna para separar la imagen del fondo si hay transparencia */
}

/* Fondo para la sección de detalles (parte inferior) */
/* Se fuerza un fondo negro sólido para que el texto sea legible siempre */
/* Fondo para la sección de detalles (parte inferior) */
/* Se fuerza un fondo negro con transparencia */
.mt-auto {
  background-color: rgba(0, 0, 0, 0.75) !important;
  /* Transparencia solicitada */
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem !important;
  backdrop-filter: blur(4px);
  /* Efecto vidrio opcional pero elegante */
}

/* --- LÓGICA DE POSICIONES --- */
.pitch-zone {
  fill: #374151;
  /* Gris oscuro por defecto */
  opacity: 0.3;
  transition: fill 0.3s;
}

/* Colores neón para contraste sobre negro */
[data-pos="GK"] .zone-gk {
  fill: #fbbf24;
  opacity: 1;
}

[data-pos="DEF"] .zone-def {
  fill: #60a5fa;
  opacity: 1;
}

[data-pos="MID"] .zone-mid {
  fill: #34d399;
  opacity: 1;
}

[data-pos="FW"] .zone-att {
  fill: #f87171;
  opacity: 1;
}

.holo-overlay {
  background: linear-gradient(115deg, transparent 40%, rgba(212, 175, 55, 0.15) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

.sticker-card:hover .holo-overlay {
  opacity: 1;
  animation: holoMove 2.5s infinite linear;
}

@keyframes holoMove {
  0% {
    background-position: 150% 0;
  }

  100% {
    background-position: -50% 0;
  }
}

/* Tipografía de datos */
.stat-label {
  font-size: 0.65rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #f3f4f6;
  font-family: 'Oswald', sans-serif;
}

/* Títulos / Nombres */
/* Títulos / Nombres */
.font-panini {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.25rem !important;
  /* Reducido para evitar saltos de línea */
  line-height: 1;
  color: #D4AF37 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.25rem;
  /* Ajuste margen */
}

/* Forzar color dorado en nombres */
.text-title-white {
  color: #D4AF37 !important;
}

.text-south-gold {
  color: #D4AF37 !important;
}

/* Utilities */
.shadow-sticker {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
.psd-header {
  text-align: center;
  margin-bottom: 32px;
}

.psd-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Anton', sans-serif;
}

.psd-subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Filter Styles */
.psd-search input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 24px;
}

.psd-confed-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.psd-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.psd-chip:hover {
  background: #e5e7eb;
}

.psd-chip.is-active {
  background: #D4AF37;
  color: black;
}

/* Grid */
.psd-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* =========================
   Mobile Optimization
   ========================= */
@media (max-width: 640px) {
  .players-directory-page {
    padding: 12px;
    /* Reduce padding on mobile container */
  }

  .psd-grid {
    gap: 10px;
    /* Smaller gap */
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
  }

  .sticker-card {
    border-radius: 6px;
  }

  /* Logo resizing for mobile */
  /* We target the div container by its flex properties since classes might vary */
  .sticker-card .flex.items-center.justify-center {
    width: 32px !important;
    height: 32px !important;
  }

  /* Reduce font sizes drastically for mobile */
  .font-panini {
    font-size: 0.85rem !important;
    /* Smaller name specifically for mobile */
    margin-bottom: 2px !important;
  }

  .stat-label {
    font-size: 0.45rem;
    margin-bottom: 0px;
    letter-spacing: 0;
  }

  .stat-value {
    font-size: 0.65rem;
  }

  /* Adjust details section padding */
  .mt-auto {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  /* Reduce SVG size if needed */
  .sticker-card svg {
    width: 14px;
    height: 20px;
  }

  /* Fix image positioning if cutting off head */
  /* Ensure image anchors to top so face is visible */
  .sticker-card img {
    object-position: top center;
  }
}