/* ============================================================
   KasinoVodič — stilovi
   Tamna tema · zlatni akcent · mobile-first
   ============================================================ */

:root {
  --bg:        #0A0C12;
  --bg-2:      #0E1119;
  --surface:   #141926;
  --surface-2: #1A2130;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #EAECF3;
  --muted:     #97A0B4;
  --muted-2:   #6E7788;

  --gold:      #52fa73;
  --gold-soft: #0ff23b;
  --gold-dim:  rgba(245, 197, 66, 0.14);

  --radius:    16px;
  --radius-sm: 11px;
  --wrap:      1080px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* suptilni zlatni sjaj u vrhu stranice */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(245, 197, 66, 0.10), transparent 60%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(10, 12, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-name strong { color: var(--gold); font-weight: 700; }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 44px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 16ch;
  margin: 0 auto 20px;
}
.lead {
  max-width: 60ch;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 14.5px;
}
.trust-row b { color: var(--text); font-weight: 700; }
.trust-row .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted-2);
}

/* ---------- Sekcije ---------- */
.section { padding: 46px 0; }
.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin-bottom: 10px;
}
.section h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}
.section-intro {
  color: var(--muted);
  max-width: none;
  margin: 0 0 28px;
}

/* Slika u sekciji (odmah ispod H2) */
.section-image {
  margin: 0 0 24px;
}
.section-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* reveal animacija */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Prose (dugački SEO tekst) ---------- */
.prose { max-width: none; }
.prose h2 { margin-bottom: 18px; }
.prose p {
  color: #C4CAD8;
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--text); font-weight: 700; }
.prose > p + ul.criteria { margin-top: 6px; }

.prose-note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  max-width: none;
}

.criteria-narrow {
  grid-template-columns: 1fr !important;
  margin: 4px 0 22px;
}
.criteria-narrow li { color: #C4CAD8; }

/* ---------- Rank lista ---------- */
.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rank-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rank-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.rank-card.is-top {
  border-color: rgba(245, 197, 66, 0.5);
  background: linear-gradient(180deg, rgba(245, 197, 66, 0.08), rgba(245, 197, 66, 0.02));
  box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.12), 0 18px 40px -22px rgba(245, 197, 66, 0.4);
}

.rank-badge {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
}
.is-top .rank-badge {
  color: #10131b;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(245, 197, 66, 0.7);
}

.rank-body { min-width: 0; }
.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rank-name { font-size: 1.28rem; }
.editor-pick {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--gold-dim);
  border: 1px solid rgba(245, 197, 66, 0.35);
  padding: 3px 9px;
  border-radius: 999px;
}
.rank-bonus {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 500;
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.chips li {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 8px;
}

.rank-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: none;
}
.score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 20px;
  border-radius: 10px;
  color: #10131b;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Tablica ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare thead th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
  padding: 14px 18px;
  white-space: nowrap;
}
.compare tbody th,
.compare tbody td {
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.compare tbody th {
  font-weight: 700;
  color: var(--text);
}
.compare tbody tr { transition: background 0.15s ease; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.compare tbody tr:first-child th { color: var(--gold-soft); }
.cell-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Kriteriji (nenumerirana lista) ---------- */
.criteria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.criteria li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
}
.criteria li b { color: var(--text); display: block; margin-bottom: 2px; }
.criteria li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gold-dim);
}

/* ---------- Koraci (numerirana lista) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(245, 197, 66, 0.3);
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

/* ---------- Odgovorna igra note ---------- */
.responsible-note {
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 15px;
}
.responsible-note strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #06070B;
  padding: 40px 0 34px;
  margin-top: 20px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark { color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.footer-nav a:hover { color: var(--gold-soft); }

/* Odgovorno kockanje — logotipi */
.responsible {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px 0 24px;
}
.rg-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.18s ease;
}
.rg-item:hover { opacity: 1; }
.gamcare-icon { display: inline-flex; }
.gamcare-text { display: flex; flex-direction: column; line-height: 1.05; }
.gamcare-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
}
.gamcare-tag {
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfd3da;
  margin-top: 2px;
}
.rg-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: #fff;
}
.rg-age { color: #fff; }

.footer-legal {
  color: var(--muted-2);
  font-size: 13px;
  max-width: 70ch;
  margin: 0 0 8px;
}
.footer-copy {
  color: var(--muted-2);
  font-size: 13px;
  margin: 0;
}

/* ---------- Fokus / pristupačnost ---------- */
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-nav { display: none; }

  .hero { padding: 54px 0 32px; }

  .section { padding: 36px 0; }

  .criteria { grid-template-columns: 1fr; }

  /* Rank kartice: badge + ime u redu, CTA ispod */
  .rank-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "badge body"
      "cta   cta";
    gap: 14px;
  }
  .rank-badge { grid-area: badge; }
  .rank-body  { grid-area: body; }
  .rank-cta {
    grid-area: cta;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }
  .rank-cta .btn { padding: 11px 26px; }
}

@media (max-width: 420px) {
  .rank-head { gap: 8px; }
  .rank-name { font-size: 1.15rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .responsible { gap: 22px; }
  .rg-wordmark { font-size: 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
