/* PPL XXVI – Key Visual: granat, złoto, stadion nocą */
:root {
  --navy: #0a1628;
  --navy-mid: #122240;
  --navy-light: #1a3358;
  --gold: #d4af37;
  --gold-bright: #f0c94a;
  --white: #ffffff;
  --muted: #8fa3bf;
  --live-red: #ff3b3b;
  --success: #2ecc71;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0; gap: 1rem;
}
.logo { display: flex; align-items: baseline; gap: .35rem; text-decoration: none; color: var(--white); }
.logo-edition { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); letter-spacing: .05em; }
.logo-text { font-weight: 800; font-size: 1rem; opacity: .8; }
.main-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.main-nav a { color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; padding: .35rem 0; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav .nav-live { color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-mid); flex-direction: column; padding: 1rem;
    border-bottom: 1px solid rgba(212,175,55,.2);
  }
  .main-nav.open { display: flex; }
}

/* Hero */
.hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212,175,55,.15), transparent),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(255,255,255,.06), transparent),
    linear-gradient(180deg, #0d1f3c 0%, var(--navy) 50%, #050d18 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/hero-pattern.svg') center/cover no-repeat;
  opacity: .4;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,40,.9) 0%, transparent 60%); }
.hero-content { position: relative; z-index: 1; padding: 4rem 0 3rem; }
.hero-edition {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: .9; color: var(--gold);
  margin: 0 0 -.25rem; letter-spacing: .02em;
  text-shadow: 0 0 60px rgba(212,175,55,.4);
}
.hero-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; margin: 0 0 .5rem; max-width: 18ch; }
.hero-meta { font-size: 1.125rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.hero-tagline { max-width: 42ch; color: var(--muted); margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; border-radius: var(--radius);
  font-weight: 700; font-size: .9375rem; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--navy); border-color: var(--gold); }
.btn-primary { background: var(--navy-light); color: var(--white); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); }
.btn-sm { padding: .5rem .85rem; font-size: .8125rem; }
.btn-block { display: flex; width: 100%; }

/* Sections */
.section { padding: 3rem 0; }
.section-dark { background: var(--navy-mid); }
.section h2 { font-size: 1.5rem; margin: 0 0 1.25rem; }
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }

.live-pulse-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--live-red); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .25rem .6rem; border-radius: 999px; animation: pulse 1.5s infinite;
}
.live-pulse-badge::before { content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
@keyframes pulse { 50% { opacity: .7; } }

/* Live pitches */
.live-pitches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .live-pitches-grid { grid-template-columns: 1fr; } }
.pitch-card {
  background: var(--navy-light); border-radius: var(--radius);
  padding: 1.25rem; border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.pitch-card.is-live { border-color: rgba(255,59,59,.5); box-shadow: 0 0 0 1px rgba(255,59,59,.3), var(--shadow); }
.pitch-card-head { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.pitch-label { font-weight: 700; }
.pitch-score { font-family: var(--font-display); font-size: 2.5rem; color: var(--gold); text-align: center; }
.pitch-timer { text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--muted); margin: .5rem 0 1rem; }
.team-line { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.team-line.away { justify-content: flex-end; }
.crest-sm { width: 28px; height: 28px; object-fit: contain; }
.status-badge { font-size: .7rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px; background: rgba(255,255,255,.1); }
.status-badge.live { background: var(--live-red); color: #fff; }
.status-badge.sm { font-size: .65rem; }

/* Match list */
.match-list { display: flex; flex-direction: column; gap: .5rem; }
.match-row {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: .75rem; align-items: center;
  padding: .85rem 1rem; background: var(--navy-light); border-radius: 8px;
  color: inherit; text-decoration: none; border: 1px solid transparent;
}
.match-row:hover { border-color: rgba(212,175,55,.3); text-decoration: none; }
.match-row.is-live { border-color: rgba(255,59,59,.4); }
.match-time { font-weight: 700; color: var(--gold); }
.match-score-inline { margin: 0 .35rem; color: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; }
.standings-table, .data-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
}
.standings-table th, .data-table th {
  text-align: left; padding: .5rem; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.standings-table td, .data-table td { padding: .5rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.standings-table .pts { font-weight: 800; color: var(--gold); }
.standings-tabs { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .standings-tabs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* Leaders */
.stats-leaders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.leader-card { background: var(--navy-light); padding: 1rem; border-radius: var(--radius); }
.leader-list { list-style: none; margin: 0; padding: 0; }
.leader-list li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.leader-list .pos { color: var(--gold); font-weight: 700; margin-right: .5rem; }

.columns-2 { display: grid; gap: 2rem; }
@media (min-width: 768px) { .columns-2 { grid-template-columns: 1fr 1fr; } }
.feed-item { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.feed-item time { color: var(--gold); font-weight: 600; margin-right: .5rem; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.info-card {
  padding: 1rem; background: var(--navy-light); border-radius: 8px;
  text-align: center; color: var(--white); font-weight: 600; text-decoration: none;
}
.info-card.gold { border: 1px solid var(--gold); }

/* Match detail */
.match-detail-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  padding: 2rem 0; text-align: center;
}
.score-big { font-family: var(--font-display); font-size: 4rem; color: var(--gold); line-height: 1; }
.crest-lg { width: 72px; height: 72px; object-fit: contain; }
.events-timeline { list-style: none; padding: 0; }
.event-item { display: flex; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.confirmed-badge { color: var(--success); font-weight: 600; }

/* Teams */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.team-card {
  background: var(--navy-light); padding: 1.25rem; border-radius: var(--radius);
  text-align: center; color: inherit; text-decoration: none;
}
.crest-md { width: 56px; height: 56px; object-fit: contain; }
.badge { display: inline-block; font-size: .7rem; background: rgba(212,175,55,.2); color: var(--gold); padding: .15rem .4rem; border-radius: 4px; }

/* Streams */
.stream-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.stream-player-wrap {
  position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden;
}
.stream-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream-overlay-bar {
  display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem;
  background: var(--navy-light); border-radius: 8px; margin-bottom: .75rem;
}
.stream-score { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }
.stream-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); }

/* Footer */
.site-footer { background: #050d18; padding: 2rem 0 1rem; margin-top: 3rem; border-top: 1px solid rgba(212,175,55,.15); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer-links { display: flex; gap: 1rem; }
.footer-copy { margin-top: 1.5rem; color: var(--muted); font-size: .8rem; }

.muted { color: var(--muted); }
.link-more { display: inline-block; margin-top: 1rem; font-weight: 600; }
.link-more.light { color: var(--gold); }
.filters-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters-bar select, .filters-bar button { padding: .5rem .75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: var(--navy-light); color: var(--white); }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .5rem 1rem; border-radius: 8px; background: var(--navy-light); color: var(--muted); text-decoration: none; }
.tabs a.active { background: var(--gold); color: var(--navy); }

.sponsors-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; opacity: .85; }
