/* ==========================================================================
   THeusvsilv — Xbox Classic / 360 Aero Glass Design System
   Inspirado no visual histórico do Xbox 360 & dashboard Blade.
   Glows esmeralda, reflexos Aero com bevels 3D, noise fractal e dark craft.
   ========================================================================== */

/* =========================================
   1. TOKENS DE DESIGN
========================================= */

:root {
  color-scheme: dark;

  /* Cores estruturais (Xbox Dark Glass) */
  --bg: #080a08;
  --bg-secondary: #101410;
  --surface: rgba(18, 23, 18, 0.84);
  --surface-solid: #121712;
  --surface-hover: rgba(28, 40, 28, 0.94);

  --text: #f5f7f3;
  --muted: #a1aaa0;
  --subtle: #717a70;

  /* Cores Xbox (Esmeralda, Lime e Metal) */
  --green: #107c10;
  --green-light: #52e052;
  --green-dark: #064d06;
  --xbox-lime: #9bf00b;
  --metal: #c4cbc2;

  --border: rgba(82, 224, 82, 0.2);
  --glass-border: rgba(208, 225, 204, 0.2);

  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --aero-glow: 0 0 16px rgba(16, 124, 16, 0.28);
  --aero-glow-strong: 0 0 24px rgba(82, 224, 82, 0.45);

  --radius: 12px;
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --content-width: 1200px;

  /* Tipografia oficial do template */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-code: "JetBrains Mono", monospace;
  --font-mono: "JetBrains Mono", monospace;

  /* Aliases compatíveis com o código do site */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-raised: var(--surface-hover);
  --color-accent: var(--green);
  --color-accent-bright: var(--green-light);
  --color-accent-soft: rgba(82, 224, 82, 0.15);
  --color-text: var(--text);
  --color-text-secondary: var(--muted);
  --color-border: var(--border);
  --color-border-soft: rgba(82, 224, 82, 0.12);
  --color-code-bg: #0a110a;
  --shadow-glow: var(--aero-glow-strong);
  --shadow-glow-soft: var(--aero-glow);
  --shadow-card: var(--shadow);
  --shadow-overlay: 0 16px 48px rgba(0, 0, 0, 0.85);

  /* Blades Xbox 360 */
  --blade-border: rgba(190, 225, 185, 0.3);
  --blade-bg: rgba(20, 32, 26, 0.75);
  --blade-bg-hover: rgba(26, 46, 34, 0.90);
  --blade-active-from: #15803d;
  --blade-active-to: #107c10;
  --blade-bar-bg: rgba(8, 11, 8, 0.82);

  /* Categorias vibrantes */
  --cat-relatos: #9bf00b;
  --cat-vida-tech: #52e052;
  --cat-criacoes-literarias: #86efac;
  --cat-fotografias: #4ade80;
  --cat-reviews-jogos: #9bf00b;
  --cat-textos-aleatorios: #a7f3d0;
  --cat-vida-religiosa: #22c55e;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  --container: 72rem;
  --container-text: 44rem;
  --gutter: 1.25rem;
  --tap: 42px;

  /* Z-Index */
  --z-header: 100;
  --z-nav: 90;
  --z-blade-bar: 80;
  --z-overlay: 1000;

  /* Dimensões estruturais fixas */
  --header-height: 68px;
  --blade-bar-height: 48px;

  /* Escala de movimento oficial (SKILL.md Motion Standard) */
  --motion-instant: 120ms;
  --motion-fast: 180ms;
  --motion-normal: 260ms;
  --motion-emphasis: 400ms;
  --motion-decorative: 8s;

  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-decelerate: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pressed: ease-out;

  /* Transição suave compatível */
  --ease: var(--ease-standard);
  --transition: var(--motion-fast) var(--ease-standard);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #f2f5f0;
  --bg-secondary: #e8eee5;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-hover: rgba(239, 249, 235, 0.98);

  --text: #101810;
  --muted: #4d594b;
  --subtle: #707b6e;

  --green: #107c10;
  --green-light: #27a927;
  --green-dark: #075907;
  --xbox-lime: #6baf00;
  --metal: #657064;

  --border: rgba(16, 124, 16, 0.17);
  --glass-border: rgba(255, 255, 255, 0.95);

  --shadow: 0 12px 32px rgba(24, 50, 20, 0.12);
  --aero-glow: 0 0 14px rgba(16, 124, 16, 0.12);
  --aero-glow-strong: 0 0 20px rgba(16, 124, 16, 0.22);

  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-raised: var(--surface-hover);
  --color-accent: var(--green);
  --color-accent-bright: #15803d;
  --color-accent-soft: rgba(16, 124, 16, 0.10);
  --color-text: var(--text);
  --color-text-secondary: var(--muted);
  --color-border: var(--border);
  --color-border-soft: rgba(16, 124, 16, 0.10);
  --color-code-bg: #eaf1e8;
  --shadow-glow: var(--aero-glow-strong);
  --shadow-glow-soft: var(--aero-glow);
  --shadow-card: 0 4px 16px rgba(20, 50, 20, 0.08), 0 0 0 1px var(--color-border);
  --shadow-overlay: 0 16px 40px rgba(0, 0, 0, 0.25);

  --blade-border: rgba(70, 145, 60, 0.35);
  --blade-bg: rgba(240, 249, 243, 0.85);
  --blade-bg-hover: rgba(220, 242, 228, 0.95);
  --blade-active-from: #15803d;
  --blade-active-to: #107c10;
  --blade-bar-bg: rgba(242, 245, 240, 0.92);
}

