/* ==========================================================================
   BASE — Nikolas Ferreira / Blog Magazine
   Reset leve, tokens da marca, tipografia base e header.
   Stack Maturare: HTML/CSS/JS estatico (Eleventy), sem Astro/Tailwind.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --nk-yellow: #FFCC00;
  --nk-green: #00A859;
  --nk-blue: #1E50A2;
  --nk-blue-dark: #1E50A2;
  --nk-blue-brand: #1E50A2;
  --nk-red-tag: #e74c5e;
  --nk-ink: #111111;
  --nk-header-h: 72px;
  --nk-max: 1440px;
  --nk-font: 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* ---- Reset leve ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #08160c;
  color: #fff;
  font-family: var(--nk-font);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---- Acessibilidade ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--nk-blue-brand); color: #fff;
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   HEADER / MENU SUPERIOR (duas faixas: amarela + verde, bloco azul da marca)
   ========================================================================== */
.nk-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  height: var(--nk-header-h); font-family: var(--nk-font);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nk-header__bg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  pointer-events: none;
}
.nk-header__bg-yellow { height: 38%; background: var(--nk-yellow); }
.nk-header__bg-green  { flex: 1;   background: var(--nk-green); }

.nk-header__inner {
  position: relative; z-index: 2;
  max-width: var(--nk-max); margin: 0 auto;
  height: 100%; display: flex; align-items: stretch;
  padding: 0 20px;
}

