/*
Theme Name: gigabet Editorial
Theme URI: https://gigabet.buzz/
Author: gigabet
Description: Tema editorial independente em português do Brasil.
Version: 1.0.5
Text Domain: gigabet
*/

:root {
  --bg: #07110e;
  --bg-soft: #0d1b17;
  --surface: #12241e;
  --surface-hover: #183027;
  --lime: #b8f34a;
  --cyan: #3dd6c6;
  --text: #f3f8f5;
  --muted: #afc2b8;
  --border: #29453a;
  --warning: #f0b44d;
  --focus: #d3ff7c;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  --site-width: 1200px;
  --reading-width: 800px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 9%, rgba(61, 214, 198, 0.08), transparent 27rem),
    radial-gradient(circle at 88% 22%, rgba(184, 243, 74, 0.07), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  max-width: 100%;
  overflow-x: clip;
  overflow-wrap: break-word;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.screen-reader-text:focus {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--lime);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
}

.site-shell {
  width: min(calc(100% - 40px), var(--site-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 66px;
  background: rgba(7, 17, 14, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.site-brand__logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 150px;
  object-fit: contain;
}

.site-brand:hover {
  color: var(--text);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: var(--surface);
  color: var(--text);
}

.menu-toggle,
.menu-close {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }

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

.site-hero {
  padding: 72px 0 58px;
  border-bottom: 1px solid var(--border);
}

.site-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.site-hero__copy,
.site-hero__visual {
  min-width: 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lime);
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.13;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 4.4vw, 3.9rem);
  letter-spacing: -0.052em;
}

.site-hero__subtitle {
  margin: 22px 0 12px;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.site-hero__intro {
  color: var(--muted);
}

.site-hero__visual {
  position: relative;
}

.site-hero__visual::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(184, 243, 74, 0.18);
  border-radius: calc(var(--radius) + 8px);
  transform: rotate(1.5deg);
}

.site-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 36, 30, 0.72), rgba(7, 17, 14, 0));
}

.article-header__inner,
.article-body {
  width: min(calc(100% - 40px), var(--reading-width));
  margin-inline: auto;
}

.article-header h1 {
  max-width: 800px;
  font-size: clamp(2.3rem, 5vw, 4.15rem);
}

.article-lead {
  max-width: 750px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.article-body {
  padding-block: 28px 72px;
}

.article-body > .back-link:first-child {
  margin: 0 0 28px;
}

.back-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.back-link a::before {
  content: "←";
  margin-right: 8px;
  color: var(--lime);
}

.content-section {
  padding-block: 44px;
  border-bottom: 1px solid var(--border);
}

.content-section:last-child {
  border-bottom: 0;
}

.content-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
}

.content-section h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.content-section p,
.content-section ul,
.content-section ol {
  margin-top: 0;
  margin-bottom: 1.1em;
}

.content-section p:last-child,
.content-section ul:last-child,
.content-section ol:last-child {
  margin-bottom: 0;
}

.content-section--accent {
  margin: 28px -30px;
  padding: 34px 30px;
  background: linear-gradient(145deg, rgba(18, 36, 30, 0.94), rgba(13, 27, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-section--subsection {
  position: relative;
  padding-left: 28px;
}

.content-section--subsection::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--lime), var(--cyan));
}

.home-content {
  width: min(calc(100% - 40px), var(--reading-width));
  margin-inline: auto;
  padding-block: 28px 72px;
}

.media-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  align-items: center;
  gap: 34px;
  margin-inline: calc((min(100vw - 40px, 1080px) - min(100vw - 40px, 800px)) / -2);
  padding-inline: 0;
}

.media-section__copy,
.section-illustration {
  min-width: 0;
}

.section-illustration {
  margin: 30px 0 0;
}

