/*
Theme Name: Sportbet Longform
Theme URI: https://sportbet.pics
Author: Sportbet Site
Description: Brazilian Portuguese brand-entry longform theme for Sportbet.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sportbet-longform
*/

:root {
  --sb-bg: #050908;
  --sb-bg-2: #0b1311;
  --sb-surface: #111b18;
  --sb-surface-2: #16231f;
  --sb-text: #f7f6ea;
  --sb-muted: #c3cabd;
  --sb-dim: #83918b;
  --sb-gold: #ecb53a;
  --sb-gold-2: #ffd76b;
  --sb-green: #15966c;
  --sb-border: rgba(236, 181, 58, 0.28);
  --sb-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  --sb-radius: 8px;
  --sb-wrap: min(1120px, calc(100vw - 32px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.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;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, rgba(21, 150, 108, 0.18), transparent 36%), var(--sb-bg);
  color: var(--sb-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

a {
  color: var(--sb-gold-2);
  text-decoration: none;
}

a:hover { color: #fff1a6; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 9, 8, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--sb-wrap);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 156px;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.footer-logo img {
  max-width: 148px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sb-green), var(--sb-gold));
  box-shadow: inset 0 0 0 4px rgba(5, 9, 8, 0.42);
}

.brand-name {
  color: var(--sb-text);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: 1.12rem;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--sb-muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--sb-text);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-action,
.wp-block-button__link,
.button,
.sb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sb-gold-2), var(--sb-gold));
  color: #10120a;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 12px 28px rgba(236, 181, 58, 0.22);
}

.site-action:hover,
.wp-block-button__link:hover,
.button:hover,
.sb-button:hover {
  color: #050908;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sb-text);
}

.site-main {
  min-height: 70vh;
}

.entry-shell {
  width: var(--sb-wrap);
  margin: 0 auto;
  padding: 54px 0 86px;
}

.entry-content > * {
  width: min(880px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .wp-block-image,
.entry-content > .wp-block-group.is-style-sb-wide,
.entry-content > .wp-block-columns {
  width: min(1120px, 100%);
}

.entry-content h1,
.entry-title {
  color: #ffe28a;
  font-size: clamp(2.5rem, 4.6vw, 3.625rem);
  line-height: 1.04;
  text-align: center;
  margin: 38px auto 20px;
  max-width: 1000px;
}

.entry-content h2 {
  color: #fff1a6;
  font-size: clamp(1.75rem, 3.4vw, 3.05rem);
  line-height: 1.08;
  margin-top: 76px;
  margin-bottom: 18px;
}

.entry-content h3 {
  color: var(--sb-gold-2);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-top: 34px;
  margin-bottom: 10px;
}

.entry-content p {
  color: var(--sb-muted);
  margin-top: 0;
  margin-bottom: 18px;
}

.entry-content strong {
  color: var(--sb-text);
}

.entry-content ul,
.entry-content ol {
  color: var(--sb-muted);
  padding-left: 1.15rem;
}

.entry-content li + li {
  margin-top: 8px;
}

.entry-content .wp-block-image {
  margin-top: 30px;
  margin-bottom: 34px;
}

.entry-content .wp-block-image img {
  width: 100%;
  border-radius: var(--sb-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--sb-shadow);
}

.wp-block-group.sb-hero {
  width: min(1120px, 100%);
  margin: 0 auto 64px;
  padding: 42px 0 0;
  text-align: center;
}

.sb-hero .wp-block-image {
  margin-top: 34px;
}

.sb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sb-gold-2);
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(236, 181, 58, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
}

.sb-lead {
  color: var(--sb-text) !important;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  max-width: 850px;
  margin: 0 auto 22px;
}

.sb-grid,
.sb-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, 100%);
  margin: 28px auto 34px;
}

.sb-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sb-panel,
.sb-note,
.sb-faq,
.sb-table {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--sb-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
}

.sb-panel {
  padding: 20px;
}

.sb-panel h3,
.sb-panel p {
  margin-left: 0;
  margin-right: 0;
}

.sb-panel p:last-child { margin-bottom: 0; }

.sb-label {
  display: inline-block;
  color: var(--sb-dim);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.sb-note {
  width: min(880px, 100%);
  margin: 24px auto;
  padding: 18px 20px;
  border-color: rgba(21, 150, 108, 0.42);
  background: rgba(21, 150, 108, 0.10);
}

.sb-note p {
  margin: 0;
}

.sb-table {
  width: min(960px, 100%);
  margin: 26px auto;
  overflow-x: auto;
}

.sb-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.sb-table th,
.sb-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sb-muted);
  text-align: left;
  vertical-align: top;
}

.sb-table th {
  color: var(--sb-text);
  background: rgba(236, 181, 58, 0.08);
}

.sb-faq {
  width: min(880px, 100%);
  margin: 14px auto;
  padding: 18px 20px;
}

.sb-faq h3 {
  margin-top: 0;
  color: var(--sb-text);
}

.sb-faq p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030605;
  color: var(--sb-muted);
}

.footer-inner {
  width: var(--sb-wrap);
  margin: 0 auto;
  padding: 46px 0 96px;
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand > p:not(.footer-title),
.footer-responsible p:not(.footer-title),
.footer-contact p:not(.footer-title) {
  margin: 0;
}

.footer-responsible,
.footer-contact {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px 26px;
}

.footer-title {
  color: var(--sb-text);
  font-weight: 800;
  margin: 0 0 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li + li {
  margin-top: 8px;
}

.footer-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--sb-gold);
}

.sticky-access {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--sb-border);
  border-radius: 8px;
  background: rgba(5, 9, 8, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.sticky-access span {
  display: none;
  color: var(--sb-muted);
  font-size: 0.82rem;
  padding-left: 8px;
}

.sticky-access a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #09110e;
  background: var(--sb-gold);
  font-weight: 800;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-navigation {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    background: #07100d;
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 4px; justify-items: stretch; }
  .main-navigation a { justify-content: center; }
  .header-actions .site-action { display: none; }
  .sb-grid,
  .sb-grid.two,
  .sb-status-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { max-width: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-shell { padding-top: 30px; padding-bottom: 104px; }
  .entry-content h2 { margin-top: 52px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { width: calc(100vw - 24px); min-height: 64px; gap: 10px; }
  .main-navigation { top: 64px; }
  .brand-name { font-size: 1rem; }
  .custom-logo,
  .custom-logo-link img,
  .site-branding img,
  .brand-logo img { max-width: 118px; max-height: 40px; }
  .entry-shell { width: calc(100vw - 24px); }
  .entry-content h1,
  .entry-title { font-size: 2.25rem; }
  .wp-block-group.sb-hero { padding-top: 22px; }
  .sb-panel { padding: 16px; }
  .footer-inner { padding-bottom: 124px; }
  .footer-nav { grid-template-columns: 1fr; gap: 20px; }
  .sticky-access { bottom: 8px; width: calc(100vw - 16px); }
  .sticky-access a { font-size: 0.88rem; padding-left: 8px; padding-right: 8px; }
}
