/* ==========================================================================
   CROWS — tema visual (sobrepõe o CSS compilado do Next.js)
   ========================================================================== */

/* ---------- Paleta: dourado da logo + vinho escuro ---------- */
:root,
:host {
  --color-ink: #0a0705 !important;
  --color-ink-2: #120d08 !important;
  --color-panel: #18110a !important;
  --color-panel-border: #3a2914 !important;
  --color-gold: #d4a53c !important;
  --color-gold-light: #f3d27a !important;
  --color-copper: #9a6a1c !important;
  --color-cream: #f6ecd6 !important;
  --color-muted: #a8977c !important;

  --crows-crimson: #7a1616;
  --crows-glow: rgba(212, 165, 60, .45);
  --crows-radius: 14px;
  --crows-header-h: 64px;
}

html body {
  background: var(--color-ink);
  color: var(--color-cream);
}

::selection { background: rgba(212, 165, 60, .35); color: #fff; }

html { scrollbar-color: var(--color-copper) var(--color-ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--color-gold), var(--color-copper)); border-radius: 10px; border: 2px solid var(--color-ink); }

/* ---------- Imagem de fundo ---------- */
html body > div.pointer-events-none.fixed.inset-0 {
  background:
    linear-gradient(180deg, rgba(10,7,5,.55) 0%, rgba(10,7,5,.35) 35%, rgba(10,7,5,.75) 80%, rgba(10,7,5,.92) 100%),
    url("../BG_20260908_3.jpg") center top / cover no-repeat,
    var(--color-ink) !important;
}
html body > div.pointer-events-none.fixed.inset-0 .lok-orb { display: none; }

/* ---------- Fundo animado: orbs dourados / vinho ---------- */
html .lok-orb { opacity: .5; }
html .lok-orb-1 { background: radial-gradient(circle, rgba(212,165,60,.38), transparent 70%); }
html .lok-orb-2 { background: radial-gradient(circle, rgba(122,22,22,.45), transparent 70%); }
html .lok-orb-3 { background: radial-gradient(circle, rgba(243,210,122,.22), transparent 70%); }
html .lok-ember {
  background: radial-gradient(circle, #ffe3a0f2, #d4a53c80 60%, transparent 70%);
  box-shadow: 0 0 6px 1px #d4a53c80;
}

/* textura sutil por cima do fundo */
html body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(212,165,60,.06), transparent 30%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px);
}

/* ---------- Cabeçalho original do Next: substituído pelo #crows-header ---------- */
html .relative.flex.min-h-dvh > header,
html .relative.flex.min-h-dvh > footer { display: none !important; }
html body { display: flex; flex-direction: column; min-height: 100dvh; }
html body > .relative.flex.min-h-dvh { min-height: 0; flex: 1 0 auto; min-width: 0; width: 100%; }
html main { min-width: 0; }
html main table { min-width: 0; }
html main .overflow-hidden.rounded-xl:has(> table) { overflow-x: auto !important; }
#crows-header .crows-btn-ghost { color: var(--color-gold-light) !important; }
#crows-header .crows-btn-gold { color: #1a1206 !important; }

/* ---------- Cabeçalho Crows ---------- */
#crows-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--crows-header-h);
  background: rgba(10, 7, 5, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(212, 165, 60, .18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
#crows-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: .7;
}
.crows-bar {
  max-width: 1152px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.crows-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.crows-brand img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--crows-glow));
  transition: transform .3s ease, filter .3s ease;
}
.crows-brand:hover img { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 0 16px rgba(243,210,122,.7)); }
.crows-brand span {
  line-height: 1.3;
  padding-top: .06em;
  font-family: var(--font-display), serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .14em;
  background: linear-gradient(180deg, #fff1c4 0%, var(--color-gold-light) 35%, var(--color-gold) 70%, var(--color-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.crows-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.crows-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.crows-nav a:hover { color: var(--color-cream); background: rgba(212,165,60,.07); }
.crows-nav a.is-active { color: var(--color-gold-light); }
.crows-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-copper));
  box-shadow: 0 0 8px var(--crows-glow);
}
.crows-actions { display: flex; align-items: center; gap: 8px; }
.crows-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.crows-btn-ghost { color: var(--color-gold-light); border: 1px solid rgba(212,165,60,.35); }
.crows-btn-ghost:hover { background: rgba(212,165,60,.1); border-color: var(--color-gold); }
.crows-btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-copper));
  box-shadow: 0 6px 18px rgba(154,106,28,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.crows-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,165,60,.4), inset 0 1px 0 rgba(255,255,255,.5); }

