/*
Theme Name: Online Kasiino
Theme URI: https://example.ee/
Author: Kristjan Sepp
Description: Käsitsi kooditud kasiinovõrdluse teema: tume grafiittaust, kuldne CTA, kasiinokaartide topliist CPT-st, filtritabid, mängude sektsioon, SEO-artikkel sisukorraga ja KKK.
Version: 1.3.2
License: GNU General Public License v2 or later
Text Domain: onlinekasiino
*/

:root {
  --navy-900: #121317;
  --navy-800: #191b21;
  --navy-700: #20232b;
  --navy-600: #252933;
  --tile: #252933;
  --tile-inner: #313644;
  --green: #f0b429;
  --green-hover: #ffc94d;
  --btn-ink: #241804;
  --star: #ffc531;
  --pink: #ff5470;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.75);
  --text-faint: rgba(255, 255, 255, 0.5);
  --ink: #1c1b2e;
  --ink-dim: rgba(20, 18, 46, 0.78);
  --paper: #ffffff;
  --paper-alt: #f4f4fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 8, 11, 0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo:hover { color: var(--text); }

.site-logo .logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--green), #d98e04 55%, var(--green));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #241804;
  font-size: 15px;
  flex: none;
}

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.main-nav .emoji { font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 10px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 38px 42px;
  background:
    radial-gradient(680px 340px at 88% 10%, rgba(255, 201, 77, 0.4), transparent 60%),
    linear-gradient(112deg, #33230b 0%, #6e4a07 45%, #a8700a 100%);
  box-shadow: var(--shadow);
}

.hero-card h1 { margin-bottom: 14px; }

.hero-card .hero-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
}

.hero-mascot {
  position: absolute;
  right: 26px;
  bottom: -14px;
  font-size: 120px;
  line-height: 1;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
  user-select: none;
  pointer-events: none;
}

.hero-coins {
  position: absolute;
  right: 160px;
  top: 22px;
  font-size: 40px;
  opacity: 0.9;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-more { display: none; }
.hero-more.open { display: block; }

.link-more {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.link-more:hover { color: var(--green-hover); }

@media (max-width: 820px) {
  .hero-mascot, .hero-coins { display: none; }
  .hero-card { padding: 28px 22px; }
  .site-header .wrap { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; }
  .main-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; font-size: 14px; padding: 7px 10px; }
}

/* ---------- Filter tabs ---------- */
.toplist-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 10px;
  margin: 24px 0;
}

.toplist-tab {
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}
.toplist-tab:hover { background: rgba(255, 255, 255, 0.2); }
.toplist-tab.active { background: var(--green); color: var(--btn-ink); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.45);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.trust-bar strong { color: var(--green-hover); text-transform: uppercase; letter-spacing: 0.02em; font-size: 13.5px; }
.trust-bar .trust-icon { font-size: 22px; line-height: 1.3; }
.trust-bar .trust-sub { display: block; font-size: 13px; color: var(--text-faint); margin-top: 2px; }

/* ---------- Casino cards ---------- */
.casino-grid {
  counter-reset: rank;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

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

.casino-card {
  position: relative;
  background: var(--tile);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.casino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(7, 8, 11, 0.5);
}
.casino-card[hidden] { display: none; }

.casino-card.has-rank { counter-increment: rank; }
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(7, 8, 11, 0.4);
  z-index: 2;
}
.rank-badge::before { content: counter(rank); }

.fav-badge {
  position: absolute;
  top: 12px;
  right: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
  box-shadow: 0 4px 10px rgba(7, 8, 11, 0.35);
  z-index: 2;
}

.casino-card .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.casino-card .brand img { max-height: 60px; width: auto; }

.casino-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
}

.casino-rating { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); }
.casino-rating .star { color: var(--star); font-size: 16px; }
.casino-rating strong { color: var(--text); }