/* =========================================
   2. RESET & BASE
========================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--blade-bar-height) + 16px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      ellipse at 10% 0%,
      rgba(16, 124, 16, 0.16),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 90% 20%,
      rgba(82, 224, 82, 0.07),
      transparent 32%
    ),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Textura fractal de grão de filme estilo dashboard */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

p,
li {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--xbox-lime);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  color: #ffffff;
  background: var(--green-dark);
}

/* Scrollbar estilo Xbox */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(82, 224, 82, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 240, 11, 0.65);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  background-color: var(--color-code-bg);
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* =========================================
   3. UTILITÁRIOS & ESTRUTURA
========================================= */

.container {
  width: min(100% - 32px, var(--content-width));
  margin-inline: auto;
}

.container--text {
  max-width: var(--container-text);
}

.mono {
  font-family: var(--font-code);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-overlay);
  padding: var(--space-3) var(--space-5);
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
  outline-color: var(--xbox-lime);
}

main:focus {
  outline: none;
}

.section {
  margin-block: var(--space-7);
}

.section-heading,
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title,
.section__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-kicker {
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.section__link {
  font-family: var(--font-code);
  font-size: 0.8125rem;
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}

.section__link:hover {
  color: var(--xbox-lime);
}

/* =========================================
   4. VIDRO AERO (GLASSMORPHISM)
========================================= */

.glass {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

/* =========================================
   5. CABEÇALHO & BRAND MARK JEWEL
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  padding: 0;
  background: rgba(8, 11, 8, 0.84);
  border-bottom: 1px solid rgba(82, 224, 82, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  animation: header-in var(--motion-emphasis) var(--ease-decelerate) both;
}

[data-theme="light"] .site-header {
  background: rgba(242, 245, 240, 0.88);
  border-color: rgba(16, 124, 16, 0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

/* Marca 3D Jewel Xbox Classic / 360 */
.brand-mark,
.brand__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(194, 255, 194, 0.7);
  border-radius: 9px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  background:
    linear-gradient(
      180deg,
      #d6ffd6 0%,
      #76ef76 12%,
      #27a927 48%,
      #075907 52%,
      #107c10 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(16, 124, 16, 0.25);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Reflexo côncavo de vidro Aero na esfera/jewel */
.brand-mark::before,
.brand__icon::before {
  content: "";
  position: absolute;
  inset: 1px 2px 53%;
  border-radius: 7px 7px 50% 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.08)
  );
  pointer-events: none;
}

.brand:hover .brand-mark,
.brand:hover .brand__icon {
  transform: scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 18px rgba(82, 224, 82, 0.5);
}

.brand-mark span,
.brand__icon span {
  position: relative;
  z-index: 1;
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.brand__th {
  color: var(--xbox-lime);
  text-shadow: 0 0 16px rgba(155, 240, 11, 0.45);
}

[data-theme="light"] .brand__th {
  color: var(--green);
  text-shadow: none;
}

.brand-caption {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* =========================================
   6. BOTÕES AERO (XBOX 360 GREEN GLASS)
========================================= */

.aero-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  overflow: hidden;
  color: #f6fff4;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  border: 1px solid rgba(190, 255, 185, 0.8);
  border-radius: 6px;
  background:
    linear-gradient(
      180deg,
      #d8ffd2 0%,
      #83e878 10%,
      #39bd32 28%,
      #168c16 48%,
      #075907 52%,
      #107c10 76%,
      #1b9b1b 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 50, 0, 0.7),
    0 2px 5px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition:
    filter var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

/* Reflexo côncavo de vidro Aero no botão */
.aero-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 2px 52%;
  border-radius: 4px 4px 50% 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.12)
  );
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .aero-button:hover {
    filter: brightness(1.18);
    box-shadow:
      inset 0 1px 0 #ffffff,
      inset 0 0 8px rgba(255, 255, 255, 0.4),
      0 0 14px rgba(82, 224, 82, 0.55),
      0 3px 7px rgba(0, 0, 0, 0.45);
    transform: translateY(-1.5px);
  }
}

.aero-button:active {
  filter: brightness(0.85);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(0.5px);
}

.aero-button:focus-visible {
  outline: 2px solid var(--xbox-lime);
  outline-offset: 2px;
}

/* Variante Verde Vibrante (Green) */
.aero-button.green {
  color: #ffffff;
  border-color: rgba(210, 255, 205, 0.95);
  background:
    linear-gradient(
      180deg,
      #e2ffdc 0%,
      #9bf58b 10%,
      #52e052 28%,
      #20a920 48%,
      #075907 52%,
      #107c10 78%,
      #21a321 100%
    );
}

.aero-button.green:hover {
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 0 8px rgba(255, 255, 255, 0.45),
    0 0 14px rgba(34, 197, 94, 0.5),
    0 3px 7px rgba(0, 0, 0, 0.4);
}

/* Botão ícone quadrado */
.icon-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.1rem;
}

