/* ============================================================
   SpinKiwi — style.css
   Light casino editorial theme · Mobile-first · Fast-loading
   ============================================================ */

/* ─── Reset & Tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1A1814;
  --muted:      #5A5850;
  --faint:      #8A8278;
  --rule:       #E2DDD5;
  --cream:      #F8F6F1;
  --amber-bg:   #FFFBE8;
  --blue-bg:    #F0F7FF;
  --green-bg:   #F0FAF0;
  --red-bg:     #FFF5F5;
  --green:      #1A5207;
  --green-mid:  #2B7A0B;
  --gold:       #C8960C;
  --gold-dark:  #A87C0A;
  --gold-light: #FDF3DA;
  --play-bg:    #C8960C;
  --play-hover: #A87C0A;
  --play-text:  #fff;

  --serif: Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.07);

  --max-w: 880px;
  --content-pad: 1.5rem;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink);
  background: #fff;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-mid); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  padding: .75rem var(--content-pad);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { width: 180px; height: auto; }

/* ─── Layout ─────────────────────────────────────────────── */
.site-main { padding: 0 var(--content-pad) 3rem; }
.content-wrap { max-width: var(--max-w); margin: 0 auto; }

/* ─── Page Banner (H1 area) ──────────────────────────────── */
.page-banner {
  background: var(--cream);
  border-left: 4px solid var(--green);
  padding: 1.4rem 1.6rem 1.2rem;
  margin: 1.6rem 0 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  line-height: 1.22;
  margin-bottom: .4rem;
  color: var(--ink);
}
.banner-meta {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ─── Typography ─────────────────────────────────────────── */
h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  margin-top: 2.4rem;
  margin-bottom: .65rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .22rem;
  color: var(--ink);
}
h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  margin-top: 1.6rem;
  margin-bottom: .45rem;
  font-weight: bold;
}
h4 {
  font-family: var(--serif);
  font-size: .97rem;
  margin-top: 1.25rem;
  margin-bottom: .3rem;
  font-style: italic;
  font-weight: bold;
}
p { margin-bottom: .88rem; }
ul, ol { margin: .55rem 0 .9rem 1.4rem; }
li { margin-bottom: .32rem; }
strong { font-weight: bold; font-style: normal; }

/* ─── Article Images ─────────────────────────────────────── */
.article-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.2rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.article-img img { width: 100%; height: auto; }

/* ─── Warning / Notice Boxes ─────────────────────────────── */
.warn-box {
  background: var(--amber-bg);
  border-left: 4px solid var(--gold);
  padding: .8rem 1.05rem;
  margin: 1.1rem 0;
  font-family: var(--sans);
  font-size: .86rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box {
  background: var(--blue-bg);
  border-left: 4px solid #2558D8;
  padding: .8rem 1.05rem;
  margin: 1.1rem 0;
  font-family: var(--sans);
  font-size: .86rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-box a { color: #1a3fa0; }

/* ─── PLAY Button ────────────────────────────────────────── */
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1.1rem;
  background: var(--play-bg);
  color: var(--play-text) !important;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(200,150,12,.35);
}
.play-btn:hover {
  background: var(--play-hover);
  color: var(--play-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,150,12,.45);
}
.play-btn:active { transform: translateY(0); }

/* ─── Casino Comparison Table ────────────────────────────── */
.casino-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.casino-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .83rem;
  min-width: 700px;
}
.casino-table thead th {
  background: var(--ink);
  color: #fff;
  padding: 10px 10px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.casino-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.casino-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.casino-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.casino-table tbody tr:last-child td { border-bottom: none; }
.casino-table tbody tr:nth-child(even) td { background: #faf9f6; }
.casino-table tbody tr:hover td { background: var(--gold-light); transition: background .12s; }
.casino-name { font-weight: 700; font-size: .87rem; color: var(--ink); }
.casino-offer { color: var(--green); font-weight: 600; }
.casino-score { color: var(--gold); font-size: 1rem; letter-spacing: -2px; }

/* ─── Casino Cards (mobile) ──────────────────────────────── */
.casino-cards { display: none; }
.casino-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow);
}
.casino-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .7rem;
}
.casino-card-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.casino-card-score { color: var(--gold); letter-spacing: -2px; font-size: 1rem; }
.casino-card-offer {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: .55rem;
}
.casino-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem .5rem;
  margin-bottom: .8rem;
}
.casino-card-meta-item {
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
}
.casino-card-meta-item span {
  font-weight: 600;
  color: var(--ink);
}
.casino-card .play-btn {
  width: 100%;
  padding: .65rem;
  font-size: .9rem;
  border-radius: var(--radius);
}