.crows-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(212,165,60,.3);
  background: transparent;
  color: var(--color-gold-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.crows-mobile {
  display: none;
  position: absolute;
  top: var(--crows-header-h);
  left: 0; right: 0;
  padding: 12px 16px 18px;
  background: rgba(10,7,5,.97);
  border-bottom: 1px solid rgba(212,165,60,.25);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}
.crows-mobile a:not(.crows-btn) {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 500;
}
.crows-mobile a:not(.crows-btn):hover,
.crows-mobile a.is-active { background: rgba(212,165,60,.1); color: var(--color-gold-light); }
.crows-mobile .crows-actions { margin-top: 12px; }
.crows-mobile .crows-btn { flex: 1; padding: 11px 16px; }
#crows-header.is-open .crows-mobile { display: block; }

/* ---------- Estilo WYD DOW (menu estilo Vaelion) ---------- */
#crows-header { --crows-header-h: 84px; height: 84px; background: rgba(8,10,14,.92); font-family: var(--font-sans, Inter), system-ui, sans-serif; }
.crows-bar { max-width: 1240px; gap: 28px; }
.crows-brand .dow-emblem { display: block; filter: drop-shadow(0 0 10px var(--crows-glow)); transition: transform .3s ease; }
.crows-brand:hover .dow-emblem { transform: scale(1.06); }
.crows-nav { gap: 6px; }
.crows-nav > a,
.crows-drop-btn {
  position: relative;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #e8e6e1;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.crows-nav > a:hover, .crows-drop-btn:hover { color: var(--color-gold-light); background: none; }
.crows-nav > a.is-active, .crows-drop.is-active > .crows-drop-btn { color: var(--color-gold-light); }
.crows-nav > a.is-active::after,
.crows-drop.is-active > .crows-drop-btn::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 2px;
  background: var(--color-gold-light);
  box-shadow: none;
}
.crows-caret { display: inline-block; width: 7px; height: 2px; margin-left: 3px; vertical-align: middle; background: currentColor; }
.crows-drop { position: relative; }
.crows-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 8px;
  background: #0d1015;
  border: 1px solid rgba(212,165,60,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.crows-drop:hover .crows-drop-menu,
.crows-drop.is-open .crows-drop-menu { display: block; }
.crows-drop:hover::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.crows-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: .85rem;
  color: #e8e6e1;
  text-decoration: none;
}
.crows-drop-menu a:hover { background: rgba(212,165,60,.1); color: var(--color-gold-light); }
.crows-actions .crows-btn {
  padding: 13px 22px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.crows-actions .crows-btn-gold {
  background: linear-gradient(180deg, #e9c87a, #d6aa55);
  border: 1px solid #f0d58f;
}
.crows-mobile .crows-drop-btn { display: block; width: 100%; text-align: left; padding: 11px 12px; }
.crows-mobile .crows-drop-menu { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0 0 0 12px; }
.crows-mobile .crows-drop.is-active > .crows-drop-btn::after { display: none; }

@media (max-width: 860px) {
  .crows-bar > .crows-nav,
  .crows-bar > .crows-actions { display: none; }
  .crows-burger { display: inline-flex; }
}

/* ---------- Layout mais compacto ---------- */
html main > div.mx-auto,
html main > article.mx-auto {
  padding-top: 2rem !important;
  padding-bottom: 2.5rem !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}
html main section.mt-16 { margin-top: 2.25rem !important; }
html main section.mt-14 { margin-top: 2rem !important; }
html main .mb-4.flex.items-end { margin-bottom: .85rem !important; }

/* Títulos de seção com marcador dourado */
html main h2.flex.items-center.gap-2.font-display {
  font-size: 1.3rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html main h2.flex.items-center.gap-2.font-display > span.text-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(212,165,60,.22), rgba(212,165,60,.06));
  border: 1px solid rgba(212,165,60,.35);
  color: var(--color-gold-light);
}
html main .mb-4.flex.items-end > .space-y-1 {
  position: relative;
  padding-left: 0;
}
html main .mb-4.flex.items-end::after {
  content: "";
  flex: 1;
  height: 1px;
  align-self: center;
  margin-left: 12px;
  background: linear-gradient(90deg, rgba(212,165,60,.45), transparent);
}

/* ---------- Painéis / cartões ---------- */
html main .rounded-xl.border.border-panel-border {
  border-radius: var(--crows-radius) !important;
  border-color: rgba(212,165,60,.16) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 40%),
    rgba(24,17,10,.78) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
html main a.group.rounded-xl {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}
html main a.group.rounded-xl:hover {
  transform: translateY(-3px);
  border-color: rgba(212,165,60,.55) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(212,165,60,.2), 0 0 30px rgba(212,165,60,.12) !important;
}
html main a.group .flex-col.p-5 { padding: 1rem 1.1rem !important; }

/* Selo de categoria */
html main span.rounded-full.border.bg-ink\/80 {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold)) !important;
  color: #1a1206 !important;
  border-color: transparent !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .65rem !important;
}

