:root {
  --surface-base: #0a1110;
  --surface-card: #101a18;
  --text-primary: #e6f0ec;
  --text-secondary: #a3b1ab;

  --surface-header: #1C352D;   /* 5535 C (aprox) */
  --surface-footer: #13231E;
  --brand-primary: #1C352D;

  --action-primary: #3cb20a;   /* manter CTA atual */
  --highlight-primary: #ED8B00;/* 144 C (âmbar quente) */
  --text-on-footer: #ffffff;

  --container-max: 1200px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 6px;
  --radius-md: 10px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-primary);
  background: var(--surface-base);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

/* Header */
header.site-header { background: var(--surface-header);}
header .inner { display: flex; align-items: center; justify-content: center; }
.logo { border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo img { width: 180px; height: 60px; object-fit: contain; }
nav.site-nav a { color: #fff; text-decoration: none; font-weight: var(--fw-bold); margin-left: var(--space-4); }
nav.site-nav a:hover { color: var(--action-primary); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,.6)), url('/public/images/hero-bg.jpg') center/cover no-repeat;
}
.hero .content { padding-top: var(--space-10); padding-bottom: var(--space-10); text-align: left; }
.hero h1 { font-size: 32px; line-height: 1.2; margin: 0 0 var(--space-3); font-weight: var(--fw-extrabold); }
.hero h2 { font-size: 16px; font-weight: var(--fw-regular); margin: 0; }

.category-bar { background: var(--action-primary); color: #fff; margin-top: var(--space-6); border-radius: var(--radius-sm); }
.category-bar .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding: var(--space-4); }
.category-bar .item { display: flex; align-items: center; font-weight: 700; }
.category-bar .item i { margin-right: var(--space-3); }

/* Platforms */
.section-platforms { padding: var(--space-10) 0; background: var(--surface-base); }
.cards { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.card {
  background: var(--surface-card);
  border: 1px solid #e6e6ea;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.card .badge { align-self: flex-start; background: var(--highlight-primary); color: #000; font-weight: var(--fw-extrabold); padding: 4px 10px; border-radius: 999px; font-size: 12px; margin-bottom: var(--space-4); }
.card .logo { margin-bottom: var(--space-4); }
.card .offer { font-weight: var(--fw-extrabold); text-transform: uppercase; font-size: 18px; }
.card .sub-offer { font-weight: var(--fw-medium);}
.card .rating { color: var(--highlight-primary); margin-bottom: var(--space-4); }
.card .meta { display: flex; flex-direction: column; align-items: start; justify-content: start; margin-top: var(--space-4); }
.card .votes { color: var(--text-secondary); font-size: 14px; }
.card .cta { margin-top: var(--space-6); }
.card .cta a { display: inline-block; width: 100%; text-align: center; background: var(--action-primary); color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 999px; font-weight: var(--fw-extrabold); letter-spacing: .4px; }
.card .cta a:hover { filter: brightness(.95); }

/* Info section */
.section-info { padding: 20px 0; background: var(--surface-card); }
.section-info h3 { font-size: 20px; font-weight: var(--fw-extrabold); margin: 0 0 var(--space-3); }
.section-info p { margin: 0 0 var(--space-4); color: var(--text-secondary); }

/* Footer */
.site-footer { background: var(--surface-footer); color: var(--text-on-footer); }
.site-footer .layer { padding: var(--space-2) 0; }
.site-footer .inner { padding: var(--space-2) var(--space-4); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-logos { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; align-items: center; }
.footer-logos img { height: 40px; }
.footer-links { display: flex; gap: var(--space-3); justify-content: center; align-items: center; }
.footer-links a { font-size: 14px; font-weight: var(--fw-regular); }

/* Modal (Age Gate) */
.age-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: center; justify-content: center; z-index: 1000; }
.age-modal { background: #fff; color: #000; width: min(92vw, 520px); border-radius: var(--radius-md); padding: var(--space-6); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.age-modal h3 { margin: 0 0 var(--space-3); font-size: 20px; font-weight: 800; }
.age-modal p { margin: 0 0 var(--space-4); color: #333; }
.age-modal .actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.age-modal .btn { display: inline-block; text-align: center; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: var(--fw-bold); text-decoration: none; }
.age-modal .btn-yes { background: var(--action-primary); color: #fff; }
.age-modal .btn-no { background: #eee; color: #000; }

/* Responsive */
@media (min-width: 768px) {
  .category-bar .row { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h2 { font-weight: var(--fw-medium); }
  .hero h1 { font-size: 38px; }
  .hero h2 { font-size: 21px; }
  .hero .content { padding-top: 80px; padding-bottom: 80px; }
  .card .sub-offer { font-size: 14px; }
  .footer-links a { font-weight: var(--fw-medium); }
}

@media (min-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  nav.site-nav a { margin-left: var(--space-6); }
  .hero h2 { font-weight: var(--fw-semibold); }
  .footer-links a { font-weight: var(--fw-semibold); }
}

/* Mobile footer: stack links vertically */
@media (max-width: 767px) {
  .footer-links { flex-direction: column; align-items: stretch; }
  .footer-links a { display: block; width: 100%; text-align: center; padding: 6px 0; }
}
