/* =============================================
   Win Plataforma de Apostas — style.css
   Palette: #0D1117 / #1F6FEB / #E8B84B
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: #0D1117;
  color: #e2e8f0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: #1F6FEB; text-decoration: underline; }
a:hover { color: #E8B84B; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #1F6FEB;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { left: 8px; }

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 111, 235, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #E8B84B;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  line-height: 44px;
}

.brand-name {
  display: none;
}

@media (min-width: 480px) {
  .brand-name { display: inline; }
}

/* ---------- Menu Toggle ---------- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(31, 111, 235, 0.4);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Header CTAs ---------- */
.header-ctas {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cta-signup {
  background: #1F6FEB;
  color: #fff;
  border: 2px solid #1F6FEB;
}
.cta-signup:hover { background: #1558c0; border-color: #1558c0; color: #fff; }

.cta-login {
  background: transparent;
  color: #E8B84B;
  border: 2px solid #E8B84B;
}
.cta-login:hover { background: #E8B84B; color: #0D1117; }

/* ---------- Layout Wrap ---------- */
.layout-wrap {
  display: flex;
  flex-direction: row;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(31, 111, 235, 0.2);
  padding: 24px 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

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

.sidebar nav ul li a {
  display: block;
  padding: 10px 20px;
  min-height: 44px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #a0aec0;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a[aria-current="page"] {
  color: #E8B84B;
  border-left-color: #E8B84B;
  background: rgba(232, 184, 75, 0.06);
}

.sidebar-info {
  padding: 16px 20px 0;
  border-top: 1px solid rgba(31, 111, 235, 0.15);
  margin-top: 16px;
}

.sidebar-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 174, 192, 0.6);
  font-family: 'Courier New', monospace;
}

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  font-size: 0.8rem;
  color: #718096;
}

.breadcrumb ol li + li::before {
  content: '›';
  margin-right: 4px;
  color: rgba(113, 128, 150, 0.5);
}

.breadcrumb ol li a {
  color: #1F6FEB;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.breadcrumb ol li a:hover { color: #E8B84B; }

/* ---------- Page h1 ---------- */
h1 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

/* ---------- Byline ---------- */
.byline {
  font-size: 0.82rem;
  color: #718096;
  margin-bottom: 24px;
  font-family: 'Courier New', monospace;
}

.byline strong { color: #a0aec0; }
.byline time { color: #E8B84B; }

/* ---------- Page Content ---------- */
.page-content {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.7;
  color: #cbd5e0;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 0.6em;
  border-bottom: 1px solid rgba(31, 111, 235, 0.25);
  padding-bottom: 6px;
}

.page-content h2 > span,
.page-content h3 > span {
  display: inline;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.5em 0 0.5em;
}

.page-content p { margin-bottom: 1em; }

.page-content ul,
.page-content ol {
  margin: 0.75em 0 1em 1.5em;
}

.page-content li { margin-bottom: 0.4em; }

.page-content a {
  color: #1F6FEB;
  text-decoration: underline;
}
.page-content a:hover { color: #E8B84B; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.page-content th,
.page-content td {
  border: 1px solid rgba(31, 111, 235, 0.25);
  padding: 8px 12px;
  text-align: left;
}

.page-content th {
  background: rgba(31, 111, 235, 0.15);
  color: #E8B84B;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.page-content blockquote {
  border-left: 3px solid #E8B84B;
  margin: 1.5em 0;
  padding: 12px 20px;
  background: rgba(232, 184, 75, 0.06);
  color: #a0aec0;
  font-style: italic;
}

/* ---------- Entry Section ---------- */
.entry-section { max-width: 800px; }

.entry-figure {
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(31, 111, 235, 0.2);
  min-height: 4px;
  overflow: hidden;
}

.entry-figure img {
  width: 100%;
  height: auto;
}

.fig-placeholder {
  height: 4px;
  background: linear-gradient(90deg, #1F6FEB, #E8B84B);
}

.entry-info-aside {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stage-tag {
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1F6FEB;
  border: 1px solid rgba(31, 111, 235, 0.4);
  padding: 2px 8px;
}

.cat-tag a {
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #E8B84B;
  text-decoration: none;
  border: 1px solid rgba(232, 184, 75, 0.4);
  padding: 2px 8px;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

/* ---------- Related Aside ---------- */
.related-aside {
  margin-top: 32px;
  border-top: 1px solid rgba(31, 111, 235, 0.2);
  padding-top: 16px;
}

.related-aside h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
}

.related-aside h3 > span { display: inline; }

.related-list {
  list-style: none;
}

.related-list li a {
  display: block;
  padding: 8px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #a0aec0;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 111, 235, 0.1);
  transition: color 0.15s;
}

.related-list li a:hover { color: #E8B84B; }

/* ---------- Category Intro ---------- */
.cat-intro { max-width: 800px; }

.cat-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.badge-label {
  font-size: 0.72rem;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1F6FEB;
  border: 1px solid rgba(31, 111, 235, 0.4);
  padding: 3px 10px;
}

/* ---------- Entry List (Category child pages) ---------- */
.entry-list-section {
  margin-top: 48px;
  max-width: 800px;
}

.entry-list-section h2 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #718096;
  font-family: 'Courier New', monospace;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(31, 111, 235, 0.2);
  padding-bottom: 8px;
}

.entry-list-section h2 > span { display: inline; }

.entry-list {
  list-style: none;
  counter-reset: none;
}

.entry-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 111, 235, 0.12);
}

.entry-num {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #E8B84B;
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 28px;
  padding-top: 2px;
}

.entry-meta {
  flex: 1;
  min-width: 0;
}

.entry-meta a {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.entry-meta a:hover { color: #E8B84B; }

.entry-meta small {
  font-size: 0.78rem;
  color: #718096;
  line-height: 1.4;
  display: block;
}

/* ---------- Home specific ---------- */
.home-hero {
  padding: 48px 0 32px;
  max-width: 720px;
}

.home-hero .eyebrow {
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1F6FEB;
  margin-bottom: 12px;
  display: block;
}

.home-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.home-hero .lead {
  font-size: 1.05rem;
  color: #a0aec0;
  line-height: 1.7;
  margin-bottom: 28px;
}

.home-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stat-item {
  font-family: 'Courier New', monospace;
}

.stat-item .stat-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: #E8B84B;
  display: block;
}

.stat-item .stat-desc {
  font-size: 0.75rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-content-section {
  max-width: 800px;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.home-cat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(31, 111, 235, 0.2);
  padding: 20px;
  transition: border-color 0.15s, background 0.15s;
}

.home-cat-card:hover {
  border-color: rgba(232, 184, 75, 0.4);
  background: rgba(255,255,255,0.05);
}

.home-cat-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-cat-card h3 a {
  color: #e2e8f0;
  text-decoration: none;
}
.home-cat-card h3 a:hover { color: #E8B84B; }

.home-cat-card h3 > span { display: inline; }

.home-cat-card p {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 12px;
}

.home-cat-card .card-link {
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: #1F6FEB;
  text-decoration: none;
  letter-spacing: 0.05em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.home-cat-card .card-link:hover { color: #E8B84B; }

/* ---------- About Layout ---------- */
.about-section { max-width: 720px; }

.author-card {
  background: rgba(31, 111, 235, 0.06);
  border: 1px solid rgba(31, 111, 235, 0.25);
  border-left: 4px solid #1F6FEB;
  padding: 28px;
  margin-top: 32px;
}

.author-card h2 {
  font-size: 1.1rem;
  color: #E8B84B;
  margin-bottom: 4px;
}

.author-card h2 > span { display: inline; }

.author-credentials {
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  color: #1F6FEB;
  margin-bottom: 16px;
  display: block;
}

.author-bio {
  font-size: 0.95rem;
  color: #a0aec0;
  line-height: 1.7;
}

/* ---------- Privacy Layout ---------- */
.privacy-section { max-width: 720px; }

.privacy-section h2 {
  font-size: 1.15rem;
  color: #fff;
  margin: 2em 0 0.5em;
  border-bottom: 1px solid rgba(31,111,235,0.2);
  padding-bottom: 4px;
}

.privacy-section h2 > span { display: inline; }

/* ---------- Footer ---------- */
.site-footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(31, 111, 235, 0.2);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-col {
  flex: 1;
  min-width: 160px;
}

.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8B84B;
  font-family: 'Courier New', monospace;
  margin-bottom: 12px;
  display: block;
}

.footer-col dt:not(.footer-heading) {
  margin-bottom: 6px;
}

.footer-col dt a {
  color: #718096;
  text-decoration: none;
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.footer-col dt a:hover { color: #E8B84B; }

.footer-col dd {
  font-size: 0.78rem;
  color: #4a5568;
  margin-top: 12px;
  line-height: 1.5;
}

.responsible-gambling {
  font-size: 0.75rem;
  color: #4a5568;
  line-height: 1.5;
  border-top: 1px solid rgba(31,111,235,0.15);
  padding-top: 12px;
  margin-top: 12px;
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: #2d3748;
  margin-top: 40px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

/* ---------- Sidebar mobile collapse ---------- */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: calc(100vh - 60px);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    background: #0D1117;
    border-right: 1px solid rgba(31,111,235,0.3);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .layout-wrap {
    flex-direction: column;
  }

  .main-content {
    padding: 20px 16px;
    width: 100%;
  }

  .footer-inner {
    padding: 0 16px;
    gap: 24px;
  }

  .home-cat-grid {
    grid-template-columns: 1fr;
  }

  .home-stats {
    gap: 20px;
  }

  /* Breadcrumb: ensure links have enough tap area */
  .breadcrumb ol li a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Entry list links */
  .entry-meta a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Footer col links */
  .footer-col dt a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .cta {
    font-size: 0.72rem;
    padding: 0 8px;
  }

  .brand-name {
    display: none;
  }

  h1 {
    font-size: 1.35rem;
  }

  .page-content {
    font-size: 1rem;
  }

  .footer-col {
    min-width: 100%;
  }
}

/* Overlay when sidebar open on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: rgba(0,0,0,0.6);
  z-index: 89;
}

.sidebar-overlay.is-active { display: block; }

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}.tbl-scroll{overflow-x:auto;max-width:100%}