/* Botões Aero no Tema Claro */
[data-theme="light"] .aero-button {
  color: #103810;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  border-color: rgba(65, 155, 55, 0.55);
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #e9ffe5 18%,
      #b8efad 48%,
      #83d879 52%,
      #c9f3c1 100%
    );
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(25, 100, 15, 0.22),
    0 2px 5px rgba(30, 70, 20, 0.18);
}

[data-theme="light"] .aero-button.green {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(
      180deg,
      #e1ffdc 0%,
      #8eec80 18%,
      #40bf35 48%,
      #168016 52%,
      #3cb832 100%
    );
}

/* Alternador Noturno / Claro */
.theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

/* Botão hambúrguer no mobile */
.nav-toggle {
  display: inline-flex;
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================
   7. NAVEGAÇÃO BLADES (XBOX 360 DASHBOARD)
========================================= */

.blade-bar {
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-blade-bar);
  background: var(--blade-bar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(82, 224, 82, 0.16);
}

.blade-bar__inner {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.blade-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 1px 7px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.blade-nav::-webkit-scrollbar {
  display: none;
}

/* Componente individual da aba Blade */
.blade,
.blade-bar__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  flex: 0 0 auto;
  overflow: hidden;
  color: #edffeb;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid rgba(190, 225, 185, 0.3);
  border-radius: 7px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.08) 10%,
      rgba(78, 130, 68, 0.2) 48%,
      rgba(13, 35, 13, 0.8) 52%,
      rgba(30, 65, 25, 0.68) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition:
    filter var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}

/* Reflexo Aero em arco no topo da blade */
.blade::before,
.blade-bar__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 2px 50%;
  border-radius: 5px 5px 50% 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.09) 65%,
    transparent
  );
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .blade:hover,
  .blade-bar__link:hover {
    filter: brightness(1.25);
    border-color: rgba(196, 255, 184, 0.85);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 0 10px rgba(120, 255, 100, 0.16),
      0 0 12px rgba(82, 224, 82, 0.4),
      0 3px 7px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
  }
}

