
/* FIFA CARDS */

/* ===================== FIFA PLAYER CARDS ===================== */

.fifa-players-section {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.fifa-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}

/* Scrollable window */
.fifa-carousel-window {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;           /* Firefox */
}

.fifa-carousel-window::-webkit-scrollbar {
  display: none;                   /* WebKit */
}

/* Track holding the cards – this REPLACES the old grid rule */
.fifa-card-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(1.4rem, 2.8vw, 2.4rem);
  padding: 0.6rem 0.6rem 1rem;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Section heading */
.section-heading-fifa {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f9fafb;
  text-shadow: 0 3px 10px rgba(0,0,0,0.85);
}

/* Card wrapper */
.fifa-card {
  position: relative;
  perspective: 1400px;
  /* wider cards on desktop */
  flex: 0 0 min(320px, 30vw);
  scroll-snap-align: start;
}
/* Arrow buttons (similar to news) */
.fifa-caro-btn {
  border: none;
  color: #ffffff;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.4);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease,
    background 0.12s ease;
}

.fifa-caro-btn i {
  font-size: 0.9rem;
}

.fifa-caro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  background: radial-gradient(circle at 30% 30%, #ffffff, #f3d77b);
}

.fifa-caro-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.fifa-caro-btn[disabled],
.fifa-caro-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Shield-shaped card */
.fifa-card-inner {
  position: relative;
  height: 100%;
  min-height: 320px;
  padding: 0.8rem;
  border-radius: 26px 26px 34px 34px;
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.76), rgba(15,23,42,0.7)),
    url("/images/card-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 45px rgba(0,0,0,0.55);
  overflow: hidden;
  transform-origin: center bottom;
  transform: translateY(0) scale(1);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

/* Inset border inside the card */
.fifa-card-inner::before {
  content: "";
  position: absolute;
  inset: 7px 7px 10px;
  border-radius: 22px 22px 30px 30px;
  border: 1px solid rgba(243,215,123,0.9);
  pointer-events: none;
  z-index: 5;
}

/* Hover effect */
.fifa-card:hover .fifa-card-inner {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 28px 70px rgba(0,0,0,0.75);
}

/* ---------------- Left gold stripe ---------------- */

.fifa-card-stripe {
  position: absolute;
  inset: 0;
  margin-left: 10%;
  width: 20%; /* narrower strip */
  background: linear-gradient(
    to bottom,
    #fef3c7 0%,
    var(--gold-light) 35%,
    var(--gold) 72%,
    #78350f 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.35);
  z-index: 2;
}

/* Glow / fade that spills under the stats on the right */
.fifa-card-stripe::after {
  content: "";
  position: absolute;
  top: 0;
  right: -55%;
  width: 95%;
  height: 100%;
  background: radial-gradient(
    circle at left center,
    rgba(243,215,123,0.55) 0%,
    rgba(243,215,123,0.28) 35%,
    transparent 75%
  );
  opacity: 0.8;
  pointer-events: none;
}

/* Jersey number */
.fifa-jersey {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #0080cb;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Club logo circle below jersey */
.fifa-logo-wrap {
  margin-top: 0.4rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(15,23,42,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

.fifa-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------------- Right-hand content ---------------- */

.fifa-card-main {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0.6rem 0.6rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Player photo */
.fifa-photo-wrap {
  width: 100%;
  max-width: 250px; /* bigger photo */
  aspect-ratio: 3 / 4;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.fifa-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* keep full image visible */
  object-position: 80% center; 
  margin: 0;      
  z-index: 10;
}

/* Player name */
.fifa-player-name {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: #f9fafb;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  white-space: nowrap;
}

/* ---------------- Stats as a table ---------------- */

/* Grid acts like a table wrapper */
.fifa-stats-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2rem;
  row-gap: 0.35rem;
  font-size: 0.78rem;
  padding-top: 0.5rem;
  margin-top: 0.15rem;
  color: #e5e7eb;
}

.fifa-details {
    width: 120%;
    padding-inline: 20%;
    background-color: #02061767;
    overflow: visible;
    padding-bottom: 20px;

}
/* Top rule above the “table” */
.fifa-stats-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148,163,184,0.9),
    transparent
  );
}

/* Vertical divider between the two columns */
.fifa-stats-grid::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(148,163,184,0.9) 20%,
    rgba(148,163,184,0.9) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Each cell = one stat */
.fifa-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.1rem 0;
}

/* Label on the left */
.fifa-stat-row .label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(209,213,219,0.9);
}

/* Value on the right */
.fifa-stat-row .value {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--gold-light);
}

/* ---------------- Responsive tweaks ---------------- */

/* Tablet: 2 cards in view */
@media (max-width: 900px) {
  .fifa-card {
    flex: 0 0 48vw;
  }
}

/* Phones: exactly 1 card in view, swipe left/right */
@media (max-width: 600px) {
  .fifa-carousel-window {
    padding-inline: 0;           /* keep it tight */
    overflow-x: auto;      /* ensure it can actually scroll */

  }

  .fifa-card-grid {
    gap: 0;                      /* no peeking of next card */
    justify-content: flex-start; 
  }

  .fifa-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

    .fifa-player-name {
    font-size: 1.1rem;      /* tweak this value to taste */
    letter-spacing: 0.12em; /* optional: reduce spacing too */
  }

}


/* Top-right badge with golden glow */
.fifa-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle at 50% 30%,
              rgba(254, 249, 195, 0.35) 0,
              rgba(234, 179, 8, 0.3) 40%,
              rgba(120, 53, 15, 0.35) 100%);
  box-shadow:
    0 0 12px rgba(250, 204, 21, 0.2),
    0 0 28px rgba(250, 204, 21, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;          /* above inner border / stripe / player */
  pointer-events: none; /* keep hover handling on the whole card */
}

/* subtle outer halo behind the badge */
.fifa-badge::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle,
              rgba(250, 250, 210, 0.253),
              transparent 90%);
  opacity: 0.85;
  z-index: 1;
}

/* badge image */
.fifa-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}


.fifa-group {
  margin-top: 1.5rem;
}

.fifa-group-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5edf9;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.fifa-group-title span {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(188,214,241,0.9);
}

/* cards are NOT in a horizontal carousel on this page */
.players-grid .fifa-card { flex: 1 1 280px; max-width: 340px; }


/* Remove underlines for the whole FIFA card link + anything inside it */
a.fifa-card,
a.fifa-card *,
a.fifa-card:hover,
a.fifa-card:focus,
a.fifa-card:active,
a.fifa-card:visited {
  text-decoration: none !important;
}

/* Optional: keep normal link colors from bleeding into card text */
a.fifa-card,
a.fifa-card:visited {
  color: inherit;
}

a { text-decoration: none; }