/* ---------- Botões do Next (gradiente e contorno) ---------- */
html main button.bg-gradient-to-b {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-copper)) !important;
  color: #1a1206 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(154,106,28,.4), inset 0 1px 0 rgba(255,255,255,.45) !important;
  position: relative;
  overflow: hidden;
}
html main button.bg-gradient-to-b::after,
.crows-btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: crows-shine 3.8s ease-in-out infinite;
}
html main button.border.border-gold\/40 {
  border-radius: 10px !important;
  background: rgba(10,7,5,.4) !important;
  border-color: rgba(212,165,60,.45) !important;
}
html main button.border.border-gold\/40:hover {
  background: rgba(212,165,60,.12) !important;
  border-color: var(--color-gold) !important;
}

/* ---------- Tabelas compactas ---------- */
html main table thead tr {
  background: linear-gradient(180deg, rgba(212,165,60,.14), rgba(212,165,60,.04));
  color: var(--color-gold-light) !important;
}
html main table th { padding: .65rem 1rem !important; letter-spacing: .08em; }
html main table td { padding: .6rem 1rem !important; }
html main table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
html main table tbody tr:hover { background: rgba(212,165,60,.07) !important; }

/* ---------- Página inicial ---------- */
/* Hero */
html main section.flex.flex-col.items-center.text-center {
  position: relative;
  padding: 1.75rem 1.25rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(212,165,60,.18);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(212,165,60,.16), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(10,7,5,.5), transparent 70%),
    rgba(18,13,8,.35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
html main section.flex.flex-col.items-center.text-center::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}
html main section.flex.flex-col.items-center.text-center > img {
  height: 9.5rem !important;
  width: auto !important;
  filter: drop-shadow(0 0 28px rgba(212,165,60,.45)) drop-shadow(0 8px 20px rgba(0,0,0,.6)) !important;
  animation: crows-float 6s ease-in-out infinite;
}
html main section.flex.flex-col.items-center.text-center > h1 {
  margin-top: .9rem !important;
  font-size: clamp(2rem, 5vw, 3.25rem) !important;
  line-height: 1.3 !important;
  padding: .08em 0 .04em .16em;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cc 0%, var(--color-gold-light) 40%, var(--color-gold) 75%, var(--color-copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 2px 10px rgba(212,165,60,.25));
}
html main section.flex.flex-col.items-center.text-center > p { margin-top: .5rem !important; }
html main section.flex.flex-col.items-center.text-center > div.mt-8 { margin-top: 1.4rem !important; }
html main section.flex.flex-col.items-center.text-center > div.mt-6 { margin-top: .75rem !important; }
/* selo de status (bolinha verde) removido */
html main section.flex.flex-col.items-center.text-center > span.mt-6.rounded-full { display: none !important; }

/* Seção Cidades removida da página inicial */
html main section.flex.justify-center:has(table) { display: none !important; }

/* ---------- Notícia em destaque (página inicial) ---------- */
html main section.mt-16:has(a.group.sm\:flex-row) { margin-top: 2rem !important; }