.blade:active,
.blade-bar__link:active {
  transform: translateY(0.5px);
  filter: brightness(0.9);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.blade:focus-visible,
.blade-bar__link:focus-visible {
  outline: 2px solid var(--xbox-lime);
  outline-offset: 2px;
}

/* Blade Ativa (Verde Esmeralda Radiante Xbox 360) */
.blade.active,
.blade-bar__link.active,
.blade-bar__link[aria-current="page"] {
  color: #ffffff;
  border-color: rgba(192, 255, 180, 0.95);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0.2) 12%,
      rgba(120, 245, 100, 0.88) 34%,
      rgba(40, 175, 35, 0.96) 48%,
      rgba(5, 75, 5, 0.98) 52%,
      rgba(16, 124, 16, 0.95) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 55, 0, 0.65),
    0 0 13px rgba(82, 224, 82, 0.38),
    0 3px 7px rgba(0, 0, 0, 0.45);
}

.blade__icon {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--xbox-lime);
}

.blade.active .blade__icon,
.blade-bar__link[aria-current="page"] .blade__icon {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Blades no Tema Claro */
[data-theme="light"] .blade,
[data-theme="light"] .blade-bar__link {
  color: #163916;
  text-shadow: none;
  border-color: rgba(70, 145, 60, 0.35);
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #edffea 48%,
      #c5edbd 52%,
      #e2f8dc 100%
    );
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(56, 126, 65, 0.25),
    0 2px 5px rgba(30, 70, 30, 0.18);
}

[data-theme="light"] .blade.active,
[data-theme="light"] .blade-bar__link.active,
[data-theme="light"] .blade-bar__link[aria-current="page"] {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-color: #83d77b;
  background:
    linear-gradient(
      180deg,
      #edffe9 0%,
      #a4ef95 28%,
      #4ab83d 48%,
      #086408 52%,
      #168b16 100%
    );
}

/* Painel de navegação móvel (quando dropdown aberto) */
.site-nav {
  flex: 1 0 100%;
  order: 3;
  padding-block: var(--space-2) var(--space-3);
}

.js .site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: none;
  padding: var(--space-3) var(--gutter) var(--space-4);
  background: rgba(10, 15, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-overlay);
}

[data-theme="light"] .js .site-nav {
  background: rgba(245, 248, 243, 0.98);
  border-bottom-color: rgba(16, 124, 16, 0.2);
}

.js .site-nav.is-open {
  display: block;
  animation: view-in var(--motion-fast) var(--ease-decelerate) both;
}

.site-nav__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.site-nav__link:hover {
  border-color: var(--green-light);
  background: var(--surface-hover);
  box-shadow: var(--aero-glow);
}

[data-theme="light"] .site-nav__link {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(16, 124, 16, 0.2);
}

[data-theme="light"] .site-nav__link:hover {
  background: #eaf5e7;
  border-color: var(--green);
}

.site-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-color, var(--green-light));
}

/* =========================================
   7b. REDES SOCIAIS (padrão aero-icon)
   Os links usam .aero-button.icon-button (38x38 vidro verde) e herdam
   hover glow, active, focus-visible e tema claro automaticamente.
   Variante --panel: dentro do dropdown do nav (visível <768px).
   Variante --header: inline nas ações do header (visível ≥768px).
   Somente uma variante é renderizada/exposta por vez (CSS controla).
========================================= */
.social-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-links--panel {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

/* Mobile first: a variante do header só entra no breakpoint ≥768px */
.social-links--header {
  display: none;
}

.social-links__icon {
  display: block;
  width: 18px;
  height: 18px;
}

/* =========================================
   8. HERO SECTION (XBOX EMERALD GLASS)
========================================= */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: var(--space-6);
  margin-bottom: var(--space-7);
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid rgba(160, 230, 150, 0.25);
  border-radius: 15px;
  background:
    radial-gradient(
      ellipse at 90% 10%,
      rgba(82, 224, 82, 0.2),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(18, 43, 18, 0.96),
      rgba(10, 16, 10, 0.95) 58%,
      rgba(20, 35, 17, 0.92)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 18px 45px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: rise-in 0.8s 0.08s ease both;
}

[data-theme="light"] .hero {
  border-color: rgba(16, 124, 16, 0.2);
  background:
    radial-gradient(
      ellipse at 90% 10%,
      rgba(82, 224, 82, 0.16),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #e7ffe4 0%,
      #ffffff 55%,
      #edf8e9 100%
    );
}

/* Orbe Esmeralda Flutuante no Fundo */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -95px;
  right: -75px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(155, 240, 11, 0.14);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(82, 224, 82, 0.13),
    transparent 70%
  );
  box-shadow:
    0 0 0 25px rgba(82, 224, 82, 0.025),
    0 0 0 55px rgba(82, 224, 82, 0.02);
  animation: orb-float 8s ease-in-out infinite;
  pointer-events: none;
}