.casino-payments { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.casino-payments .pay {
  background: #fff;
  color: #23233f;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.5;
}

.casino-offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
.casino-offer.single { grid-template-columns: 1fr; }

.offer-box {
  background: var(--tile-inner);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 12px 8px;
}
.offer-box .offer-value { display: block; color: var(--text); font-size: 20px; font-weight: 700; }
.offer-box .offer-label { display: block; color: var(--text-dim); font-size: 13px; }
.offer-box .offer-terms { display: block; color: var(--text-faint); font-size: 11.5px; margin-top: 2px; }

.casino-actions { padding: 14px 16px 6px; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green);
  color: var(--btn-ink);
  font-size: 19px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--green-hover); color: var(--btn-ink); }

.casino-review-link {
  display: block;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 4px 0 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.casino-review-link:hover { color: var(--text); }

.show-more-row { text-align: center; margin: 4px 0 40px; }
.btn-ghost {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 34px;
  cursor: pointer;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: var(--text); }

/* ---------- Dark content sections ---------- */
.section-dark { padding: 44px 0; }
.section-dark.alt { background: var(--navy-700); }
.section-dark .section-intro { max-width: 860px; }

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 26px;
}
@media (max-width: 980px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games-grid { grid-template-columns: 1fr; } }

.game-card {
  background: var(--tile);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.game-card:hover { transform: translateY(-3px); }

.game-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
}

.game-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.game-body h3 { margin: 0; font-size: 17px; }
.game-provider { color: var(--text-faint); font-size: 13px; }
.game-rtp { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.game-body .btn { font-size: 15px; padding: 10px 12px; margin-top: auto; }
.game-demo-link { text-align: center; font-size: 13px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; margin-top: 8px; }

/* ---------- Article (light) ---------- */
.article-light {
  background: var(--paper);
  color: var(--ink-dim);
  padding: 52px 0 60px;
}
.article-light h2, .article-light h3, .article-light h4 { color: var(--ink); }
.article-light a { color: #92400e; font-weight: 500; }
.article-inner { max-width: 860px; margin: 0 auto; }

.toc {
  background: var(--paper-alt);
  border: 1px solid #e4e4f2;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 19px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 5px 0; }

.article-light table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 30px;
  font-size: 14.5px;
}
.article-light th {
  background: var(--navy-800);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
}
.article-light td { border-bottom: 1px solid #e7e7f3; padding: 9px 14px; }
.article-light tr:nth-child(even) td { background: var(--paper-alt); }
.table-scroll { overflow-x: auto; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; margin: 9px 0; }
.check-list li::before { content: "✔"; color: #92400e; position: absolute; left: 0; font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0 30px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 58px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--btn-ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h4 { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid #e4e4f2;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 18px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 12px;
  font-size: 20px;
  color: #92400e;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; }

/* ---------- Single review ---------- */
.review-hero { padding: 40px 0 26px; }
.review-head {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.review-logo-box {
  width: 220px;
  min-height: 110px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.review-summary { flex: 1; min-width: 260px; }
.review-summary .casino-rating { font-size: 16px; }
.review-cta { min-width: 220px; }

.review-body { background: var(--paper); color: var(--ink-dim); padding: 46px 0 60px; }
.review-body h2, .review-body h3 { color: var(--ink); }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 34px; }
.pros-cons.single { grid-template-columns: 1fr; }
@media (max-width: 700px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons .col { border-radius: var(--radius); padding: 18px 22px; }
.pros-cons .pros { background: #f0f8e6; border: 1px solid #d8ecc0; }
.pros-cons .cons { background: #fdeef2; border: 1px solid #f5cdd8; }
.pros-cons h3 { margin-bottom: 8px; font-size: 17px; }
.pros-cons ul { margin: 0; padding-left: 20px; }
.pros-cons li { margin: 6px 0; }

/* ---------- Archive ---------- */
.archive-header { padding: 40px 0 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-faint);
  padding: 46px 0 30px;
  font-size: 14.5px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 30px;
}
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h3 { font-size: 16px; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--text); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #e03131;
  color: #ff6b6b;
  font-weight: 800;
  font-size: 13px;
  margin-right: 12px;
}

.footer-warning {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-copy { margin-top: 18px; font-size: 13px; }