/* Bloco azul da marca */
.nk-brand-container { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.nk-brand {
  background: var(--nk-blue);
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; flex-shrink: 0; height: 100%;
  text-decoration: none; color: #fff;
  box-shadow: 4px 0 10px rgba(0,0,0,.12);
}
.nk-brand:hover { background: var(--nk-blue-dark); }
.nk-brand__img { height: 46px; width: auto; object-fit: contain; }

/* Elemento flutuante /blog */
.nk-blog-float {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  margin-left: -14px; font-size: 72px; font-weight: 900; font-style: italic;
  color: #fff; letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  z-index: 30; pointer-events: none; user-select: none; white-space: nowrap;
}

/* Lado direito (nav) */
.nk-nav-side { flex: 1; display: flex; flex-direction: column; justify-content: stretch; min-width: 0; }

/* Faixa amarela (topo) */
.nk-strip-yellow {
  height: 38%; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 16px; font-size: 13px; font-weight: 700; color: var(--nk-blue-brand); white-space: nowrap;
}
.nk-strip-yellow .nk-phrase { opacity: .85; margin-right: 4px; }
.nk-strip-yellow a {
  color: var(--nk-blue-brand); text-decoration: none; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em; transition: color .2s;
}
.nk-strip-yellow a:hover { color: var(--nk-blue); }
.nk-strip-yellow .nk-sep { opacity: .35; margin: 0 1px; font-weight: 400; }

/* Faixa verde (baixo) */
.nk-strip-green {
  flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 0 16px; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow-x: auto;
}
.nk-strip-green a { color: #fff; text-decoration: none; transition: color .2s; }
.nk-strip-green a:hover { color: var(--nk-yellow); }
.nk-strip-green .nk-sep { opacity: .5; font-weight: 300; margin: 0 2px; }

@media (max-width: 768px) {
  :root { --nk-header-h: 62px; }
  .nk-header { height: 62px; }
  .nk-brand { padding: 0 10px; }
  .nk-brand__img { height: 34px; }
  .nk-blog-float { font-size: 49px; margin-left: -8px; }
  .nk-strip-yellow { font-size: 10px; padding: 0 8px; gap: 5px; }
  .nk-strip-yellow .nk-phrase { display: none; }
  .nk-strip-green { font-size: 11px; padding: 0 8px; gap: 4px; justify-content: flex-end; }
}
@media (min-width: 1200px) {
  :root { --nk-header-h: 78px; }
  .nk-header { height: 78px; }
  .nk-brand { padding: 0 20px; }
  .nk-brand__img { height: 50px; }
  .nk-blog-float { font-size: 87px; margin-left: -18px; }
  .nk-strip-yellow { font-size: 14px; padding: 0 16px; }
  .nk-strip-green { font-size: 15px; padding: 0 16px; gap: 8px; }
}

/* ==========================================================================
   MENU SANDUÍCHE (mobile / tablet)
   ========================================================================== */
.nk-burger {
  display: none; align-self: center; margin-left: auto;
  width: 34px; height: 30px; padding: 0; flex-shrink: 0;
  border: none; border-radius: 7px; cursor: pointer;
  background: transparent; color: #fff;
  align-items: center; justify-content: center; transition: color .2s;
}
.nk-burger:hover { color: var(--nk-yellow); }
.nk-burger__bars, .nk-burger__bars::before, .nk-burger__bars::after {
  content: ""; display: block; width: 22px; height: 2.5px; border-radius: 3px;
  background: currentColor; transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
.nk-burger__bars { position: relative; }
.nk-burger__bars::before { position: absolute; top: -6px; left: 0; }
.nk-burger__bars::after  { position: absolute; top: 6px; left: 0; }
body.nk-menu-open .nk-burger__bars { background: transparent; }
body.nk-menu-open .nk-burger__bars::before { transform: translateY(6px) rotate(45deg); }
body.nk-menu-open .nk-burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Painel off-canvas (identidade da marca: azul + faixa amarela + branco) */
.nk-drawer { position: fixed; inset: 0; z-index: 9998; visibility: hidden; }
.nk-drawer__backdrop {
  position: absolute; inset: 0; background: rgba(6,12,22,.55);
  opacity: 0; transition: opacity .3s ease;
}
.nk-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(84vw, 320px); background: var(--nk-blue); color: #fff;
  border-top: 5px solid var(--nk-yellow);
  display: flex; flex-direction: column;
  padding: calc(var(--nk-header-h) + 18px) 0 22px;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,.4); overflow-y: auto;
}
body.nk-menu-open .nk-drawer { visibility: visible; }
body.nk-menu-open .nk-drawer__backdrop { opacity: 1; }
body.nk-menu-open .nk-drawer__panel { transform: translateX(0); }

.nk-drawer__label { padding: 0 24px 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nk-yellow); }
.nk-drawer__nav { display: flex; flex-direction: column; }
.nk-drawer__link {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 24px; font-size: 16px; font-weight: 700; color: #fff; text-decoration: none;
  border-left: 3px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.nk-drawer__link .nk-ico { color: var(--nk-yellow); transition: color .2s; }
.nk-drawer__link:hover { background: rgba(255,255,255,.10); border-left-color: var(--nk-yellow); color: var(--nk-yellow); }
.nk-drawer__link[aria-current="page"] { color: var(--nk-yellow); border-left-color: var(--nk-yellow); background: rgba(255,255,255,.08); }

@media (max-width: 980px) {
  .nk-strip-green a, .nk-strip-green .nk-sep { display: none; }
  .nk-strip-green { justify-content: flex-end; gap: 0; }
  .nk-strip-yellow .nk-phrase { display: inline; }
  .nk-burger { display: inline-flex; }
}

/* Icones Lucide inline */
.nk-ico { display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* Badges reutilizaveis (usadas na home e nos artigos) */
.nk-badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.nk-badge--red { background: #e74c5e; }
.nk-badge--blue { background: #1E50A2; }
.nk-badge--green { background: #00A859; }
.nk-badge--yellow { background: #D4A800; color: #111; }

/* ==========================================================================
   BARRA AZUL SUPERIOR (BREADCRUMB DISCRETO: MENOR, ITÁLICO, SEM NEGRITO)
   ========================================================================== */
.nk-page-header {
  background: #1E50A2;
  color: #fff;
  margin-top: var(--nk-header-h);
  padding: 16px 0;
  border-bottom: 3px solid var(--nk-yellow);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  .nk-page-header {
    margin-top: var(--nk-header-h);
    padding: 14px 0;
  }
}
@media (min-width: 1200px) {
  .nk-page-header {
    margin-top: var(--nk-header-h);
    padding: 16px 0;
  }
}
.nk-page-header__inner {
  max-width: var(--nk-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
}

/* Trilha de navegação (Breadcrumb: Menor, Itálico, Sem negrito, Minúsculas normais) */
.nk-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--nk-yellow);
  margin: 0;
  flex-wrap: wrap;
  line-height: 1.4;
}
.nk-breadcrumb a {
  color: var(--nk-yellow);
  text-decoration: none;
  font-weight: 400;
  font-style: italic;
  transition: opacity 0.2s, text-decoration 0.2s;
}
.nk-breadcrumb a:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.nk-breadcrumb span {
  color: var(--nk-yellow);
  font-weight: 400;
  font-style: italic;
}
.nk-breadcrumb .nk-breadcrumb-sep {
  color: rgba(255, 204, 0, 0.7);
  font-style: normal;
  font-weight: 300;
  margin: 0 1px;
}

/* Títulos e descrições no Miolo (Abaixo da Barra Azul) */
.nk-page-intro {
  margin-bottom: 24px;
}
.nk-page-intro h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  color: #1E50A2;
  margin: 0 0 8px;
  line-height: 1.25;
}
.nk-page-intro p {
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* Grid Geral com Sidebar */
.nk-layout-wrap {
  max-width: var(--nk-max);
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.nk-layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  align-items: start;
}
.nk-main-col {
  min-width: 0;
}

/* Sidebar e Widgets */
.nk-sidebar-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nk-header-h) + 20px);
}
.nk-sidebar-widget {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(30, 80, 162, 0.05);
  color: #1e293b;
}
.nk-sidebar-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: #1E50A2;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FFCC00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nk-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nk-sidebar-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform 0.15s ease;
}
.nk-sidebar-item:hover {
  transform: translateX(3px);
}
.nk-sidebar-item img {
  width: 92px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e2e8f0;
}
.nk-sidebar-item h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1E50A2;
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nk-sidebar-item span {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Categorias na Sidebar */
.nk-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nk-sidebar-cat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.18s ease;
}
.nk-sidebar-cat-chip:hover,
.nk-sidebar-cat-chip.is-active {
  background: #1E50A2;
  color: #fff;
  border-color: #1E50A2;
  transform: translateX(3px);
}
.nk-cat-badge-count {
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #1E50A2;
  padding: 2px 7px;
  border-radius: 12px;
}
.nk-sidebar-cat-chip:hover .nk-cat-badge-count,
.nk-sidebar-cat-chip.is-active .nk-cat-badge-count {
  background: #FFCC00;
  color: #111;
}

/* Feed X (Twitter) */
.nk-tweets-container {
  max-height: 380px;
  overflow-y: auto;
  border-radius: 8px;
}
.nk-tweets-fallback {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nk-tweet-item {
  display: block;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  transition: background 0.15s ease;
}
.nk-tweet-item:hover {
  background: #f1f5f9;
}
.nk-tweet-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  margin-bottom: 4px;
}
.nk-tweet-author { color: #0f172a; }
.nk-tweet-handle, .nk-tweet-date { color: #64748b; }
.nk-tweet-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #1e293b;
  margin: 0;
}
.nk-tweet-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1E50A2;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
  background: #f1f5f9;
  transition: all 0.18s ease;
}
.nk-tweet-cta:hover {
  background: #1E50A2;
  color: #fff;
}

/* Card CTA YouTube */
.nk-sidebar-cta {
  background: linear-gradient(135deg, #1E50A2 0%, #163d7d 100%);
  color: #fff;
  border: none;
}
.nk-sidebar-cta h4 {
  font-size: 17px;
  font-weight: 800;
  color: #FFCC00;
  margin: 0 0 8px;
}
.nk-sidebar-cta p {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.45;
  margin-bottom: 16px;
}
.nk-sidebar-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: #FFCC00;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, background 0.15s ease;
}
.nk-sidebar-cta a:hover {
  transform: translateY(-2px);
  background: #ffe066;
}

/* Botões das Redes Sociais na Sidebar */
.nk-sidebar-social {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.nk-ss-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.nk-ss-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.nk-ss-btn svg { width: 20px; height: 20px; }
.nk-ss-btn__txt { font-weight: 900; font-size: 17px; line-height: 1; }
.nk-ss-btn--yt { background: #FF0000; }
.nk-ss-btn--ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.nk-ss-btn--x  { background: #0f172a; }
.nk-ss-btn--tk { background: #010101; }
.nk-ss-btn--fb { background: #1877F2; }
.nk-ss-btn--tg { background: #229ED9; }
.nk-ss-btn--kw { background: #FF6A00; }

/* Miniatura (avatar) nos tweets do fallback */
.nk-tweet-item { display: flex; gap: 10px; align-items: flex-start; }
.nk-tweet-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}
.nk-tweet-body { flex: 1; min-width: 0; }

/* Card Dados do Gabinete (último card, fundo azul e letras brancas) */
.nk-sidebar-gabinete {
  background: linear-gradient(135deg, #1E50A2 0%, #163d7d 100%);
  border: none;
  color: #fff;
}
.nk-sg-header { display: flex; align-items: center; gap: 8px; color: #FFCC00; }
.nk-sg-header h4 { font-size: 16px; font-weight: 800; margin: 0; color: #FFCC00; }
.nk-sg-mandato { display: block; font-size: 12px; color: #cdd9ef; margin: 4px 0 14px; }
.nk-sg-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.nk-sg-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
}
.nk-sg-row:last-child { border-bottom: none; }
.nk-sg-row dt { color: #a9c0e6; font-weight: 700; flex-shrink: 0; }
.nk-sg-row dd { margin: 0; text-align: right; color: #fff; word-break: break-word; }
.nk-sg-row dd a { color: #fff; text-decoration: none; }
.nk-sg-row dd a:hover { text-decoration: underline; }
.nk-sg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  background: #FFCC00;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nk-sg-btn:hover { transform: translateY(-2px); background: #ffe066; }

/* Responsividade do Grid */
@media (max-width: 1024px) {
  .nk-layout-with-sidebar {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .nk-sidebar-aside {
    position: static;
  }
  .nk-page-header__title {
    font-size: 26px;
  }
}