/* Linha de brilho superior */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  opacity: 0.55;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #a6f59b;
  font-family: var(--font-code);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="light"] .eyebrow {
  color: #15803d;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 10px var(--green-light);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__title {
  margin: 0 0 15px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.45rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.hero__title span {
  color: var(--xbox-lime);
  text-shadow: 0 0 24px rgba(155, 240, 11, 0.22);
}

[data-theme="light"] .hero__title span {
  color: #107c10;
  text-shadow: none;
}

.hero__lead {
  max-width: 540px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  padding-top: 17px;
  border-top: 1px solid rgba(180, 230, 210, 0.15);
  color: var(--muted);
  font-family: var(--font-code);
  font-size: 0.68rem;
}

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

/* =========================================
   9. CARDS DE POSTAGEM & BADGES
========================================= */

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.post-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 240px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(190, 225, 185, 0.2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 12px 35px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    transform var(--motion-normal) var(--ease-standard),
    border-color var(--motion-normal) var(--ease-standard),
    background var(--motion-normal) var(--ease-standard),
    box-shadow var(--motion-normal) var(--ease-standard);
  animation: rise-in var(--motion-emphasis) var(--ease-decelerate) both;
}

/* Linha sutil de brilho superior */
.post-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  opacity: 0.4;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-standard);
}

/* Escalonamento sutil de entrada nos cards */
.post-card:nth-child(1) { animation-delay: 0.04s; }
.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.12s; }
.post-card:nth-child(4) { animation-delay: 0.16s; }
.post-card:nth-child(5) { animation-delay: 0.20s; }
.post-card:nth-child(6) { animation-delay: 0.24s; }

/* Card com Capa (Mídia Visual) */
.post-card--has-cover {
  padding: 0;
}

.post-card__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0d120d;
}

.post-card__cover {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 210px;
  overflow: hidden;
  text-decoration: none;
}

.post-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--motion-normal) var(--ease-standard);
}

/* Scrim protetor para badges e ícones sobre a imagem */
.post-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 6, 0.78) 0%,
    rgba(6, 10, 6, 0.25) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Badges sobrepostos no topo da capa */
.post-card-top--overlay {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 2;
  margin-bottom: 0;
  pointer-events: none;
}

.post-card-top--overlay .post-icon,
.post-card-top--overlay .post-card-badges,
.post-card-top--overlay .tag,
.post-card-top--overlay .post-card__badge {
  pointer-events: auto;
}

/* Corpo do card (título, texto e rodapé) */
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.post-card--has-cover .post-card__body {
  padding: 18px 20px 20px;
}

/* Barra superior do card padrão (sem capa) */
.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.post-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* Ícone com estética Aero 360 */
.post-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #b5fca8;
  font-size: 1.1rem;
  border: 1px solid rgba(155, 240, 11, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16),
      rgba(16, 124, 16, 0.24) 48%,
      rgba(5, 60, 5, 0.6) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.3);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

[data-theme="light"] .post-icon {
  color: #107c10;
  border-color: rgba(16, 124, 16, 0.22);
  background:
    linear-gradient(
      180deg,
      #ffffff,
      #eaffdf 48%,
      #c8efbe 52%,
      #e2f8dc
    );
}

.post-card__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.post-card__title a {
  text-decoration: none;
  color: var(--text);
  transition: color var(--motion-fast) var(--ease-standard);
}

.post-card__title a:hover {
  color: var(--green-light);
}

.post-card__summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer,
.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Link de leitura com seta animada */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #76ed63;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    gap var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