html main a.group.sm\:flex-row {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr;
  min-height: 0;
  border-radius: 18px !important;
  border: 1px solid rgba(212,165,60,.28) !important;
  background: linear-gradient(135deg, rgba(24,17,10,.92), rgba(10,7,5,.95)) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05) !important;
  overflow: hidden;
}
/* filete dourado no topo do cartão */
html main a.group.sm\:flex-row::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), var(--color-gold), transparent);
}
/* imagem */
html main a.group.sm\:flex-row > div:first-child {
  position: relative;
  width: 100% !important;
  aspect-ratio: 16 / 7 !important;
  background: #000 !important;
}
html main a.group.sm\:flex-row > div:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,7,5,.95));
  pointer-events: none;
}
html main a.group.sm\:flex-row > div:first-child img {
  filter: saturate(1.05) contrast(1.05);
  transition: transform .6s ease, filter .4s ease !important;
}
html main a.group.sm\:flex-row:hover > div:first-child img { transform: scale(1.04); filter: saturate(1.15) contrast(1.08) brightness(1.05); }

/* conteúdo */
html main a.group.sm\:flex-row > div:last-child {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  gap: .35rem;
  padding: 1.25rem 1.4rem 1.4rem !important;
}
html main a.group.sm\:flex-row > div:last-child > span.text-xs {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  font-size: .7rem !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold) !important;
}
html main a.group.sm\:flex-row > div:last-child > span.text-xs::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}
html main a.group.sm\:flex-row > div:last-child > h3 {
  margin-top: .1rem !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  line-height: 1.25 !important;
  color: var(--color-cream) !important;
}
html main a.group.sm\:flex-row:hover > div:last-child > h3 { color: var(--color-gold-light) !important; }
html main a.group.sm\:flex-row > div:last-child > p {
  margin-top: 0 !important;
  font-size: .95rem !important;
  color: var(--color-muted) !important;
}
/* botão "Ler notícia" */
html main a.group.sm\:flex-row > div:last-child::after {
  content: "Ler notícia  →";
  align-self: flex-start;
  margin-top: .8rem;
  padding: .55rem 1.1rem;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 600;
  white-space: pre;
  color: #1a1206;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold) 55%, var(--color-copper));
  box-shadow: 0 6px 18px rgba(154,106,28,.35), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .2s, box-shadow .2s;
}
html main a.group.sm\:flex-row:hover > div:last-child::after {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(212,165,60,.45), inset 0 1px 0 rgba(255,255,255,.5);
}

/* desktop: imagem à esquerda, texto à direita */
@media (min-width: 768px) {
  html main a.group.sm\:flex-row { grid-template-columns: 1.45fr 1fr; }
  html main a.group.sm\:flex-row > div:first-child { aspect-ratio: auto !important; min-height: 300px; }
  html main a.group.sm\:flex-row > div:first-child::after {
    background: linear-gradient(90deg, transparent 45%, rgba(20,14,9,.7) 80%, rgb(20,14,9) 100%);
  }
  html main a.group.sm\:flex-row > div:last-child { padding: 2rem 2rem 2rem 1.5rem !important; }
}
/* ---------- Página de notícia (patch) ---------- */
html main article .rounded-lg.border.border-panel-border\/60 {
  border-radius: 12px !important;
  border-color: rgba(212,165,60,.16) !important;
  background: rgba(10,7,5,.45) !important;
  border-left: 3px solid var(--color-gold) !important;
}
html main article .mt-8.space-y-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
}
html main article .mt-8.space-y-6 > * { margin-top: 0 !important; }
html main article .mt-8.space-y-6 > p,
html main article .mt-8.space-y-6 > .border-gold\/40 { grid-column: 1 / -1; }
html main article .mt-8.space-y-6 h2.mb-3 { font-size: 1.05rem !important; margin-bottom: .5rem !important; }
html main article .mt-6.aspect-\[16\/9\] { margin-top: 1.25rem !important; }

/* ---------- Filtros (notícias) ---------- */
html main button[aria-pressed] { border-radius: 8px !important; }
html main button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold) 60%, var(--color-copper)) !important;
  color: #1a1206 !important;
}

/* ---------- Animações ---------- */
@keyframes crows-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes crows-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  html main section.flex.flex-col.items-center.text-center > img,
  html main button.bg-gradient-to-b::after,
  .crows-btn-gold::after { animation: none !important; }
}
