/* Najboljsa-slovenska-spletna-igralnica.si — editorial dark theme */
:root {
  --bg: #0c1117;
  --bg-elevated: #151c26;
  --bg-card: #1a2332;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --accent: #c9a227;
  --accent-light: #f0d78c;
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);
  --gold-dim: rgba(201, 162, 39, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font-body: "Outfit", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --max: 1180px;
  --header-h: 72px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

.container {
  width: min(100% - 3.2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--text); }

.brand__flag {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__tag {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--gold-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 2rem;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201, 162, 39, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45, 212, 191, 0.08), transparent);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--gold-dim);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.6rem;
  max-width: 20ch;
}

.hero__lead {
  font-size: 1.9rem;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0;
}

/* Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 2rem 0 6rem;
}

@media (min-width: 1024px) {
  .page-layout--article {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.toc {
  display: none;
}

@media (min-width: 1024px) {
  .toc {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    padding: 1.6rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .toc__title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0 0 1.2rem;
  }

  .toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .toc li { margin-bottom: 0.4rem; }

  .toc a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    padding-left: 1rem;
    margin-left: -1rem;
  }

  .toc a:hover {
    color: var(--teal);
    border-left-color: var(--teal);
  }
}

/* Article */
.article section { margin-bottom: 4.8rem; }

.article h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article h3 {
  font-size: 2rem;
  font-weight: 600;
  margin: 2.4rem 0 1rem;
  color: var(--accent-light);
}

.article h4 {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 1.6rem 0 0.8rem;
}

.article p { margin: 0 0 1.4rem; color: var(--text-muted); }
.article p strong { color: var(--text); }

/* Widget */
.widget-wrap {
  margin: 2.4rem 0;
  padding: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.widget-wrap iframe {
  width: 100%;
  border: none;
  display: block;
  min-height: 400px;
}

/* Author byline */
.byline {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 2.4rem 0;
  padding: 1.4rem 1.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.byline__avatar {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.byline__name {
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--text);
}

.byline__role {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 500;
}

.byline__meta {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0;
}

/* Criteria grid */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.criteria-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.criteria-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.criteria-card__icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: var(--teal-dim);
  border-radius: var(--radius-sm);
}

.criteria-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  color: var(--text);
}

.criteria-card p {
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.6;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 0 0 2.4rem 5.6rem;
  border-left: 2px solid var(--border);
  margin-left: 2rem;
}

.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -2.1rem;
  top: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 50%;
}

.steps h3 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  color: var(--text);
}

.steps p { margin: 0; font-size: 1.5rem; }

/* Game categories */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-card__img {
  height: 140px;
  object-fit: cover;
  width: 100%;
  opacity: 0.85;
}

.game-card__body { padding: 1.6rem; }

.game-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  color: var(--text);
}

.game-card p {
  margin: 0;
  font-size: 1.4rem;
}

/* Payments row */
.payments-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 2rem 0;
}

.payment-chip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1 1 200px;
}

.payment-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0.6rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.payment-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-chip strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.payment-chip span {
  font-size: 1.3rem;
  color: var(--text-muted);
}

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.tip-card {
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tip-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tip-card__head img { width: 2.8rem; height: 2.8rem; }

.tip-card h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--text);
}

.tip-card p {
  margin: 0;
  font-size: 1.4rem;
}

/* FAQ */
.faq-list { margin: 2rem 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq-item summary {
  padding: 1.6rem 2rem;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 2rem;
  color: var(--accent);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 2rem 1.6rem;
  margin: 0;
  font-size: 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.page-hero p {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 60ch;
}

/* About / Author profile */
.profile-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .profile-card { grid-template-columns: 200px 1fr; }
}

.profile-card__photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--accent);
}

.profile-card__badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--gold-dim);
  border-radius: 100px;
}

.profile-card h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin: 0 0 0.4rem;
  border: none;
  padding: 0;
}

.profile-card__role {
  color: var(--teal);
  font-weight: 500;
  margin: 0 0 1.6rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.profile-stat {
  padding: 1.2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
}

.profile-stat span {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.tags li {
  padding: 0.5rem 1.2rem;
  font-size: 1.3rem;
  background: var(--teal-dim);
  color: var(--teal);
  border-radius: var(--radius-sm);
}

/* Legal content */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 3rem 0 1rem;
  color: var(--accent-light);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.4rem;
  padding-left: 2rem;
}

.legal-content li { margin-bottom: 0.6rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.responsible-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 2rem;
  margin-bottom: 2.4rem;
  background: var(--gold-dim);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
}

.responsible-banner img {
  height: 4rem;
  width: auto;
  border-radius: 4px;
}

.responsible-banner p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-light);
  flex: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.footer-desc {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 0.6rem; }

.footer-nav a {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 1.3rem;
  color: var(--text-muted);
  text-align: center;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1.6rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul { flex-direction: column; }

  .site-nav a { padding: 1.2rem 1.6rem; }

  .byline { flex-direction: column; text-align: center; }

  .hero { padding: 3rem 0 2rem; }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.highlight-box {
  padding: 2rem;
  margin: 2rem 0;
  background: var(--teal-dim);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.highlight-box p { margin: 0; color: var(--text); }

/* Contact */
.contact-card {
  max-width: 520px;
  margin: 2.4rem 0 3rem;
  padding: 2.4rem 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.contact-card__label {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.contact-card__name {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
}

.contact-card__role {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 500;
}

.contact-card__email {
  margin: 0 0 1.2rem;
  font-size: 1.7rem;
}

.contact-card__email a {
  color: var(--accent-light);
  font-weight: 600;
}

.contact-card__note {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  color: var(--bg);
  background: var(--accent-light);
  transform: translateY(-1px);
}