/* Estados de Hover em Dispositivos com Ponteiro Fino (SKILL.md) */
@media (hover: hover) and (pointer: fine) {
  .post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(82, 224, 82, 0.5);
    background: var(--surface-hover);
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.35),
      0 0 18px rgba(16, 124, 16, 0.22);
  }

  .post-card:hover::before {
    opacity: 0.9;
  }

  .post-card:hover .post-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 0 12px rgba(82, 224, 82, 0.3);
  }

  .post-card:hover .post-card__cover img {
    transform: scale(1.04);
  }

  .post-card:hover .read-link {
    gap: 9px;
    color: #b5ff9e;
  }

  [data-theme="light"] .post-card:hover .read-link {
    color: #27a927;
  }
}

.read-link:hover {
  gap: 9px;
  color: #b5ff9e;
}

[data-theme="light"] .read-link {
  color: #107c10;
}

[data-theme="light"] .read-link:hover {
  color: #27a927;
}

/* Post em destaque */
.post-card--featured {
  border-color: rgba(82, 224, 82, 0.35);
  background: rgba(18, 28, 20, 0.9);
}

/* Badges e Etiquetas (Green Glass Badges) */
.tag,
.category-label,
.badge,
.post-card__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 28px;
  box-sizing: border-box;
  overflow: hidden;
  color: #e2ffe0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(165, 225, 155, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.08) 45%,
      rgba(45, 125, 38, 0.28) 55%,
      rgba(10, 48, 10, 0.68) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all var(--motion-fast) var(--ease-standard);
}

.tag:hover {
  filter: brightness(1.2);
  border-color: rgba(195, 255, 180, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 10px rgba(82, 224, 82, 0.4);
}

.category-label.featured,
.post-card__badge,
.badge.active {
  color: #ffffff;
  border: 1px solid rgba(195, 255, 180, 0.85);
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 28px;
  box-sizing: border-box;
  font-weight: 700;
  background:
    linear-gradient(
      180deg,
      rgba(225, 255, 215, 0.65) 0%,
      rgba(105, 230, 85, 0.85) 28%,
      rgba(35, 160, 25, 0.9) 48%,
      rgba(5, 80, 5, 0.95) 52%,
      rgba(16, 124, 16, 0.9) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 10px rgba(34, 197, 34, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.post-card__badge .badge__icon,
.badge .badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

[data-theme="light"] .tag,
[data-theme="light"] .category-label,
[data-theme="light"] .badge {
  color: #1d511a;
  text-shadow: none;
  border-color: rgba(70, 145, 60, 0.35);
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #efffeb 48%,
      #c5edbd 52%,
      #e2f8dc 100%
    );
}

[data-theme="light"] .category-label.featured,
[data-theme="light"] .post-card__badge,
[data-theme="light"] .badge.active {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  border: 1px solid #63ca5a;
  border-radius: 999px;
  padding: 6px 14px;
  min-height: 28px;
  box-sizing: border-box;
  background:
    linear-gradient(
      180deg,
      #dfffda 0%,
      #a4ef95 28%,
      #4ab83d 48%,
      #086408 52%,
      #168b16 100%
    );
}

/* Metadados */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--muted);
}

.meta__sep {
  color: var(--border);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================
   10. PÁGINA DE LEITURA (POST & PROSE)
========================================= */

.post {
  padding-block: var(--space-6);
}

.post__header,
.post__body {
  max-width: var(--container-text);
  margin-inline: auto;
}

.post__footer {
  max-width: var(--container);
  margin-inline: auto;
}

.post__header {
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.post__title {
  font-size: clamp(1.875rem, 6.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.post__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.post__tags li {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(82, 224, 82, 0.05);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
}

.prose h2,
.prose h3 {
  margin-top: var(--space-6);
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: 1.55rem;
  color: var(--green-light);
}

[data-theme="light"] .prose h2 {
  color: var(--green-dark);
}

.prose a {
  color: var(--green-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--xbox-lime);
}

.prose blockquote {
  position: relative;
  overflow: hidden;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prose blockquote::before {
  content: "“";
  position: absolute;
  top: -15px;
  right: 12px;
  color: rgba(82, 224, 82, 0.15);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  pointer-events: none;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
}

.prose pre {
  background: var(--color-code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

.prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

/* =========================================
   11. ARQUIVO & CATEGORIAS
========================================= */

.page-head {
  padding-block-start: var(--space-6);
  margin-bottom: var(--space-4);
}

.page-head__title {
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
}

.page-head__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.archive-list {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.archive-list__item a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  min-height: var(--tap);
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.archive-list__item a:hover {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--aero-glow);
}

.archive-list__title {
  color: var(--text);
  font-size: 1rem;
}

.archive-list__item a:hover .archive-list__title {
  color: var(--green-light);
}

.archive-list__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Navegação entre posts */
.post-nav {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.post-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  min-height: var(--tap);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.post-nav a:hover {
  border-color: var(--green-light);
  box-shadow: var(--aero-glow);
}

.post-nav__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.post-nav__title {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* =========================================
   12. CARROSSEL & LIGHTBOX
========================================= */

.carousel__track {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-1);
  margin: calc(var(--space-1) * -1);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.carousel__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-md);
  cursor: zoom-in;
}

.carousel__caption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--green-light);
  color: var(--xbox-lime);
}

.carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
}

.carousel__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background-color var(--transition), transform var(--transition);
}

.carousel__dot[aria-current="true"]::before {
  background: var(--xbox-lime);
  transform: scale(1.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(8, 10, 8, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  animation: lightbox-fade-in var(--motion-fast) var(--ease-decelerate) both;
}

.lightbox:not([hidden]) .lightbox__figure {
  animation: lightbox-zoom-in var(--motion-normal) var(--ease-decelerate) both;
}

.lightbox__figure {
  position: relative;
  max-width: min(64rem, 100%);
}

.lightbox__figure img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
}

.lightbox__close:hover {
  color: var(--xbox-lime);
  border-color: var(--xbox-lime);
}

/* =========================================
   13. RODAPÉ
========================================= */

.site-footer {
  margin-top: auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(8, 11, 8, 0.6);
}

[data-theme="light"] .site-footer {
  background: rgba(242, 245, 240, 0.7);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--green-light);
}

/* =========================================
   14. ANIMAÇÕES
========================================= */

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 9px rgba(82, 224, 82, 0.85);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 3px rgba(82, 224, 82, 0.35);
  }
}

@keyframes orb-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12px, 14px) scale(1.05);
  }
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================
   15. BREAKPOINTS PROGRESSIVOS