/* ─── Bonus Table (wagering examples) ───────────────────── */
.bonus-table-wrap {
  overflow-x: auto;
  margin: .8rem 0;
}
.bonus-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.bonus-table th {
  background: #f0ede5;
  color: var(--ink);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
}
.bonus-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.bonus-table tbody tr:last-child td { border-bottom: none; }
.bonus-table tbody tr:nth-child(even) td { background: #faf9f6; }

/* ─── Pros / Cons ────────────────────────────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  margin: 1.1rem 0 .9rem;
}
.pros-box {
  background: var(--green-bg);
  border: 1px solid #b2dbb2;
  border-radius: var(--radius-lg);
  padding: .95rem 1.05rem;
}
.cons-box {
  background: var(--red-bg);
  border: 1px solid #eed9d9;
  border-radius: var(--radius-lg);
  padding: .95rem 1.05rem;
}
.pros-box h4 { color: #155a15; }
.cons-box h4 { color: #7a1f1f; }

.verdict-box {
  background: var(--cream);
  border: 1px solid #d0ccc4;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: .95rem 1.1rem;
  margin: .85rem 0;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding-bottom: .9rem;
  margin-bottom: .9rem;
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; }

/* ─── Author Box ─────────────────────────────────────────── */
.author-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.1rem 1.3rem;
  margin: 2.5rem 0 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: .86rem;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--serif);
  flex-shrink: 0;
}
.author-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .15rem;
}
.author-creds { color: var(--muted); line-height: 1.5; }
.author-badge {
  display: inline-block;
  background: #e4f4e4;
  color: var(--green);
  font-size: .75rem;
  font-weight: 600;
  padding: .18rem .65rem;
  border-radius: 999px;
  margin-top: .4rem;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-family: var(--sans);
  padding: 2.5rem var(--content-pad) 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .7rem;
  text-decoration: none;
}
.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--serif);
  flex-shrink: 0;
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.footer-about {
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .7rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .82rem;
  transition: color .12s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
}
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ─── Misc utilities ─────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  :root { --content-pad: 1rem; }

  .logo-link img { width: 150px; }

  /* Hide desktop table, show cards */
  .casino-table-wrap { display: none; }
  .casino-cards { display: block; }

  .pros-cons { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .author-box {
    flex-direction: column;
    gap: .7rem;
    align-items: flex-start;
  }

  h2 { font-size: 1.18rem; }
  .page-banner h1 { font-size: 1.32rem; }
}

@media (max-width: 420px) {
  .casino-card-meta { grid-template-columns: 1fr; }
}

/* ─── Site Navigation ─────────────────────────────────────── */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .1rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: .3rem .72rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.site-nav a:hover {
  color: var(--green);
  background: var(--green-bg);
}
.site-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  background: var(--green-bg);
  border-bottom: 2px solid var(--green);
  border-radius: var(--radius) var(--radius) 0 0;
}
@media (max-width: 560px) {
  .site-nav a { font-size: .73rem; padding: .28rem .48rem; }
}
@media (max-width: 400px) {
  .header-inner { flex-wrap: wrap; gap: .5rem; }
  .site-nav { margin-left: 0; }
}
