*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563eb;
  --blue-dark:  #1e3a8a;
  --blue-light: #dbeafe;
  --pink:       #d63384;
  --pink-light: #fce4ec;
  --gradient:   linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #d63384 100%);
  --bg:         #f0f4ff;
  --text:       #1e293b;
  --muted:      #64748b;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.09);
  --max-width:  980px;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }

/* ── NAVBAR ── */
nav {
  background: var(--blue-dark);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.nav-brand {
  font-family: 'Lora', serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--white); text-decoration: none;
}
.nav-brand span { color: #93c5fd; }

.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { display: flex; list-style: none; }
.nav-links li a {
  display: block; padding: .5rem .9rem;
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .87rem; font-weight: 500;
  border-radius: 6px; transition: color .2s, background .2s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--white); background: rgba(255,255,255,.15); }

.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--blue-dark); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  min-width: 185px; padding: .4rem 0; list-style: none; z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: .6rem 1.2rem; border-radius: 0; font-size: .85rem; }

/* ── HERO ── */
.hero {
  background: var(--gradient);
  color: var(--white); text-align: center;
  min-height: 300px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3.5rem 1.5rem 5.5rem;
}
.hero-icon { font-size: 2.5rem; margin-bottom: .7rem; opacity: .9; }
.hero h1 {
  font-family: 'Lora', serif; font-size: 2.4rem; font-weight: 600;
  line-height: 1.2; margin-bottom: .4rem; text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero h1 em { font-style: italic; color: #bfdbfe; }
.hero p { font-size: .95rem; opacity: .85; font-weight: 300; letter-spacing: .04em; }

/* ── CONTENT ── */
.content-wrap {
  max-width: var(--max-width);
  margin: -2rem auto 3rem;
  padding: 0 1.5rem;
}
.content-wrap-wide {
  max-width: 1200px;
  margin: -2rem auto 3rem;
  padding: 0 1.5rem;
}

.card {
  background: var(--white); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 1.5rem;
}
.card-body { padding: 2rem 2.5rem; }
.card-body p { line-height: 1.85; color: #444; font-size: .95rem; margin-bottom: .9rem; }

.section-title {
  font-family: 'Lora', serif; font-size: 1.4rem;
  color: var(--blue-dark); margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: .7rem;
}
.section-title::after {
  content: ''; flex: 1; height: 2px;
  background: var(--blue-light); border-radius: 2px;
}

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.player-card {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
  text-align: center; transition: transform .2s, box-shadow .2s;
}
.player-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.player-img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: var(--blue-light);
}
.player-img-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.6);
}
.player-info { padding: 1rem; }
.player-name { font-weight: 700; font-size: .97rem; color: var(--text); margin-bottom: .3rem; }
.player-role {
  display: inline-block; padding: .2rem .7rem;
  background: var(--blue-light); color: var(--blue-dark);
  border-radius: 20px; font-size: .75rem; font-weight: 600;
  margin-bottom: .4rem;
}
.player-style { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ── MATCH LIST ── */
.match-section { margin-bottom: 2rem; }
.match-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--blue-light);
  transition: background .15s;
}
.match-item:last-child { border-bottom: none; }
.match-item:hover { background: #f8faff; }
.match-date-box {
  flex: 0 0 60px; text-align: center;
  background: var(--gradient); color: var(--white);
  border-radius: var(--radius); padding: .5rem .3rem;
  font-size: .75rem; line-height: 1.3;
}
.match-date-box strong { display: block; font-size: 1.3rem; font-family: 'Lora', serif; }
.match-info { flex: 1; }
.match-opponent { font-weight: 700; font-size: 1rem; color: var(--text); }
.match-meta { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.match-result { text-align: right; }
.badge {
  display: inline-block; padding: .3rem .8rem;
  border-radius: 20px; font-size: .78rem; font-weight: 700;
  letter-spacing: .03em;
}
.badge-win    { background: #d1fae5; color: #065f46; }
.badge-loss   { background: #fee2e2; color: #991b1b; }
.badge-draw   { background: #e0e7ff; color: #3730a3; }
.badge-upcoming { background: var(--blue-light); color: var(--blue-dark); }
.badge-home   { background: #fce4ec; color: #9c1a5a; font-size: .7rem; }
.badge-away   { background: #e0e7ff; color: #1e3a8a; font-size: .7rem; }
.match-score  { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card {
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s; text-decoration: none; color: inherit;
  display: block;
}
.news-card:hover { transform: translateY(-4px); }
.news-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-card-placeholder { width: 100%; height: 180px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.news-card-body { padding: 1.2rem; }
.news-card-date { font-size: .78rem; color: var(--muted); margin-bottom: .4rem; }
.news-card-title { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .5rem; line-height: 1.4; }
.news-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.6; }

.news-full-img { width: 100%; max-height: 400px; object-fit: cover; display: block; border-radius: 14px 14px 0 0; }
.news-full-body { padding: 2rem 2.5rem; }
.news-full-title { font-family: 'Lora', serif; font-size: 1.8rem; color: var(--blue-dark); margin-bottom: .5rem; }
.news-full-date { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.news-full-content { line-height: 1.9; color: #444; font-size: .97rem; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── CONTACT ── */
.contact-info { text-align: center; }
.contact-info p { margin-bottom: .6rem; font-size: .97rem; color: #444; }
.contact-info a { color: var(--blue); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ── STATS BAR (Home) ── */
.stats-bar {
  max-width: var(--max-width); margin: 0 auto 3rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-box {
  background: var(--white); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center;
  box-shadow: var(--shadow); border-top: 3px solid var(--blue);
}
.stat-box.pink { border-top-color: var(--pink); }
.stat-number { font-family: 'Lora', serif; font-size: 2rem; font-weight: 600; color: var(--blue-dark); }
.stat-box.pink .stat-number { color: var(--pink); }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }

/* ── LEGAL ── */
.legal h4 { color: var(--blue-dark); margin: 1.2rem 0 .5rem; font-size: 1rem; font-weight: 600; }
.legal p { line-height: 1.85; color: #444; font-size: .93rem; margin-bottom: .8rem; }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,.65);
  text-align: center; padding: 1.8rem 1rem;
  font-size: .82rem; letter-spacing: .03em; margin-top: auto;
}
footer a { color: rgba(255,255,255,.85); text-decoration: none; margin: 0 .5rem; }
footer a:hover { color: #fff; }

/* ── LANGUAGE SWITCHER ── */
.lang-switch { display:flex; align-items:center; gap:.2rem; margin-left:.5rem; }
.lang-switch a {
  padding:.25rem .55rem; border-radius:5px; font-size:.78rem; font-weight:700;
  color:rgba(255,255,255,.6); text-decoration:none; transition:.2s;
  border:1.5px solid rgba(255,255,255,.2);
}
.lang-switch a:hover { color:#fff; border-color:rgba(255,255,255,.5); }
.lang-switch a.active { color:#fff; background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.5); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--blue-dark); flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); padding: .5rem 0 1rem; z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { border-radius: 0; padding: .8rem 1.5rem; font-size: .92rem; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(0,0,0,.2); padding-left: 1.2rem; display: none; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu { display: block; }

  .hero { padding: 2.5rem 1.2rem 4.5rem; min-height: 220px; }
  .hero h1 { font-size: 1.6rem; }

  .content-wrap, .content-wrap-wide { margin: -1.5rem auto 2rem; padding: 0 1rem; }
  .card-body { padding: 1.3rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .match-item { flex-wrap: wrap; gap: .8rem; }
  .match-result { width: 100%; text-align: left; }
  .section-title { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .nav-brand { font-size: 1rem; }
  .hero h1 { font-size: 1.35rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .card-body { padding: 1rem; }
}
