
/* NATIVOOS 360 NEXT GENERATION
   Gold & Petrol + Editorial Clean
   Camada visual independente
*/

/* TEMA ESCURO — GOLD & PETROL */
html[data-n360-theme="dark"] {
  --navy: #071e29;
  --teal: #27a5a5;
  --gold: #d7ad64;
  --ink: #eef4f3;
  --muted: #b4c9ca;
  --line: #31545b;
  --paper: #081f29;

  --ng-card: #10313c;
  --ng-header: #092b36;
  --ng-surface: #153944;
  --ng-weather: #123844;
}

/* TEMA CLARO — EDITORIAL CLEAN */
html[data-n360-theme="light"] {
  --navy: #092637;
  --teal: #07565b;
  --gold: #ba944e;
  --ink: #17333b;
  --muted: #617078;
  --line: #dce1df;
  --paper: #f7f8f5;

  --ng-card: #ffffff;
  --ng-header: #ffffff;
  --ng-surface: #ffffff;
  --ng-weather: #e9efec;
}

/* ESTRUTURA GERAL */
html[data-n360-theme] body {
  background: var(--paper);
  color: var(--ink);
  transition: background-color .2s ease,
              color .2s ease;
}

html[data-n360-theme] .masthead {
  background: var(--ng-header);
}

html[data-n360-theme] .navigation {
  background: var(--ng-header);
  border-color: var(--line);
}

html[data-n360-theme] .nav-inner a {
  color: var(--ink);
}

html[data-n360-theme] .nav-inner a:hover {
  color: var(--gold);
}

html[data-n360-theme] .masthead-note span,
html[data-n360-theme] .eyebrow {
  color: var(--teal);
}

/* NOTÍCIAS E CARTÕES */
html[data-n360-theme] .secondary,
html[data-n360-theme] .editorial-card,
html[data-n360-theme] .side-news {
  background: var(--ng-card);
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
}

html[data-n360-theme] .lead-story {
  border-radius: 14px;
}

html[data-n360-theme] .secondary-copy {
  padding: 18px;
}

html[data-n360-theme] .editor-note,
html[data-n360-theme] .quick-module {
  border-color: var(--line);
}

/* CLIMA E TEMPO */
html[data-n360-theme] .weather-module {
  background: var(--ng-weather);
  color: var(--ink);
  border-radius: 12px;
  border-top: 2px solid var(--gold);
}

html[data-n360-theme] .weather-now small,
html[data-n360-theme] .weather-bottom,
html[data-n360-theme] .weather-disclaimer {
  color: var(--muted);
}

/* PUBLICIDADE — MANTER ESPAÇOS ORIGINAIS */
html[data-n360-theme] .ad-slot {
  border-radius: 12px;
  overflow: hidden;
}

/* MUSIC CENTER — CARTÃO DE ACESSO */
html[data-n360-theme] .music-module {
  background: linear-gradient(
    135deg, #092d38, #061c27
  );
  border: 1px solid #b89150;
  border-radius: 12px;
  color: #f3f3ec;
}

html[data-n360-theme] .music-module .eyebrow {
  color: #e1ba78;
}

/* TRANSIÇÕES DISCRETAS */
@media (prefers-reduced-motion: reduce) {
  html[data-n360-theme] body {
    transition: none;
  }
}

/* SELETOR DE TEMAS — NEXT GENERATION */
.n360-theme-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin-left: auto;
  background: var(--ng-surface, #e9efec);
  border: 1px solid var(--line);
  border-radius: 30px;
  flex-shrink: 0;
}

.n360-theme-switch button {
  padding: 9px 13px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.n360-theme-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #071e29;
}

@media (max-width: 900px) {
  .n360-theme-switch {
    margin-left: 0;
  }

  .n360-theme-switch button {
    padding: 8px;
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .masthead {
    flex-wrap: wrap;
    height: auto;
    min-height: 94px;
    padding-block: 10px;
  }

  .n360-theme-switch {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* NEXT GENERATION — ALINHAMENTO DO CABEÇALHO */

@media (min-width: 901px) {
  .masthead .brand {
    order: 1;
  }

  .masthead .masthead-note {
    order: 2;
    margin-left: auto;
  }

  .masthead .n360-theme-switch {
    order: 3;
    margin-left: 15px;
  }

  .masthead .menu-toggle {
    order: 4;
  }
}

/* NATIVOOS 360 — Refinamento da marca no tema escuro */


/* NATIVOOS 360 — Marca integrada ao cabeçalho */
html[data-n360-theme="dark"] .brand-crop {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* NATIVOOS 360 — Marca específica do Gold & Petrol */
html[data-n360-theme="dark"] .brand-crop {
  background: url("/assets/marca-escura.png")
    center center / contain no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html[data-n360-theme="dark"] .brand-crop img {
  visibility: hidden;
}
