:root {

  --green-dark: #0b3920;
  --green-main: #1f6d39;
  --green-light: #2d8a4f;

  --gold: #c6a55c;

  --cream: #faf7f2;

  --text-main: #13311f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  font-family: "Merriweather", serif;

  color: var(--text-main);

  display: flex;
  flex-direction: column;

  min-height: 100vh;

  background:
    radial-gradient(circle at top, #f8faf8, #ffffff 40%);
}

/* HEADER */

header {

  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 1rem;

  background:
    linear-gradient(
      135deg,
      var(--green-dark),
      var(--green-main)
    );

  margin-bottom: 1rem;

  position: relative;

  box-shadow:
    0 6px 20px rgba(0,0,0,0.12);
}

.logo {

  height: 140px;
  width: auto;

  filter:
    drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* NAV */

.nav-content {

  display: flex;

  justify-content: center;

  gap: 30px;

  padding-bottom: 1rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.nav-content a {

  color: #ffffff;

  text-decoration: none;

  font-size: 14px;

  position: relative;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.nav-content a::after {

  content: "";

  position: absolute;

  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: var(--gold);

  transition: width 0.25s ease;
}

.nav-content a:hover::after {
  width: 100%;
}

.nav-content a:hover {
  color: var(--gold);
}

/* HAMBURGER */

.menu-toggle {

  display: none;

  position: absolute;

  right: 20px;
  top: 25px;

  font-size: 28px;

  color: white;

  cursor: pointer;
}



 @media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-content {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
    padding-bottom: 1rem;
  }

  .nav-content.active {
    display: flex;
  }

  .logo {
    height: 100px;
  }
} 

.title {
    text-align: center;

  color: var(--green-dark);

  font-weight: 800;

  font-size: clamp(1.9rem, 4vw, 2.5rem);

  margin-top: 1.2em;

  position: relative;

  letter-spacing: -0.03em;

  margin-bottom: 1.5em;
}

.title::after {

  content: "";

  width: 80px;
  height: 3px;

  background: var(--gold);

  display: block;

  margin: 14px auto 0;

  border-radius: 999px;
}
/* =========================
   HERO
========================= */

.players-hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.players-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.players-hero p {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* =========================
   GRID
========================= */

.players-grid {
  width: min(1200px, 92%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  padding-bottom: 80px;
}

/* =========================
   CARD
========================= */

.player-card {
  display: block;
  text-decoration: none;
  color: white;
  background:
    linear-gradient(
      135deg,
      var(--green-dark),
      var(--green-main)
    );
  border: 5px solid var(--gold);
  border-radius: 20px;
  padding: 22px;
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: #3a3a3a;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 55%);
  pointer-events: none;
}

/* =========================
   TOP SECTION
========================= */

.player-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.player-name {
  font-size: 1.3rem;
  font-weight: 600;
}

.player-tag {
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================
   DESCRIPTION
========================= */

.player-desc {
  font-size: 0.85rem;
  color: #fff;
  line-height: 1.5;
  margin: 16px 0 18px;
}

/* =========================
   STATS LIST
========================= */

.player-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #222;
  padding-top: 16px;
}

.extra-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #fff;
  gap: 2em;
}

.extra-row span:first-child {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.extra-row span:last-child {
  text-align: right;
  max-width: 55%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .players-grid {
    gap: 16px;
  }

  .player-card {
    padding: 18px;
  }

  .player-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
  }

  .player-card:hover {
  transform: none;
}
}