/* =========================================================
   KockaCraft – skupni slog za vse strani
   (Ime strežnika NI v tej datoteki – glej komentar v index.html)
   ========================================================= */

:root {
  --bg: #0e1214;
  --bg-2: #151b1e;
  --panel: #1b2327;
  --panel-2: #222c31;
  --line: #2e3a40;
  --text: #e9efe6;
  --muted: #9fb0a6;
  --grass: #6cc644;
  --grass-dark: #3d7a24;
  --dirt: #8a5a33;
  --dirt-dark: #5e3c22;
  --gold: #f2c14e;
  --diamond: #5ee0d6;
  --redstone: #e5484d;
  --radius: 4px;
  --px: 4px; /* "pixel" step used for blocky shadows */
  --font-head: "Pixelify Sans", ui-monospace, "Cascadia Mono", monospace;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-x: hidden;
}

/* ---------- Jezik: prikaži samo izbrani jezik ----------
   Brez JS se prikaže slovenščina (html data-ui="sl"). */
html[data-ui="sl"] body [lang="hr"],
html[data-ui="hr"] body [lang="sl"] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: var(--diamond); text-underline-offset: 3px; }
a:hover { color: #9ff3ec; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 18, 20, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.nav { display: none; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (min-width: 820px) { .nav { display: flex; } }

.lang-switch { margin-left: auto; display: flex; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
@media (min-width: 820px) { .lang-switch { margin-left: 18px; } }
.lang-switch button {
  font: 600 .8rem/1 var(--font-body); color: var(--muted); background: transparent;
  border: 0; padding: 9px 10px; cursor: pointer; min-height: 38px;
}
.lang-switch button[aria-pressed="true"] { background: var(--grass-dark); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--grass); --c-dark: var(--grass-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  color: #0b1a05; background: var(--c);
  border: 0; border-radius: var(--radius);
  padding: 14px 20px; min-height: 50px;
  box-shadow: inset 0 calc(var(--px) * -1) 0 var(--c-dark), 0 var(--px) 0 #000;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #0b1a05; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 calc(var(--px) * -1) 0 var(--c-dark), 0 2px 0 #000; }
.btn-discord { --c: #7b86f0; --c-dark: #4f5ac4; color: #fff; }
.btn-discord:hover { color: #fff; }
.btn-ghost { --c: var(--panel-2); --c-dark: #11171a; color: var(--text); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 72px;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(94, 224, 214, .12), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(108, 198, 68, .14), transparent 60%),
    var(--bg);
  overflow: hidden;
}
/* pixel "stars" */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(var(--gold), var(--gold));
  background-size: 3px 3px;
  background-repeat: no-repeat;
  background-position: 8% 18%, 22% 6%, 47% 14%, 63% 30%, 88% 10%, 78% 40%;
}
.hero .wrap { position: relative; display: grid; gap: 32px; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); background: rgba(242, 193, 78, .1); border: 1px solid rgba(242, 193, 78, .35);
  padding: 7px 10px; border-radius: var(--radius); margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--gold); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 .accent { color: var(--grass); text-shadow: var(--px) var(--px) 0 var(--grass-dark), calc(var(--px) * 2) calc(var(--px) * 2) 0 #000; }
.lead { font-size: 1.12rem; color: #cbd8cf; max-width: 36em; }

/* IP card */
.ip-card {
  margin: 22px 0 14px;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 var(--px) 0 #000;
  padding: 12px;
}
.ip-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-input {
  flex: 1 1 200px; min-width: 0;
  font: 600 1.1rem/1 var(--font-head); color: var(--text);
  background: #0b0f11; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px; min-height: 50px;
}
.ip-row .btn { flex: 1 0 auto; }
.ip-sub { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.ip-sub code { color: var(--text); }
.copy-status { min-height: 1.4em; font-size: .9rem; color: var(--grass); margin: 6px 0 0; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { flex: 1 1 200px; }

/* Hero art: CSS block stack */
.hero-art { display: none; justify-self: center; }
@media (min-width: 880px) { .hero-art { display: block; } }
.hero-art svg { width: 340px; height: auto; filter: drop-shadow(0 18px 0 rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Grass edge divider */
.grass-edge {
  height: 24px;
  background:
    linear-gradient(to bottom, transparent 0 8px, var(--dirt) 8px),
    var(--bg);
  position: relative;
}
.grass-edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background:
    linear-gradient(90deg, var(--grass) 0 16px, var(--grass-dark) 16px 24px, var(--grass) 24px 40px, transparent 40px 48px) 0 0 / 48px 8px repeat-x,
    linear-gradient(var(--grass), var(--grass)) 0 8px / 100% 8px no-repeat;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 28px; max-width: 40em; }
.section-head p { color: var(--muted); }
.kicker { font: 600 .8rem/1 var(--font-body); color: var(--grass); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: block; }

/* Countdown */
.countdown-box {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  box-shadow: 0 var(--px) 0 #000;
}
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 560px; margin: 18px auto; }
.cd-cell { background: #0b0f11; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 4px 10px; box-shadow: inset 0 calc(var(--px) * -1) 0 #000; }
.cd-num { display: block; font: 700 clamp(1.8rem, 9vw, 3rem)/1 var(--font-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-lbl { display: block; margin-top: 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cd-date { color: var(--muted); margin: 0 0 18px; }
.cd-live { display: none; font: 700 1.6rem/1.2 var(--font-head); color: var(--grass); margin: 18px 0; }
.is-live .countdown { display: none; }
.is-live .cd-live { display: block; }

/* Join steps */
.join-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .join-grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 var(--px) 0 #000;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.tag { font: 600 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-radius: var(--radius); background: var(--grass-dark); color: #fff; }
.tag-bedrock { background: #2b6c8f; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-head); color: #0b1a05; background: var(--grass);
  box-shadow: inset 0 -3px 0 var(--grass-dark);
}
.tag-bedrock ~ * .steps li::before, .card-bedrock .steps li::before { background: var(--diamond); box-shadow: inset 0 -3px 0 #2b8f88; }
.steps code, .card code { background: #0b0f11; border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; font-size: .95em; word-break: break-all; }
.note { font-size: .92rem; color: var(--muted); border-left: 4px solid var(--gold); padding: 8px 12px; background: rgba(242,193,78,.06); margin: 6px 0 0; }

/* Features */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 var(--px) 0 #000; }
.feature-wide { grid-column: 1 / -1; }
.feature .ico {
  width: 44px; height: 44px; margin-bottom: 12px; display: grid; place-items: center;
  background: var(--panel-2); border: 2px solid var(--line);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Beta CTA band */
.beta-band {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.12) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #2c3a8f, #4f5ac4);
  border-radius: var(--radius); padding: 28px 20px; box-shadow: 0 var(--px) 0 #000;
  display: grid; gap: 16px; align-items: center;
}
.beta-band h2 { margin: 0; }
.beta-band p { margin: 0; color: #dfe3ff; }
@media (min-width: 780px) { .beta-band { grid-template-columns: 1fr auto; padding: 32px; } }
.beta-band .btn { --c: #fff; --c-dark: #c9cdf5; color: #2c3a8f; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 16px; font-weight: 600; position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 700 1.4rem/1 var(--font-head); color: var(--grass);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 16px 14px; color: #cbd8cf; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Document pages (pravila, zasebnost) ---------- */
.doc-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.doc-hero p { color: var(--muted); max-width: 40em; margin: 0; }
.doc { padding: 36px 0 64px; }
.doc .wrap { max-width: 800px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc h2:first-child { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.rule-list { list-style: none; padding: 0 !important; counter-reset: r; display: grid; gap: 10px; }
.rule-list li {
  counter-increment: r; margin: 0; position: relative;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 14px 58px;
}
.rule-list li::before {
  content: counter(r); position: absolute; left: 12px; top: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  font: 700 1rem/1 var(--font-head); background: var(--dirt); color: #fff; box-shadow: inset 0 -4px 0 var(--dirt-dark);
}
.rule-list strong { display: block; }
.ladder { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.ladder li { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0; }
.ladder .lvl { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; font: 700 .95rem/1 var(--font-head); color: #000; }
.ladder li:nth-child(1) .lvl { background: #9fd36b; }
.ladder li:nth-child(2) .lvl { background: var(--gold); }
.ladder li:nth-child(3) .lvl { background: #f0913a; }
.ladder li:nth-child(4) .lvl { background: var(--redstone); color: #fff; }
.ladder li:nth-child(5) .lvl { background: #7a1f22; color: #fff; }
.draft-banner {
  background: repeating-linear-gradient(45deg, #3b2a06 0 12px, #2c2005 12px 24px);
  border: 2px solid var(--gold); color: var(--gold); border-radius: var(--radius);
  padding: 14px 16px; font-weight: 700; margin-bottom: 24px;
}
.ph { background: rgba(229, 72, 77, .18); color: #ffb3b5; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 2px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #090c0d; border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.disclaimer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .82rem; }

/* Logo slike (KockaCraft branding) */
.brand img { width: 36px; height: 36px; image-rendering: auto; }
.hero-art img { width: 380px; max-width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("img/kockacraft-banner-1600.jpg") center/cover no-repeat; opacity: .25; filter: blur(10px) saturate(1.2); transform: scale(1.06); pointer-events: none; z-index: 0; }
.hero .wrap { z-index: 1; }
