/* ==========================================
   FORMATIONS PAGE STYLES
========================================== */

.formations-page {
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
}

/* ── Header ── */
.formations-header {
  text-align: center;
  margin-bottom: 36px;
}

.formations-header .fc-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.formations-header h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.formations-header .subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a7b68;
}

/* ── Tabs ── */
.formations-tabs {
  display: flex;
  gap: 0;
  margin: 0 auto 40px;
  max-width: 720px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px solid rgba(134, 110, 67, 0.2);
  overflow: hidden;
}

.formations-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #8a7b68;
  padding: 14px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.formations-tab i {
  font-size: 0.95rem;
}

.formations-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.formations-tab:hover {
  color: #c9a84c;
  background: rgba(134, 110, 67, 0.08);
}

.formations-tab.active {
  background: var(--gold);
  color: #000000;
  font-weight: 800;
}

.formations-tab.active::after {
  opacity: 0;
}

/* ── Cards Grid ── */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Formation Card ── */
.formation-card {
  background: linear-gradient(160deg, #141210 0%, #1a1614 100%);
  border: 1px solid rgba(134, 110, 67, 0.25);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.25s ease;
}

.formation-card:hover {
  transform: translateY(-3px);
  border-color: rgba(134, 110, 67, 0.55);
}

/* Card Header — rank + name */
.formation-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.formation-rank {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  min-width: 36px;
}

.formation-name {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Formation Pitch Diagram */
.formation-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, rgba(20, 18, 14, 0.9), rgba(14, 12, 8, 1));
  border: 1px solid rgba(134, 110, 67, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

/* Pitch lines */
.formation-pitch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(134, 110, 67, 0.15);
}

.formation-pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(134, 110, 67, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Pitch dot (player position) */
.pitch-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(134, 110, 67, 0.5);
}

/* Description Section */
.formation-desc {
  margin-bottom: 16px;
}

.formation-desc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.formation-desc-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

.formation-card-title {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 8px 16px;
  background: rgba(134, 110, 67, 0.1);
  border-radius: 8px;
  margin: 0 0 8px 0;
}

.formation-card-description {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  padding: 0 8px;
  margin: 0;
}

/* View Details Button */



/* ── Responsive ── */
@media (max-width: 900px) {
  .formations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .formations-page {
    padding: 80px 14px 40px;
  }

  .formations-header h1 {
    font-size: 1.3rem;
  }

  .formations-tabs {
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
  }

  .formations-tab {
    padding: 12px 16px;
    font-size: 0.82rem;
  }

  .formations-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .formation-rank {
    font-size: 1.6rem;
  }

  .formation-name {
    font-size: 0.95rem;
  }
}


/* ── Card Title & Description ── */
.formation-card-title {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 8px 16px;
  background: rgba(134, 110, 67, 0.1);
  border-radius: 8px;
  margin: 0 0 8px 0;
}

.formation-card-description {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  text-align: center;
  padding: 0 8px;
  margin: 0;
}
  border: 1px solid rgba(134, 110, 67, 0.25);
  border-radius: 8px;
  margin-top: 8px;
}
