﻿/*
Theme Name: NK Slaven 1936
Theme URI: https://nkslaven.ba/
Author: NK Slaven Zivinice
Description: Brutalno moderna klubovska tema za NK Slaven Zivinice.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Text Domain: nk-slaven
*/
:root {
  --bg: #05070d;
  --bg-2: #080d18;
  --bg-card: #0c1426;
  --blue: #1b5cff;
  --blue-hot: #4d86ff;
  --blue-deep: #0a246e;
  --ice: #eef3ff;
  --white: #f7f8fc;
  --muted: #8d97b0;
  --gold: #d4af4a;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 30px 80px rgba(0, 20, 80, 0.35);
  --radius: 22px;
  --font-d: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-b: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--white);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: var(--safe-b);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--blue);
  color: #fff;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--blue);
  padding: 10px 14px;
  border-radius: 10px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-hot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.display {
  font-family: var(--font-d);
  line-height: 0.86;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 52ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(27, 92, 255, 0.35);
}
.btn-primary:hover { background: #3470ff; }
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: var(--safe-t);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img, .brand svg { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.05; gap: 4px; }
.brand-text strong {
  font-family: var(--font-d);
  font-size: 26px;
  letter-spacing: 0.08em;
}
.brand-text span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desk a {
  padding: 10px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 10px;
}
.nav-desk a:hover,
.nav-desk a.is-active { opacity: 1; color: #fff; }

.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.96);
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + var(--safe-t) + 24px) 24px calc(32px + var(--safe-b));
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
}
body.nav-open .nav-mobile {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-mobile a {
  font-family: var(--font-d);
  font-size: clamp(40px, 12vw, 64px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + var(--safe-t) + 32px) 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,13,0.42) 0%, rgba(5,7,13,0.28) 38%, rgba(5,7,13,0.88) 100%),
    url("objekat.png") center 62% / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
  opacity: 0.09;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}
.hero .kicker {
  margin: 0 0 28px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(72px, 18vw, 188px);
  max-width: 10ch;
  margin-top: 0;
}
.hero .lede {
  color: #fff;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ice);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-year {
  position: absolute;
  right: max(16px, calc((100% - 1180px) / 2));
  top: calc(var(--header-h) + var(--safe-t) + 28px);
  font-family: var(--font-d);
  font-size: clamp(64px, 14vw, 140px);
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
}

.ticker {
  border-block: 1px solid var(--line);
  background: #070b14;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 36px;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-d);
  letter-spacing: 0.12em;
  font-size: 18px;
  color: var(--ice);
}
.ticker b { color: var(--gold); font-weight: 400; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 88px 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-d);
  font-size: clamp(40px, 7vw, 72px);
  margin: 8px 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  background: linear-gradient(180deg, rgba(27,92,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.stat strong {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(40px, 8vw, 64px);
  color: #fff;
}
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }

.match {
  display: grid;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(27,92,255,0.18), rgba(5,7,13,0.2) 40%, rgba(212,175,74,0.08)),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.match-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.match-teams h3 {
  font-family: var(--font-d);
  font-size: clamp(28px, 6vw, 48px);
  margin: 0;
}
.match-vs {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  font-weight: 800;
}

.news-grid {
  display: grid;
  gap: 16px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.news-grid::-webkit-scrollbar { display: none; }
.news-grid { scrollbar-width: none; }
.news-card {
  display: grid;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 134, 255, 0.45);
}
.news-card .thumb {
  aspect-ratio: 16/10;
  background:
    linear-gradient(160deg, rgba(27,92,255,0.45), rgba(5,7,13,0.2)),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1200&q=80") center/cover;
}
.news-card .thumb.t2 {
  background-image:
    linear-gradient(160deg, rgba(10,36,110,0.55), rgba(5,7,13,0.25)),
    url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}
.news-card .thumb.t3 {
  background-image:
    linear-gradient(160deg, rgba(212,175,74,0.25), rgba(5,7,13,0.35)),
    url("https://images.unsplash.com/photo-1489944440615-453fc2b6a9a9?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}
.news-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.news-body time, .pill {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.news-body h3 {
  font-family: var(--font-d);
  font-size: 32px;
  margin: 0;
  letter-spacing: 0.03em;
}
.news-body p { margin: 0; color: var(--muted); }

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
}
.feature-visual {
  min-height: 280px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5,7,13,0.1), rgba(5,7,13,0.72)),
    url("https://images.unsplash.com/photo-1517466787929-bc90951d0974?auto=format&fit=crop&w=1400&q=80") center/cover;
  position: relative;
  overflow: hidden;
}
.badge-90 {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(5,7,13,0.72);
  border: 1px solid rgba(212,175,74,0.45);
  color: var(--gold);
  padding: 10px 14px;
  border-radius: 14px;
  font-family: var(--font-d);
  letter-spacing: 0.12em;
  font-size: 22px;
}

.cards-3, .cards-4 { display: grid; gap: 14px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  display: block;
}
.card h3 {
  font-family: var(--font-d);
  font-size: 28px;
  margin: 8px 0 0;
}
.card p { color: var(--muted); margin: 0; }
.empty-box {
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 28px 22px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.people-2 { max-width: 760px; }
.person {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  min-height: 140px;
  display: grid;
  align-content: end;
  background-image: radial-gradient(120px 80px at 90% 0%, rgba(27,92,255,0.22), transparent);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.person:hover,
a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 134, 255, 0.45);
}
.person small {
  color: var(--blue-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.person strong {
  font-family: var(--font-d);
  font-size: 26px;
  display: block;
  margin-top: 6px;
}

.page-hero {
  padding: calc(var(--header-h) + var(--safe-t) + 56px) 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 240px at 80% 0%, rgba(27,92,255,0.25), transparent);
}
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(52px, 12vw, 96px);
  margin: 10px 0 0;
}
.prose {
  max-width: 72ch;
  color: #c9d2e8;
  font-size: 17px;
}
.prose h2, .prose h3 {
  font-family: var(--font-d);
  color: #fff;
  letter-spacing: 0.04em;
  font-size: 36px;
  margin: 32px 0 10px;
}
.prose p { margin: 0 0 16px; }
.prose iframe { width: 100%; min-height: 360px; border: 0; border-radius: 18px; }

.form {
  display: grid;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.form input, .form textarea {
  width: 100%;
  background: #070b16;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 13px; }
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(27,92,255,0.16);
  border: 1px solid rgba(77,134,255,0.4);
}

.map {
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 calc(28px + var(--safe-b));
  background: #060910;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.mantra {
  font-family: var(--font-d);
  font-size: clamp(36px, 8vw, 72px);
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); }
.copy { color: var(--muted); font-size: 13px; margin-top: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: up 0.7s ease forwards;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
@keyframes up {
  to { opacity: 1; transform: none; }
}

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-desk { display: flex; }
  .nav-mobile { display: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .news-grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow: visible;
    scroll-snap-type: none;
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .feature { grid-template-columns: 1.1fr 0.9fr; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .results-cats { grid-template-columns: repeat(2, 1fr); }
  .results-split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .home-results {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow: visible;
    grid-template-columns: repeat(4, 1fr);
  }
  .people { grid-template-columns: repeat(3, 1fr); }
  .people-2 { grid-template-columns: 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .hero { align-items: center; }
}

@media (min-width: 1100px) {
  .people { grid-template-columns: repeat(4, 1fr); }
  .people-2 { grid-template-columns: 1fr 1fr; }
  .results-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .reveal { animation: none; opacity: 1; transform: none; }
}

