/* AdOmar Info — Vägledning för casino utan svensk licens
   Green/red palette, tutorial-writer voice, mobile-first, no JS. */

:root {
  --primary: #15803d;
  --secondary: #166534;
  --accent: #dc2626;
  --bg: #ffffff;
  --surface: #f0fdf4;
  --surface-alt: #dcfce7;
  --text: #14532d;
  --muted: #6b7280;
  --border: #86efac;
  --row-alt: #f0fdf4;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 83, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 83, 45, 0.12);
  --shadow-lg: 0 12px 32px rgba(20, 83, 45, 0.18);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Skip link for accessibility */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; z-index: 999; }

/* Header (sticky gradient) */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.site-header a { color: #fff; text-decoration: none; }
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.01em;
}
.brand img { width: 40px; height: 40px; background: #fff; padding: 4px; border-radius: 8px; }
.brand span { line-height: 1.1; }

nav.primary { margin-left: auto; }
nav.primary ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
nav.primary a {
  display: inline-block; padding: 8px 14px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background 0.15s;
}
nav.primary a:hover { background: rgba(255,255,255,0.15); }
nav.primary a[aria-current="page"] { background: rgba(255,255,255,0.22); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 56px 20px 68px;
  text-align: left;
}
.hero-inner { max-width: 1180px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero .byline {
  color: rgba(255,255,255,0.9); font-size: 15px; margin: 0 0 18px;
}
.hero .lede { font-size: 18px; color: rgba(255,255,255,0.95); max-width: 780px; margin: 0 0 26px; }
.hero .lede p { margin: 0 0 10px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.cta.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.cta.ghost { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.cta.ghost:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Container */
main { max-width: 880px; margin: 0 auto; padding: 40px 20px 60px; }
main.wide { max-width: 1180px; }

/* Byline (in body, on money pages) */
.byline {
  color: var(--muted); font-size: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  margin: 0 0 22px;
}
.byline strong { color: var(--text); }

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0 36px;
}
.toc h2 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 12px; color: var(--secondary);
}
.toc ol { list-style: decimal; padding-left: 22px; margin: 0; columns: 1; }
.toc ol li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Section H2 with left-border accent + tinted surface */
main h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.25;
  margin: 46px 0 16px;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 6px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--secondary);
  font-weight: 800;
}
main h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--secondary);
  font-weight: 700;
}
main p, main li { font-size: 17px; }
main p { margin: 0 0 16px; }

/* Bulleted lists with arrow bullets */
main ul { list-style: none; padding-left: 4px; margin: 0 0 20px; }
main ul li {
  position: relative; padding-left: 26px; margin-bottom: 8px;
}
main ul li::before {
  content: "\27A4"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* Numbered lists with big circle numerals */
main ol { list-style: none; counter-reset: item; padding-left: 0; margin: 0 0 24px; }
main ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 52px;
  margin-bottom: 14px;
  min-height: 36px;
}
main ol > li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-sm);
}

/* Tables */
.table-wrap {
  overflow-x: auto; margin: 20px 0 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
main table {
  width: 100%; border-collapse: collapse;
  background: var(--bg); min-width: 480px;
}
main table thead {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
main table th, main table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
}
main table th { font-weight: 700; font-size: 14.5px; letter-spacing: 0.01em; }
main table tbody tr:nth-child(even) { background: var(--row-alt); }
main table tbody tr:last-child td { border-bottom: none; }

/* Callout box */
.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 28px;
}
.callout strong { color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }

/* FAQ accordion */
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
details[open] { box-shadow: var(--shadow-md); border-color: var(--primary); }
details summary {
  cursor: pointer; font-weight: 700; color: var(--secondary);
  list-style: none; position: relative; padding-right: 32px;
  font-size: 16.5px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "\25BC"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); transition: transform 0.2s;
  color: var(--accent); font-size: 13px;
}
details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
details p { margin-top: 12px; margin-bottom: 0; }

/* Author box */
.author-box {
  display: flex; gap: 18px; align-items: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-alt));
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 48px 0 0;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; background: #fff; }
.author-box p { margin: 0; }
.author-name { font-weight: 800; font-size: 17px; color: var(--secondary); }
.author-role { color: var(--accent); font-size: 14px; font-weight: 600; margin: 2px 0 8px !important; }
.author-bio { font-size: 15px; color: var(--text); line-height: 1.55; }

/* Figures / in-content SVG */
figure {
  margin: 24px 0; padding: 16px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  text-align: center;
}
figure svg { margin: 0 auto; max-width: 100%; height: auto; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic; }

/* Inline CTA banner mid-page */
.mid-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 32px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.mid-cta p { margin: 0; font-weight: 600; font-size: 16px; }
.mid-cta .cta { background: #fff; color: var(--primary); }
.mid-cta .cta:hover { background: var(--surface); }

/* Breadcrumb */
.crumbs {
  font-size: 14px; color: var(--muted);
  margin: 0 0 20px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--secondary); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--secondary); color: #dcfce7;
  padding: 40px 20px 24px; margin-top: 60px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
.footer-inner h3 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 10px; color: #fff;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; }
.footer-inner ul li { margin-bottom: 6px; }
.legal {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 24px; padding-top: 18px;
  font-size: 13.5px; color: rgba(255,255,255,0.75);
}

/* Responsive */
@media (min-width: 700px) {
  main ol { columns: 1; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .hero { padding: 72px 20px 84px; }
}
@media (min-width: 980px) {
  main { padding: 56px 24px 80px; }
  .header-inner { padding: 16px 24px; }
  .toc ol { columns: 2; column-gap: 24px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-row, .mid-cta, nav.primary { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  main { max-width: none; }
}

/* a11y additions */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}}
