/*
Theme Name: Status Bets Brasil
Theme URI: https://example.com/
Author: BRBets Editorial
Description: Portal em português brasileiro para status regulatório, segurança de aplicativos e orientação ao consumidor.
Version: 1.0.0
Text Domain: status-bets-brasil
*/

:root {
  --navy: #0b1f3a;
  --navy-2: #15345b;
  --ink: #162235;
  --muted: #617087;
  --line: #dbe4ee;
  --soft: #f5f8fb;
  --yellow: #f5c451;
  --yellow-soft: #fff7db;
  --green: #0c7c66;
  --green-soft: #e9f7f2;
  --red: #a83b47;
  --red-soft: #fff0f1;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 12px 18px; font-weight: 800; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.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; }
.site-header { background: var(--navy); color: var(--white); }
.header-inner, .container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { position: relative; display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; letter-spacing: -.03em; font-size: 1.05rem; }
.brand-link { color: var(--white); }
.brand-link::after { content: ""; position: absolute; inset: 0; }
.brand-logo { display: block; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; }
.brand-text { display: block; line-height: 1.15; }
.brand small { display: block; color: #b5c8df; font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.primary-nav a { color: #e8f0fb; font-size: .9rem; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, #173e6a 65%, #214f7c 100%); color: var(--white); padding: 74px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 52px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; color: var(--yellow); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 760px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.hero p { color: #dce8f6; font-size: 1.08rem; max-width: 700px; }
.hero-card, .info-card, .status-card, .source-card, .guide-card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(11,31,58,.07); }
.hero-card { padding: 24px; color: var(--ink); }
.hero-card h3 { color: var(--navy); }
.hero-card ul { margin: 0; padding-left: 20px; }
.hero-card li + li { margin-top: 8px; }
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-head p { color: var(--muted); max-width: 650px; margin: 0; }
.section-note { color: var(--muted); max-width: 720px; margin: 0 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card, .status-card, .source-card, .guide-card { padding: 22px; }
.info-card p, .status-card p, .guide-card p { color: var(--muted); }
.icon-box { width: 42px; height: 42px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--navy); border-radius: 12px; font-weight: 800; margin-bottom: 18px; }
.search-box { display: flex; gap: 10px; margin-top: 22px; }
.search-box input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid #b7c7d8; border-radius: 10px; font: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: var(--yellow); color: var(--navy); font-weight: 800; padding: 13px 17px; cursor: pointer; }
.button.secondary { background: var(--navy); color: var(--white); }
.button.outline { background: transparent; border: 1px solid #b7c7d8; color: var(--navy); }
.button:hover { text-decoration: none; filter: brightness(.98); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brand-card { position: relative; display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.brand-card:hover { border-color: #9ab2cb; box-shadow: 0 8px 22px rgba(11,31,58,.07); }
.brand-card-link { display: block; color: var(--navy); font-weight: 800; }
.brand-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.brand-card-note { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--yellow-soft); border: 1px solid #eedc9e; }
.notice strong { color: var(--navy); }
.breadcrumb { padding: 22px 0 0; color: var(--muted); font-size: .86rem; }
.page-shell { padding: 34px 0 72px; }
.page-header { max-width: 820px; margin-bottom: 30px; }
.page-header p { color: var(--muted); font-size: 1.06rem; }
.facts-table { width: 100%; border-collapse: collapse; margin: 22px 0 30px; font-size: .94rem; }
.facts-table th, .facts-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts-table th { width: 27%; color: var(--navy); background: var(--soft); font-weight: 750; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; }
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: #384b63; }
.prose ul { padding-left: 22px; }
.sidebar { position: sticky; top: 20px; align-self: start; }
.sidebar .source-card + .source-card { margin-top: 14px; }
.source-card h2, .source-card h3 { font-size: 1.02rem; margin: 0 0 10px; letter-spacing: -.01em; }
.source-card p, .source-card li { font-size: .9rem; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 9px; border-radius: 7px; background: var(--soft); color: var(--muted); font-size: .78rem; }
.site-footer { background: var(--navy); color: #c7d6e8; padding: 42px 0; }
.site-footer a { color: #e6eff9; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr .7fr; gap: 26px; }
.footer-heading { color: var(--white); font-size: 1rem; font-weight: 800; margin: 0 0 12px; }
.site-footer p, .site-footer li { font-size: .88rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 7px; }
.disclaimer { padding: 14px 0 0; font-size: .8rem; color: #94acc7; }
.empty-state { text-align: center; padding: 46px 20px; border: 1px dashed #b7c7d8; border-radius: 14px; }
@media (max-width: 880px) {
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
}
@media (max-width: 600px) {
  .header-inner, .container { width: min(100% - 28px, 1160px); }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 11px; }
  .brand small { font-size: .66rem; }
  .hero { padding: 50px 0 54px; }
  .section { padding: 48px 0; }
  .grid-3, .grid-2, .brand-grid { grid-template-columns: 1fr; }
  .primary-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 14px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-nav a { white-space: nowrap; font-size: .86rem; }
  .search-box { flex-direction: column; }
  .search-box .button { width: 100%; }
  .facts-table th { width: 38%; }
}

/* App directory */
.rrg-shell .page-header { max-width: 860px; }
.rrg-result-note { color: var(--muted); margin: 0 0 16px; }
.faq-group { margin: 0 0 30px; }
.faq-group h2 { margin-bottom: 4px; }
.rrg-app-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rrg-app-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.rrg-app-card:hover { border-color: #9ab2cb; box-shadow: 0 8px 22px rgba(11,31,58,.07); }
.rrg-card-media { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.rrg-card-media img { display: block; width: 72px; height: 72px; object-fit: cover; }
.rrg-card-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rrg-card-link { font-weight: 800; color: var(--navy); font-size: 1.02rem; line-height: 1.25; }
.rrg-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rrg-card-summary { color: var(--muted); font-size: .86rem; line-height: 1.45; margin: 0; }
.rrg-pagination { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 34px 0 0; flex-wrap: wrap; }
.rrg-pagination-info { color: var(--muted); font-size: .9rem; }

/* App detail */
.rrg-app-hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; margin: 24px 0 34px; }
.rrg-app-icon { width: 200px; height: 200px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); box-shadow: 0 12px 28px rgba(11,31,58,.12); }
.rrg-app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rrg-app-hero-body { min-width: 0; }
.rrg-app-hero-body h1 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); max-width: 780px; margin: 10px 0 8px; }
.rrg-app-summary { color: var(--muted); font-size: 1.04rem; margin: 10px 0 12px; max-width: 760px; }
.rrg-app-meta { color: var(--muted); font-size: .84rem; margin: 0; }
.rrg-app-meta span { margin: 0 6px; }
.rrg-side-meta { margin: 10px 0 0; }
.rrg-install-note { margin: 0; padding: 12px 14px; border-left: 3px solid var(--yellow); background: var(--yellow-soft); }
.app-facts { list-style: none; margin: 22px 0 30px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.app-facts li { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.app-facts li:last-child { border-bottom: 0; }
.rrg-screenshots { display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; padding: 4px 0 14px; }
.rrg-screenshots figure { flex: 0 0 auto; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); }
.rrg-screenshots img { display: block; height: 240px; width: auto; max-width: none; object-fit: contain; }
.rrg-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.rrg-faq summary { cursor: pointer; font-weight: 750; color: var(--navy); }
.faq-block { padding: 52px 0; }
.faq-block--nested { padding: 30px 0 0; }
.faq-block h2 { margin-bottom: 8px; }
.faq-block .rrg-faq details p { color: var(--muted); margin: 10px 0 0; }

@media (max-width: 880px) {
  .rrg-app-list { grid-template-columns: repeat(2, 1fr); }
  .rrg-app-hero { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .rrg-app-icon { width: 180px; height: 180px; }
}
@media (max-width: 600px) {
  .rrg-app-list { grid-template-columns: 1fr; }
  .rrg-app-hero { grid-template-columns: 1fr; gap: 18px; margin: 18px 0 26px; }
  .rrg-app-icon { width: min(64vw, 240px); height: auto; aspect-ratio: 1; margin: 0 auto; }
  .rrg-app-hero-body { text-align: left; }
  .rrg-app-hero-body h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .rrg-card-link { padding: 14px; gap: 12px; }
  .rrg-card-media, .rrg-card-media img { width: 64px; height: 64px; flex-basis: 64px; }
  .rrg-screenshots img { height: 200px; }
}
