/* FK Kupusina Partizan — sötét, sportos stílus */

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #1c1c1c;
  --line: #262626;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --white: #ffffff;
  --gold: #d4a63c;

  --display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --w: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.wrap--wide { width: min(1100px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.005em;
}

h2 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 1.6rem; }

.btn {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--white);
  background: var(--white);
  color: #000;
}
.btn:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover { background: var(--white); color: #000; }

/* ---------- Eredmény-szalag ---------- */

.ticker {
  background: var(--white);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding: 0.4rem 0;
  animation: ticker 45s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Fejléc ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  line-height: 1;
}
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 600; }
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); font-weight: 700; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(78vh, 560px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255,255,255,0.07), transparent 60%),
    var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.45);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.35) 70%);
}
.hero-pitch {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1050 680' fill='none' stroke='white' stroke-width='3'%3E%3Crect x='20' y='20' width='1010' height='640'/%3E%3Cline x1='525' y1='20' x2='525' y2='660'/%3E%3Ccircle cx='525' cy='340' r='92'/%3E%3Crect x='20' y='178' width='165' height='324'/%3E%3Crect x='865' y='178' width='165' height='324'/%3E%3Crect x='20' y='253' width='55' height='174'/%3E%3Crect x='975' y='253' width='55' height='174'/%3E%3C/svg%3E")
    center / cover no-repeat;
}
.hero .wrap { position: relative; padding: 4rem 0; width: min(1000px, 100% - 32px); }
.hero h1 { font-size: clamp(4rem, 13vw, 6.4rem); font-weight: 500; }
.hero h1 span { display: block; color: #9a9a9a; }
.hero h1 span.accent { color: var(--white); }
.hero p { max-width: 46ch; color: #c9c9c9; margin: 1.5rem 0 1.75rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Szakaszok ---------- */

.section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.page-head { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(3.2rem, 10vw, 4.6rem); margin-bottom: 1.25rem; }
.page-head p { color: #bdbdbd; margin: 0; max-width: 60ch; }

.empty {
  border: 1px dashed var(--line);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.empty p { margin: 0; }

/* ---------- Következő mérkőzés ---------- */

.match { border: 1px solid var(--line); background: var(--panel); }
.match-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.match-top .eyebrow { margin: 0; }
.match-top .eyebrow:last-child { color: var(--white); font-weight: 700; }
.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}
.team { display: grid; justify-items: center; gap: 0.75rem; }
.team img, .team .badge { width: 50px; height: 50px; }
.badge {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.1rem;
}
.team strong { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: 1.05rem; line-height: 1.1; }
.vs { font-family: var(--display); font-size: 2.6rem; }
.match-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.countdown { display: flex; gap: 0.5rem; }
.countdown div {
  border: 1px solid var(--line);
  min-width: 3.4rem;
  text-align: center;
  padding: 0.35rem 0.4rem 0.3rem;
}
.countdown strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.countdown span { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.match-meta { color: var(--muted); font-size: 0.82rem; text-align: right; }

/* ---------- Eredmények, fordulók, tabella ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.rows { border: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 4.2rem 1.6rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.row:last-child { border-bottom: 0; }
.row .date { color: var(--muted); letter-spacing: 0.14em; }
.row .opp { font-weight: 600; }
.row .score { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0; }
.row--fixture { grid-template-columns: 4.2rem 1fr auto; }
.row--fixture .where { color: var(--muted); font-size: 0.62rem; letter-spacing: 0.2em; }
.res {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0;
}
.res--gy { background: var(--white); color: #000; }
.res--d { border: 1px solid var(--white); }
.res--v { background: var(--panel-2); color: var(--muted); }

.sub-title { margin-top: 2.5rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.72rem; min-width: 320px; }
th, td { padding: 0.65rem 0.45rem; text-align: center; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; background: var(--panel); }
td:nth-child(2), th:nth-child(2) { text-align: left; }
td:nth-child(2) { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
tr.us td { background: var(--white); color: #000; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Hírek ---------- */

.news-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.news-head h2 { margin: 0; }
.more { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.more:hover { color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.news-grid--feature { grid-template-columns: repeat(3, 1fr); }
.news-grid--feature .news-card:first-child { grid-column: span 2; grid-row: span 2; }
.news-grid--feature .news-card:first-child h3 { font-size: 2.1rem; }
@media (max-width: 720px) {
  .news-grid--feature { grid-template-columns: 1fr; }
  .news-grid--feature .news-card:first-child { grid-column: auto; grid-row: auto; }
}

.news-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.news-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.5);
}
.news-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 10%, rgba(10,10,10,0.95) 85%); }
.news-card .body { position: relative; padding: 1rem; }
.news-card h3 { font-size: 1.3rem; margin: 0.25rem 0 0.5rem; }
.news-card p { margin: 0; font-size: 0.78rem; color: #bdbdbd; line-height: 1.5; }

/* ---------- Felhívás ---------- */

.cta { position: relative; padding: 5rem 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.cta .hero-pitch { opacity: 0.12; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 3.4rem); margin-bottom: 1rem; }
.cta p { color: #bdbdbd; max-width: 46ch; margin: 0 0 1.5rem; }

/* ---------- Játékosok ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.6rem; }
.stat { border: 1px solid var(--line); padding: 0.75rem 0.8rem; }
.stat strong { display: block; font-family: var(--display); font-size: 2rem; font-weight: 500; line-height: 1.1; }

.group { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.card { border: 1px solid var(--line); background: var(--panel); }
.card .photo {
  aspect-ratio: 4 / 5;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: #5a5a5a;
}
.card .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.card .info { padding: 0.75rem 0.8rem 0.9rem; }
.card .name { font-family: var(--display); font-size: 1.2rem; font-weight: 500; text-transform: uppercase; line-height: 1.05; margin: 0 0 0.25rem; }
.card .pos { margin: 0; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Kapcsolat ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list a { text-decoration: none; font-weight: 600; }

/* ---------- Lábléc ---------- */

.site-footer { padding: 3rem 0 0; color: var(--muted); font-size: 0.82rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { width: 42px; height: 42px; margin-bottom: 1rem; }
.footer-grid h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid ul a { text-decoration: none; color: var(--white); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.footer-grid li { color: #bdbdbd; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; }

@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .site-header .wrap { padding: 0.5rem 0; }
  .teams { gap: 0.5rem; }
  .vs { font-size: 1.8rem; }
  .match-meta { text-align: left; }
  .row { grid-template-columns: 3.4rem 1.6rem 1fr auto; gap: 0.6rem; }
  .row.row--fixture { grid-template-columns: 3.4rem 1fr auto; }
}

/* ---------- Arany kiemelések a címerből ---------- */
.hero .eyebrow, .page-head .eyebrow { color: var(--gold); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.match-top .eyebrow:last-child { color: var(--gold); }
.brand img { width: 34px; height: 34px; }
.team img { width: 64px; height: 64px; }
.footer-grid img { width: 72px; height: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hero-crest { width: clamp(140px, 22vw, 230px); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6)); }
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-crest { width: 130px; }
}
