/* Spillesider.online - global stylesheet
   One global CSS file. No external fonts. */

:root {
  --red: #b51226;
  --red-dark: #650713;
  --gold: #ffc84a;
  --gold-dark: #b97805;
  --green: #0f7a4d;
  --ink: #191113;
  --muted: #6b5e61;
  --line: #eadde0;
  --paper: #fffaf5;
  --card: #ffffff;
  --dark: #1b080c;
  --shadow: 0 16px 40px rgba(63, 10, 20, .12);
  --shadow-sm: 0 4px 14px rgba(63, 10, 20, .08);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: Verdana, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }

p { margin: 0 0 1em; }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .06em;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}
.logo:hover { color: var(--red-dark); }
.logo span { color: var(--gold-dark); }

.nav {
  display: flex;
  align-items: center;
}

.nav > ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.nav > ul > li { position: relative; }

.nav > ul > li > a,
.nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 8px;
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, background .15s ease;
}

.nav > ul > li > a::after,
.nav > ul > li > button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav > ul > li > a:hover,
.nav > ul > li > button:hover,
.nav > ul > li.open > button {
  color: var(--red);
  background: transparent;
}
.nav > ul > li > a:hover::after,
.nav > ul > li > button:hover::after,
.nav > ul > li.open > button::after {
  transform: scaleX(1);
}

.dropdown-caret {
  font-size: .55rem;
  margin-left: 2px;
  transition: transform .2s ease;
  opacity: .7;
}
.nav li.open .dropdown-caret,
.nav > ul > li > button:hover .dropdown-caret { opacity: 1; transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(63, 10, 20, .18);
  padding: 8px;
  margin-top: 10px;
  list-style: none;
  display: none;
  z-index: 60;
}

/* invisible hover bridge so mouse can travel from button to menu */
.nav > ul > li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  display: none;
}
.nav > ul > li:hover::after,
.nav > ul > li.open::after { display: block; }

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.nav li.open .dropdown { display: block; }
.nav li:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease, padding .15s ease;
}
.dropdown a:hover {
  background: var(--paper);
  color: var(--red);
  padding-left: 18px;
}

.menu-toggle {
  display: none;
  background: var(--red);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  font-size: .9rem;
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(255, 200, 74, .18), transparent 60%),
    linear-gradient(180deg, #2a0c12 0%, var(--dark) 100%);
  color: #fff;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: #fff;
  max-width: 820px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,.85);
  max-width: 720px;
  margin-bottom: 26px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(255, 200, 74, .25);
}
.btn-primary:hover { background: #ffd56e; transform: translateY(-1px); color: var(--dark); }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn-table {
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-size: .88rem;
}
.btn-table:hover { background: var(--red-dark); color: #fff; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}
.trust-row span::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0;
}

.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--paper);
  border: 2px solid var(--gold);
  object-fit: cover;
}

.author-box .meta {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

.author-box strong { font-size: 1rem; }

.author-box p {
  margin: 6px 0 0;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}

.author-box a { color: var(--red); }

/* ===== COMPARISON TABLE ===== */
.table-section {
  background: var(--paper);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}

.table-intro { max-width: 720px; margin-bottom: 24px; }
.table-intro h2 { margin-top: 0; }

.casino-table {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}

.table-head {
  display: grid;
  grid-template-columns: 60px 1.5fr 1.4fr .8fr .8fr 1.2fr .9fr 130px;
  gap: 12px;
  padding: 16px 20px;
  background: var(--dark);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.table-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1.4fr .8fr .8fr 1.2fr .9fr 130px;
  gap: 12px;
  padding: 18px 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.table-row:nth-child(even) { background: #fdf7f0; }

.rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.rank.top { background: var(--red); color: #fff; }

.casino-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.casino-type {
  font-size: .78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-yes { background: #e8f5ef; color: var(--green); }
.badge-no { background: #fbe6e6; color: var(--red); }
.badge-gold { background: #fff4d6; color: var(--gold-dark); }

.cell-label { display: none; }

.table-note {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  padding: 0 12px;
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 48px 0;
}
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { margin-top: 0; font-size: 1.02rem; color: var(--red-dark); }
.feature-card p { margin: 0; font-size: .92rem; color: var(--muted); }

.callout {
  background: linear-gradient(135deg, #fff4d6 0%, #ffe7a8 100%);
  border-left: 4px solid var(--gold-dark);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: .95rem;
}
.callout strong { color: var(--gold-dark); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 24px auto 0;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 48px;
  color: var(--ink);
  font-size: .98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 1.4rem;
  color: var(--red);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.78);
  padding: 56px 0 28px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 36px 24px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 14px;
  letter-spacing: .03em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
}
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { margin: 0 0 8px; font-size: .88rem; }
.footer-brand .footer-logo {
  font-weight: 900;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: 12px;
  display: block;
}

.responsible-note {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  text-align: center;
}
.responsible-note strong { color: var(--gold); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  font-size: .82rem;
  color: var(--muted);
  margin: 16px 0 0;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; color: var(--line); }

/* ===== PLACEHOLDER NOTE ===== */
.placeholder-note {
  background: #fff4d6;
  border-left: 4px solid var(--gold-dark);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gold-dark);
  margin: 20px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .table-head { display: none; }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin: 12px;
    background: var(--card) !important;
    box-shadow: var(--shadow-sm);
  }
  .casino-table { background: transparent; box-shadow: none; border: 0; }
  .table-row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
  }
  .table-row > div:last-child { border-bottom: 0; padding-top: 10px; }
  .cell-label {
    display: inline-block;
    font-size: .78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
  }
  .casino-name-cell { flex-direction: column; align-items: flex-start !important; }
  .casino-name-cell .cell-label { display: none; }
  .btn-table { width: 100%; justify-content: center; }
  .rank-cell { justify-content: flex-start !important; gap: 12px; }
}

@media (max-width: 760px) {
  .header-inner { padding: 14px 0; }
  .container { padding: 0 22px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateX(0); }
  .nav > ul {
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }
  .nav > ul > li > a, .nav > ul > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 1rem;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--paper);
    margin: 4px 0 10px;
    padding: 4px;
    transform: none;
  }
  .dropdown::before { display: none; }
  .nav > ul > li::after { display: none !important; }
  .hero { padding: 40px 0 48px; }
  .author-box { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