.section-illustration__image {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-illustration--wide {
  margin-top: 34px;
}

.table-scroll {
  max-width: 100%;
  margin: 28px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.91rem;
  line-height: 1.5;
}

th,
td {
  padding: 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text);
  background: var(--surface);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.check-list {
  padding: 0;
  list-style: none;
  counter-reset: checklist;
}

ol.check-list li {
  counter-increment: checklist;
}

.check-list li {
  position: relative;
  min-height: 46px;
  margin: 0 0 12px;
  padding: 10px 12px 10px 52px;
  color: var(--text);
  background: rgba(7, 17, 14, 0.62);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 9px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--bg);
  background: var(--lime);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

ol.check-list li::before {
  content: counter(checklist);
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--bg);
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.text-action:hover {
  color: var(--bg);
  background: var(--focus);
  transform: translateY(-2px);
}

.text-action span {
  margin-left: 8px;
}

.scope-note {
  margin: 42px 0 0;
  padding: 24px;
  color: var(--muted);
  background: rgba(240, 180, 77, 0.08);
  border: 1px solid rgba(240, 180, 77, 0.42);
  border-radius: var(--radius);
}

.scope-note p {
  margin: 0 0 10px;
}

.scope-note p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 52px 0 32px;
  background: #050d0b;
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.91rem;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.91rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

.site-footer__bottom {
  margin-top: 38px;
  padding-top: 22px;
  color: #81978c;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

body {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

.site-bottom-cta {
  position: fixed;
  z-index: 9990;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 32px), 620px);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.menu-open .site-bottom-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 10px;
  background: rgba(7, 17, 14, 0.94);
  border: 1px solid rgba(184, 243, 74, 0.28);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-bottom-cta__login {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.site-bottom-cta__login:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.site-bottom-cta__register {
  color: var(--bg);
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(184, 243, 74, 0.24);
}

.site-bottom-cta__register:hover {
  color: var(--bg);
  background: var(--focus);
  box-shadow: 0 10px 26px rgba(184, 243, 74, 0.34);
  transform: translateY(-2px);
}

.not-found {
  width: min(calc(100% - 40px), var(--reading-width));
  margin-inline: auto;
  padding: 100px 0;
  text-align: center;
}

.not-found h1 {
  margin-inline: auto;
}

.not-found p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-hero__grid,
  .media-section,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-hero {
    padding-top: 52px;
  }

  .media-section {
    margin-inline: 0;
  }

  .content-section--accent {
    margin-inline: 0;
  }

  .site-hero__visual::before {
    inset: 0;
    transform: none;
  }

  .menu-toggle,
  .menu-close {
    display: inline-flex;
  }

  .menu-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.7rem;
    line-height: 1;
  }

  .primary-nav {
    position: fixed;
    z-index: 110;
    inset: 0 0 0 auto;
    width: min(88vw, 380px);
    padding: 78px 18px 24px;
    background: var(--bg-soft);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 46px rgba(0, 0, 0, 0.42);
    display: none;
    transform: none;
    visibility: hidden;
  }

  .primary-nav.is-open {
    display: block;
    visibility: visible;
  }

  .primary-nav ul {
    display: block;
  }

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

  .primary-nav a {
    min-height: 52px;
    padding-inline: 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .nav-overlay {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.64);
  }

  .nav-overlay.is-open {
    display: block;
  }

  .no-js .site-header__inner {
    flex-wrap: wrap;
    padding-block: 8px;
  }

  .no-js .menu-toggle,
  .no-js .menu-close,
  .no-js .nav-overlay {
    display: none;
  }

  .no-js .primary-nav {
    position: static;
    display: block;
    width: 100%;
    padding: 0;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .no-js .primary-nav ul {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-shell,
  .article-header__inner,
  .article-body,
  .home-content,
  .not-found {
    width: min(calc(100% - 32px), var(--site-width));
  }

  .site-header,
  .site-header__inner {
    min-height: 58px;
  }

  .site-brand__logo {
    height: 32px;
    max-width: 128px;
  }

  .site-hero {
    padding: 42px 0 38px;
  }

  .site-hero__grid {
    gap: 30px;
  }

  h1,
  .article-header h1 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .article-header {
    padding: 46px 0 34px;
  }

  .article-lead {
    font-size: 1.04rem;
  }

  .article-body,
  .home-content {
    padding-block: 16px 48px;
  }

  .content-section {
    padding-block: 36px;
  }

  .content-section--accent {
    margin: 18px 0;
    padding: 24px 18px;
  }

  .content-section--subsection {
    padding-left: 20px;
  }

  .section-illustration {
    margin-top: 24px;
  }

  .scope-note {
    padding: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .site-bottom-cta {
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
  }

  .site-bottom-cta__inner {
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .site-bottom-cta__button {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  table {
    min-width: 590px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
