/*
Theme Name: 8casino Midnight
Theme URI: https://8casino.bond/
Author: 8casino.bond
Description: Tema editorial independente em português do Brasil para conteúdo sobre a 8casino.
Version: 1.0.0
Text Domain: eightcasino
*/

:root {
  --bg: #090f1f;
  --header: #121a2c;
  --surface: #0d1527;
  --surface-2: #111d34;
  --gold: #f3bf37;
  --green: #16b35c;
  --teal: #20c7a5;
  --text: #fff;
  --muted: #d2d5dd;
  --border: #26334c;
  --focus: #ffe47a;
  --content: 1150px;
  --reading: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe487; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.65rem, 5vw, 4rem); letter-spacing: -.045em; }
h2 { margin: 0 0 20px; font-size: clamp(1.9rem, 3.2vw, 2.65rem); letter-spacing: -.025em; scroll-margin-top: 96px; }
h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); color: #fff4d0; scroll-margin-top: 96px; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .55em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 16px; left: 12px; top: 12px; z-index: 9999; background: #fff; color: #000; }
.site-shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.reading-shell { width: min(calc(100% - 48px), var(--reading)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 66px; border-bottom: 1px solid var(--border); background: rgba(18,26,44,.97); backdrop-filter: blur(12px); }
.header-inner { min-height: 66px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: clamp(24px,4vw,56px); }
.brand { color: #fff; font-size: 1.38rem; font-weight: 850; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand::first-letter { color: var(--gold); }
.brand-logo { display: block; width: 156px; height: auto; }
.desktop-nav ul { display: flex; justify-content: flex-end; align-items: center; gap: clamp(22px,3.2vw,42px); padding: 0; margin: 0; list-style: none; }
.desktop-nav a { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .79rem; font-weight: 750; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav .current-menu-item a { color: #fff; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 6px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { color: #fff; background: #12934c; transform: translateY(-1px); }
.button-gold { background: var(--gold); color: #111827; }
.button-gold:hover { background: #ffd35a; color: #111827; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .18s ease; }
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(0) rotate(45deg); background: #fff; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-2px) rotate(-45deg); background: #fff; }
.mobile-panel { display: none; }

.hero { padding: 58px 0 0; text-align: center; }
.hero .eyebrow, .article-header .eyebrow { margin-bottom: 15px; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 940px; margin-inline: auto; }
.hero-lead { max-width: 790px; margin: 22px auto 24px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; justify-content: center; margin-bottom: 32px; }
.hero-figure { width: min(590px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 26px 70px rgba(0,0,0,.35); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }

.content-section { padding: 52px 0; border-top: 1px solid rgba(38,51,76,.72); }
.content-section:first-of-type { border-top: 0; }
.section-intro { color: var(--muted); font-size: 1.06rem; }
.inline-figure { margin: 30px 0 34px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.inline-figure img { width: 100%; }
.caption { margin: 8px 0 0; color: #aeb6c7; font-size: .82rem; }
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 46px; }
.prose-grid h3 { grid-column: auto; }
.category { break-inside: avoid; }
.steps { margin: 28px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 54px; padding-left: 66px; }
.steps li::before { position: absolute; left: 0; top: 0; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 850; counter-increment: step; content: counter(step); }
.notice { margin: 30px 0; padding: 20px 22px; border-left: 3px solid var(--gold); background: rgba(243,191,55,.075); color: #f2f2f2; }
.updated { color: #aeb6c7; font-size: .82rem; }
.text-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; }
.text-links a { font-weight: 750; }

.article-header { padding: 58px 0 28px; text-align: center; }
.article-header h1 { max-width: 940px; margin-inline: auto; }
.article-header .lead { max-width: 790px; margin: 22px auto 0; color: var(--muted); font-size: 1.08rem; }
.article-image { width: min(760px, 100%); margin: 30px auto 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.page-body { padding-bottom: 54px; }
.page-body section { padding: 42px 0; border-top: 1px solid rgba(38,51,76,.72); }

.table-scroll { margin: 26px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; min-width: 730px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: #ffe28a; background: #111c32; font-size: .84rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }

.faq details { border-top: 1px solid var(--border); background: var(--surface); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { min-height: 56px; padding: 16px 46px 16px 18px; cursor: pointer; font-weight: 800; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: #080d18; }
.footer-grid { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 50px; padding: 46px 0 28px; }
.footer-about { max-width: 590px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2,minmax(130px,1fr)); gap: 10px 26px; align-content: start; }
.footer-nav a { min-height: 44px; display: flex; align-items: center; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-note { padding: 18px 0 30px; border-top: 1px solid var(--border); color: #aeb6c7; font-size: .83rem; }
.footer-note p { margin: 0 0 6px; }
.error-page { min-height: 55vh; padding: 90px 0; text-align: center; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .site-shell, .reading-shell { width: min(calc(100% - 32px), var(--content)); }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .brand-logo { width: 140px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-panel { grid-column: 1 / -1; padding: 0 0 16px; }
  .mobile-panel.is-open { display: block; }
  .mobile-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; color: #fff; font-weight: 750; text-decoration: none; }
  .mobile-nav .mobile-cta { grid-column: 1 / -1; justify-content: center; background: var(--green); border-color: var(--green); }
  h1 { font-size: clamp(1.9rem, 9vw, 2.2rem); }
  h2 { font-size: 1.75rem; }
  .hero, .article-header { padding-top: 38px; }
  .hero-lead, .article-header .lead { font-size: 1rem; }
  .hero-figure { width: 100%; }
  .content-section { padding: 34px 0; }
  .page-body section { padding: 32px 0; }
  .prose-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 34px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 390px) {
  .footer-nav { grid-template-columns: 1fr; }
  .text-links { display: grid; gap: 10px; }
}

body:has(.site-bottom-cta) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.site-bottom-cta {
  position: fixed;
  z-index: 99990;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(9,15,31,.94);
  box-shadow: 0 16px 44px rgba(0,0,0,.48);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.site-bottom-cta__login {
  border-color: rgba(255,255,255,.38);
  background: #111d34;
  color: #fff;
}
.site-bottom-cta__register {
  background: var(--gold);
  color: #111827;
  box-shadow: 0 8px 22px rgba(243,191,55,.28);
}
.site-bottom-cta__button:hover { transform: translateY(-2px); }
.site-bottom-cta__login:hover { border-color: #fff; background: #1a2a48; color: #fff; }
.site-bottom-cta__register:hover { background: #ffd35a; color: #111827; box-shadow: 0 11px 28px rgba(243,191,55,.4); }
.site-bottom-cta__button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 480px) {
  body:has(.site-bottom-cta) { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .site-bottom-cta { width: calc(100% - 24px); }
  .site-bottom-cta__inner { gap: 6px; padding: 6px; border-radius: 14px; }
  .site-bottom-cta__button { min-height: 50px; padding: 10px 12px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
