:root {
  --sl-blue: #0072bc;
  --sl-blue-deep: #003b6f;
  --sl-gold: #ffc72c;
  --sl-black: #101114;
  --bg: #0a1420;
  --bg-elevated: #101d2d;
  --bg-elevated-2: #14263a;
  --border: #1f3348;
  --text: #f2f5f8;
  --text-muted: #93a7bd;
  --accent: #ffc72c;
  --accent-ink: #241a00;
  --radius: 10px;

  --cat-national: #ffc72c;
  --cat-league: #35c7c1;
  --cat-transfers: #4f9dff;
  --cat-youth: #6bd47a;
  --cat-admin: #b9a6ff;
  --cat-shop: #ff8f6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 20, 32, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.brand { display: flex; flex-direction: column; gap: 2px; }

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--sl-gold); }
.logo .flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sl-blue), var(--sl-gold));
  display: inline-block;
}

.tagline {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 320px;
  font-style: italic;
}
@media (max-width: 640px) {
  .tagline { display: none; }
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  border-color: var(--sl-gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #06263f 0%, #04486f 55%, var(--sl-blue) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .pitons {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
}
.hero .pitons::before,
.hero .pitons::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 150px solid rgba(6, 14, 22, 0.55);
}
.hero .pitons::before { left: 8%; border-bottom-width: 120px; border-left-width: 55px; border-right-width: 55px; }
.hero .pitons::after { left: 16%; border-bottom-width: 160px; border-left-width: 78px; border-right-width: 78px; }

.hero .content { position: relative; z-index: 1; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}
.tag-hot { color: var(--sl-gold); border-color: rgba(255, 199, 44, 0.4); }

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  max-width: 20ch;
  margin: 0 0 16px;
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  background: var(--sl-gold);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; margin-top: 10px; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 20px 80px;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.feed-header h2 { margin: 0; font-size: 1.4rem; }

#search {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  min-width: 220px;
  font-size: 0.9rem;
}
#search:focus { outline: 2px solid var(--sl-gold); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--sl-gold);
  transform: translateY(-2px);
}

.card-media {
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated-2), var(--bg-elevated));
}
.card-media svg { width: 72%; max-width: 190px; height: auto; opacity: 0.92; }
.card-media.has-image { overflow: hidden; }
.card-media.has-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.card-media.has-image::after { display: none; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.card .badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.card .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.card.hidden { display: none; }

/* Category badge colors */
.badge[data-cat="national-team"] { color: var(--cat-national); }
.badge[data-cat="local-league"] { color: var(--cat-league); }
.badge[data-cat="transfers-abroad"] { color: var(--cat-transfers); }
.badge[data-cat="youth-academy"] { color: var(--cat-youth); }
.badge[data-cat="administration"] { color: var(--cat-admin); }
.badge[data-cat="shop"] { color: var(--cat-shop); }

/* Sidebar */
.widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.widget h3 { margin-top: 0; font-size: 1rem; }

.trending-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}
.trending-list li::marker { color: var(--sl-gold); font-weight: 700; }
.trending-list a:hover { color: var(--sl-gold); }

.newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.gossip-tip form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.gossip-tip input,
.gossip-tip textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.gossip-tip input:focus,
.gossip-tip textarea:focus {
  outline: 2px solid var(--sl-gold);
}

.form-note { font-size: 0.8rem; color: var(--sl-gold); min-height: 1em; }

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.category-list a:hover { color: var(--sl-gold); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a:hover { color: var(--sl-gold); }

/* ===== Article page ===== */
.article-hero {
  position: relative;
  padding: 40px 0 56px;
  background: linear-gradient(135deg, var(--sl-blue-deep), var(--bg));
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--sl-gold); }

.article-hero h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  max-width: 34ch;
  margin: 0 0 16px;
  color: #fff;
}

.article-dek {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 20px;
}

.article-byline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-media {
  margin: 32px auto 0;
  max-width: 900px;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-elevated-2), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.article-media svg { width: 58%; max-width: 340px; height: auto; opacity: 0.92; }
.article-media.has-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.article-media.has-image::after { display: none; }
.article-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
}
.article-media .caption {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 30px;
  font-size: 1.05rem;
}
.article-body p { margin: 0 0 20px; }
.article-body h2 { font-size: 1.3rem; margin: 32px 0 14px; }
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--sl-gold);
  color: var(--text-muted);
  font-style: italic;
}

.article-body ol,
.article-body ul {
  margin: 0 0 22px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-body li { padding-left: 4px; }

.comparison-wrap {
  margin: 8px 0 32px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparison-table th {
  text-align: left;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-elevated-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
  line-height: 1.5;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .td-country { white-space: nowrap; font-weight: 600; color: var(--text); }
.comparison-table .td-name { font-weight: 600; color: #fff; white-space: nowrap; }
.comparison-table tr.highlight td {
  background: rgba(255, 199, 44, 0.08);
  color: var(--text);
}
.comparison-table tr.highlight .td-country { border-left: 3px solid var(--sl-gold); padding-left: 13px; }
.comparison-table tr.highlight .td-name { color: var(--sl-gold); }

.article-tags {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article-tags span {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.related {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}
.related h3 { margin-bottom: 18px; }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
