/* =====================================================
   Jogos de Azar Online Brasil — Design v2
   Clean editorial · Blue & Gold · No ad slots
   ===================================================== */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #1a1d2e;
  --muted: #5c6478;
  --line: #e4e7f0;
  --brand: #1e3a8a;
  --brand-2: #2563eb;
  --accent: #c9a227;
  --accent-soft: #f5e9c0;
  --ok: #0f766e;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 58, 138, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }
ul { list-style: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ----- Header ----- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav > li { position: relative; }
.nav a {
  display: block;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
}
.nav a:hover,
.nav .on > a {
  color: var(--brand);
  background: #eef2ff;
}
.nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .18s ease;
}
.nav > li:hover .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .sub a {
  display: block;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--ink);
}
.nav .sub a:hover { background: #eef2ff; }
.burger {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brand);
}

/* ----- Hero ----- */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(900px 400px at 10% -10%, #dbe4ff 0%, transparent 55%),
    radial-gradient(700px 360px at 90% 0%, #f5e9c0 0%, transparent 50%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--brand);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 24px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: .2s ease;
}
.btn-main {
  background: var(--brand);
  color: #fff;
}
.btn-main:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-1px);
}
.btn-line {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-line:hover { background: #eef2ff; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-panel h2 {
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 14px;
}
.rank-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rank-list li:last-child { border-bottom: 0; }
.rank-list strong { color: var(--ink); }
.rank-list span { color: var(--muted); font-size: 0.88rem; }

/* ----- Sections ----- */
.block { padding: 52px 0; }
.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.block-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}
.block-head h2 {
  font-size: 1.7rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.block-head p { color: var(--muted); }

/* Cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: .2s ease;
}
.tile:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tile .ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.tile h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.tile p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.tile .more {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-2);
}

/* Game / casino cards */
.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s ease;
}
.item:hover {
  box-shadow: var(--shadow);
  border-color: #c7d2fe;
}
.item-visual {
  height: 130px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: #fff;
}
.item-body { padding: 16px; }
.item-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
}
.chip.gold {
  background: var(--accent-soft);
  color: #8a7010;
}

/* Page header */
.page-top {
  padding: 36px 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.page-top h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-top > .wrap > p {
  color: var(--muted);
  max-width: 640px;
}

/* Content + sidebar */
.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 36px 0 56px;
}
.prose h2 {
  font-size: 1.3rem;
  color: var(--brand);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.prose h3 {
  font-size: 1.08rem;
  margin: 20px 0 8px;
  color: var(--ink);
}
.prose p {
  margin-bottom: 14px;
  color: #3a4155;
}
.prose ul, .prose ol {
  margin: 0 0 16px 1.2rem;
  color: #3a4155;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.side-card h3 {
  font-size: 0.98rem;
  color: var(--brand);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.side-card a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.side-card a:hover { color: var(--brand-2); }

/* Table */
.table-box {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 20px 0;
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f0f4ff;
  color: var(--brand);
  font-weight: 700;
}
td { color: #3a4155; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 12px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand); }
.faq details p {
  color: var(--muted);
  padding-bottom: 14px;
  font-size: 0.95rem;
}

/* Footer */
.foot {
  background: #111827;
  color: #9ca3af;
  padding: 48px 0 28px;
  margin-top: 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}
.foot h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.foot a {
  display: block;
  color: #9ca3af;
  font-size: 0.88rem;
  padding: 4px 0;
}
.foot a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 18px;
  text-align: center;
  font-size: 0.84rem;
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters select,
.filters input {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
}
.filters select:focus,
.filters input:focus {
  outline: 2px solid #c7d2fe;
  border-color: var(--brand-2);
}

/* Form */
.form-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 520px;
  margin: 0 auto;
}
.form-box label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-box input,
.form-box textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 14px;
  font: inherit;
}
.form-box input:focus,
.form-box textarea:focus {
  outline: 2px solid #c7d2fe;
  border-color: var(--brand-2);
}

/* Utils */
.center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .layout,
  .grid-4,
  .grid-3,
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }
  .nav.open { display: flex; }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    display: none;
  }
  .nav > li:hover .sub { display: block; }
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
}