/* ==========================================================================
   najboljakasino — stylesheet
   Table of contents:
   1. Fonts
   2. Reset
   3. Design tokens
   4. Base elements
   5. Layout helpers
   6. Header / navigation
   7. Hero
   8. Ranking / operator cards
   9. Trust bar
   10. Process / steps
   11. Manifesto / FAQ
   12. Footer
   13. Responsive
   14. Notice bar
   15. Cookie consent
   16. Legal page content
   ========================================================================== */

/* 1. Fonts
   Only latin + latin-ext subsets are shipped, which cover Croatian
   diacritics (č, ć, đ, š, ž). Both families ship as variable fonts, so a
   single file covers the whole weight range used on the page. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* 3. Design tokens
   Hex values are the default (universal) fallback; browsers that support
   OKLCH get the more accurate wide-gamut palette from the block below. */
:root {
  --color-bg: #090f0a;
  --color-text: #e3eae4;
  --color-surface: #111812;
  --color-surface-strong: #0c130e;
  --color-border: #29302a;
  --color-border-strong: #2e352f;
  --color-border-header: #222c24;

  --color-accent: #00bdbe;
  --color-accent-secondary: #00b7c1;
  --color-accent-gold: #e1a035;
  --color-accent-red: #f36069;
  --color-accent-purple: #7472f4;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --container-padding: 48px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

@supports (color: oklch(0.5 0.1 200)) {
  :root {
    --color-bg: oklch(0.16 0.014 150);
    --color-text: oklch(0.93 0.01 150);
    --color-surface: oklch(0.2 0.015 150);
    --color-surface-strong: oklch(0.15 0.01 150);
    --color-border: oklch(0.3 0.015 150);
    --color-border-strong: oklch(0.32 0.015 150);
    --color-border-header: oklch(0.28 0.02 150 / 0.6);

    --color-accent: oklch(0.72 0.13 195);
    --color-accent-secondary: oklch(0.7 0.14 200);
    --color-accent-gold: oklch(0.75 0.14 75);
    --color-accent-red: oklch(0.68 0.18 20);
    --color-accent-purple: oklch(0.62 0.19 280);
  }
}

/* 4. Base elements */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

.text-secondary {
  opacity: 0.82;
}

.text-tertiary {
  opacity: 0.68;
}

.text-quaternary {
  opacity: 0.52;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.eyebrow--muted {
  color: var(--color-text);
  opacity: 0.6;
}

/* 5. Layout helpers */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: 56px 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 28px;
  margin-top: 8px;
}

.section-title--flush {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 6. Header / navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--container-padding);
  border-bottom: 1px solid var(--color-border-header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav__link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}

.site-nav__link--active {
  opacity: 1;
}

/* 7. Hero */
.hero {
  display: flex;
  justify-content: center;
  padding: 56px 24px 40px;
}

.hero__card {
  max-width: 720px;
  width: 100%;
  text-align: center;
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}

.hero__eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin-inline: auto;
}

/* 8. Ranking / operator cards */
.ranking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
}

.operator-card {
  --accent: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.operator-card--gold {
  --accent: var(--color-accent-gold);
}

.operator-card--red {
  --accent: var(--color-accent-red);
}

.operator-card--purple {
  --accent: var(--color-accent-purple);
}

.operator-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.operator-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent);
}

.operator-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-strong);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
}

.operator-card__star {
  color: #f5c94d;
}

.operator-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--color-surface-strong);
}

.operator-card__bonus-label {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.operator-card__bonus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operator-card__bonus-amount {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 70%;
}

.operator-card__rank {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.operator-card__cta {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--color-surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s ease;
}

.operator-card__cta:hover,
.operator-card__cta:focus-visible {
  filter: brightness(1.1);
}

.operator-card__cta::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -30%;
  width: 30%;
  height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.6s ease;
}

.operator-card__cta:hover::after,
.operator-card__cta:focus-visible::after {
  transform: translateX(220%) rotate(8deg);
}

.ranking__disclosure {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 10px 0 28px;
}

.ranking__disclosure a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ranking__hint {
  text-align: center;
  font-size: 12px;
  margin: 24px 0 0;
}

/* 9. Trust bar */
.trust__panel {
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.trust__item-title {
  font-weight: 700;
  font-size: 15px;
}

.trust__item-desc {
  font-size: 13px;
  margin-top: 4px;
}

.trust__note {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 18px;
}

.trust__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-top: 14px;
}

/* 10. Process / steps */
.process__intro {
  font-size: 14px;
  max-width: 340px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.step-card {
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px;
}

.step-card__num {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.step-card__title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.step-card__desc {
  font-size: 14px;
  line-height: 1.55;
}

/* 11. Manifesto / FAQ */
.split {
  padding-block: 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.manifesto {
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.manifesto__title {
  font-size: 26px;
  margin: 12px 0 14px;
}

.manifesto__text {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.manifesto__principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.principle__num {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-accent);
}

.principle__title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.faq__title {
  font-size: 22px;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.faq-item__q {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.faq-item__a {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* 12. Footer */
.site-footer {
  border-top: 1px solid var(--color-border-header);
  padding: 40px var(--container-padding) 32px;
  text-align: center;
}

.site-footer__tagline {
  font-size: 13px;
  margin-bottom: 32px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.site-footer__brand .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.site-footer__brand .brand-name {
  font-size: 20px;
}

.site-footer__text {
  font-size: 13.5px;
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 28px;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__responsible-label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 14px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}

.site-footer__copyright {
  font-size: 12px;
}

/* 13. Responsive */
@media (max-width: 720px) {
  :root {
    --container-padding: 20px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 16px;
  }

  /* Without JS the toggle button can't work, so keep the nav fully visible
     and skip the collapsing behaviour entirely. */
  .js .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .js .site-nav.is-open {
    max-height: 320px;
    margin-top: 18px;
  }

  .hero__title {
    font-size: 30px;
  }

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

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

/* 14. Notice bar */
.notice-bar {
  background: var(--color-surface-strong);
  border-bottom: 1px solid var(--color-border-header);
  padding: 10px var(--container-padding);
  text-align: center;
}

.notice-bar__text {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.85;
}

.notice-bar__text a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 15. Cookie consent */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__text {
  flex: 1 1 260px;
  font-size: 13.5px;
  line-height: 1.6;
}

.cookie-consent__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-consent__btn {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
}

.cookie-consent__btn--accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-surface-strong);
}

/* 16. Legal page content */
.legal-intro {
  padding-bottom: 8px;
}

.legal__updated {
  margin-top: 10px;
  font-size: 13px;
}

.legal {
  padding-block: 32px 88px;
  max-width: 760px;
}

.legal__section {
  margin-top: 36px;
}

.legal__section:first-of-type {
  margin-top: 0;
}

.legal__section-title {
  font-size: 20px;
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.legal__section p {
  font-size: 14.5px;
  line-height: 1.7;
}

.legal__section p + p {
  margin-top: 12px;
}

.legal__section ul,
.legal__section ol {
  margin-top: 10px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal__section ul {
  list-style: disc;
}

.legal__section ol {
  list-style: decimal;
}

.legal__section li {
  font-size: 14.5px;
  line-height: 1.65;
}

.legal__section a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__note {
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.6;
}

.legal__contact-block {
  margin-top: 16px;
  background: color-mix(in srgb, var(--color-surface) 75%, transparent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.75;
}

.legal__contact-block strong {
  font-weight: 700;
}
