/* NajboljsaSlovenskaSpletnaIgralnica.si — site stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --bg: #f6f8fb;
  --bg-dark: #0f2435;
  --bg-card: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5c6f82;
  --accent: #1b4d6e;
  --accent-light: #2a6f9e;
  --gold: #d4a853;
  --gold-soft: #f8edd8;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 36, 53, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 36, 53, 0.12);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --container: 1120px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--bg-dark);
}

h1 { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2.4rem, 3.5vw, 3.2rem); margin: 4rem 0 1.6rem; }
h3 { font-size: 2rem; margin: 2.4rem 0 1rem; }
h4 { font-size: 1.8rem; margin: 1.6rem 0 0.8rem; }

p { margin: 0 0 1.6rem; }

ul, ol { margin: 0 0 1.6rem; padding-left: 2rem; }
li { margin-bottom: 0.6rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.site-logo img { height: 40px; width: auto; }

.site-logo__text {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .site-logo__text { display: block; }
}

.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.5rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.6rem 2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul { flex-direction: column; gap: 0.4rem; }
  .site-nav a { padding: 1.2rem; font-size: 1.7rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1b4d6e 60%, #2a6f9e 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(212, 168, 83, 0.2);
  border: 1px solid rgba(212, 168, 83, 0.4);
  border-radius: 100px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.hero h1 { color: #fff; margin: 0 0 1.6rem; }

.hero__lead {
  font-size: 1.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0;
}

/* Main layout */
.main-content { flex: 1; padding: 4rem 0 6rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3rem;
    align-items: start;
  }
}

.prose { max-width: 760px; }

@media (min-width: 1024px) {
  .prose { max-width: none; }
}
.prose--wide { max-width: none; }

.prose > *:first-child { margin-top: 0; }

/* Widget */
.casino-widget {
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

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

/* Author byline */
.author-byline {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  margin: 2.4rem 0 3.2rem;
}

.author-byline__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
  flex-shrink: 0;
}

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

.author-byline__role {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

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

/* Illustrations */
.article-figure {
  margin: 2.4rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.article-figure__media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef3f8 0%, #f8fafc 100%);
}

.article-figure__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.article-figure--contain .article-figure__media {
  max-height: 160px;
  padding: 1.6rem;
}

.article-figure--contain .article-figure__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.article-figure figcaption {
  padding: 1rem 1.4rem;
  background: var(--bg-card);
  font-size: 1.3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Lists styled */
.check-list {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow);
  margin: 2.4rem 0;
}

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

.check-list li {
  position: relative;
  padding-left: 2.8rem;
  margin-bottom: 1.2rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--gold-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Casino cards */
.casino-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  margin: 2.4rem 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.casino-card__rank {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.casino-specs {
  display: grid;
  gap: 0;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1.45rem;
}

.casino-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}

.casino-specs__row:last-child { border-bottom: none; }

.casino-specs__row:nth-child(even) { background: #f8fafc; }

.casino-specs dt {
  margin: 0;
  padding: 1rem 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(27, 77, 110, 0.04);
  border-right: 1px solid var(--border);
}

.casino-specs dd {
  margin: 0;
  padding: 1rem 1.2rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 520px) {
  .casino-specs__row {
    grid-template-columns: 1fr;
  }
  .casino-specs dt {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    font-size: 1.3rem;
  }
  .casino-specs dd { padding-top: 0.6rem; }
}

.casino-card__score {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  font-weight: 700;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin: 2.4rem 0;
}

@media (min-width: 640px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.info-card h3 {
  margin-top: 0;
  font-size: 1.8rem;
  color: var(--accent);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

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

.sidebar-card li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
  font-size: 1.35rem;
  color: var(--text);
  display: block;
  padding: 0.7rem 0;
  line-height: 1.35;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-card a:hover {
  color: var(--accent);
  padding-left: 0.4rem;
}

.sidebar-card__text {
  font-size: 1.35rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.sidebar-card .btn {
  width: 100%;
  text-align: center;
  padding: 1rem 1.2rem;
  font-size: 1.4rem;
}

/* FAQ */
.faq { margin: 3rem 0; }

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

.faq__question {
  width: 100%;
  padding: 1.6rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--bg-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq__question::after {
  content: '+';
  font-size: 2rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq__item.is-open .faq__question::after { transform: rotate(45deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__item.is-open .faq__answer { max-height: 600px; }

.faq__answer p {
  padding: 0 2rem 1.6rem;
  margin: 0;
  color: var(--text-muted);
}

/* Author card (bottom) */
.author-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #fff;
  margin: 4rem 0 0;
}

.author-card__layout {
  display: flex;
  gap: 2.4rem;
  align-items: flex-start;
}

.author-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.author-card__name {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  margin: 0 0 0.4rem;
  color: #fff;
}

.author-card__role {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
}

.author-card__bio {
  font-size: 1.6rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.6rem;
}

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

.author-card__tags li {
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 1.3rem;
  margin: 0;
}

@media (max-width: 640px) {
  .author-card__layout { flex-direction: column; align-items: center; text-align: center; }
  .author-card__tags { justify-content: center; }
}

/* Page templates */
.page-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 { color: #fff; margin: 0 0 1rem; }

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.8rem;
}

.page-content {
  padding: 4rem 0 6rem;
}

.page-content .container { max-width: 800px; }

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin: 3rem 0;
  border-top: 4px solid var(--gold);
}

.contact-card__email {
  font-size: 2rem;
  font-weight: 600;
}

.contact-card__email a { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent) !important;
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff !important;
}

/* Author profile page */
.author-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .author-profile { grid-template-columns: 280px 1fr; }
}

.author-profile__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.author-profile__photo img { width: 100%; }

.author-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}

.stat-box__value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

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

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.site-footer__brand p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 1.2rem 0 0;
}

.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.2rem;
}

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

.site-footer li { margin-bottom: 0.8rem; }

.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: var(--gold); }

.footer-responsible {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-responsible img { height: 40px; width: auto; border-radius: 4px; }

.footer-responsible a {
  font-size: 1.4rem;
  color: var(--gold);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 404 */
.error-page {
  text-align: center;
  padding: 8rem 2rem;
}

.error-page__code {
  font-size: 12rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin: 0;
}

.error-page h1 { margin: 0 0 1.6rem; }

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