========================================= */

@media (min-width: 480px) {
  :root {
    --gutter: 1.5rem;
  }

  .hero {
    padding: 36px 30px;
  }
}

@media (min-width: 768px) {
  .site-header__inner {
    gap: var(--space-5);
  }

  .nav-toggle {
    display: none;
  }

  .site-header .site-nav {
    display: none !important;
  }

  /* Exibe a faixa de abas no desktop */
  .blade-bar__inner {
    display: flex;
    align-items: center;
  }

  /* Sociais inline no header (desktop): variante --header assume,
     variante --panel (dentro do nav oculto) sai da árvore visível */
  .social-links--header {
    display: flex;
    flex-wrap: nowrap;
  }

  .social-links--panel {
    display: none;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .post-grid--featured > :first-child {
    grid-column: 1 / -1;
  }

  .post-grid--featured > :first-child .post-card__title {
    font-size: 1.45rem;
  }

  .post-nav {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .archive-list__item a {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .carousel__slide {
    flex-basis: calc(50% - var(--space-4) / 2);
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
  }

  .hero {
    padding: 46px 42px;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-grid--featured > :first-child {
    grid-row: span 2;
    padding: 26px;
  }

  .post-grid--featured > :first-child .post-card__title {
    font-size: 1.7rem;
  }
}

/* =========================================
   16. MOVIMENTO REDUZIDO & IMPRESSÃO
========================================= */

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

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

  .post-card:hover,
  .post-card:hover .post-icon,
  .post-card:hover .post-card__cover img,
  .post-card:hover .read-link,
  .aero-button:hover,
  .aero-button:active,
  .blade:hover,
  .blade:active,
  .blade-bar__link:hover,
  .blade-bar__link:active {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .blade-bar,
  .site-footer,
  .post-nav,
  .carousel__controls,
  .skip-link {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #111111;
  }
}
