/* Magazine NewsWeek-Style Dual Theme — GeekPulsar (dark) */
:root {
  --bg: #1F2227;
  --band: #262A31;
  --surface: #2B3038;
  --surface-alt: #333942;
  --text: #D8DCE3;
  --muted: #9DA4B0;
  --border: #3C424D;
  --accent: #C93B3B;
  --accent2: #A82E2E;
  --header-bg: #22252B;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --btn-fg: #F5F7FA;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mag-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mag-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 22px; }

.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1000; transition: width 0.08s linear;
}

/* Top Bar 3 Zonas */
.mag-header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.mag-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.mag-top-left { display: flex; align-items: center; gap: 14px; }
.mag-menu-btn {
  background: none; border: none; color: var(--accent); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; padding: 6px 0;
}
.mag-search-wrap input {
  background: var(--surface-alt); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 6px 12px; font-size: 0.82rem; width: 170px; outline: none;
}
.mag-search-wrap input:focus { border-color: var(--accent); width: 210px; transition: width 0.15s ease; }
.mag-search-link { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.mag-search-link:hover { color: var(--accent); }

.mag-logo-center {
  display: inline-flex; align-items: center; gap: 10px; justify-self: center;
}
.mag-logo-center img { border-radius: 8px; }
.mag-masthead-text {
  font-family: 'Noto Serif', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.mag-pro-tag {
  align-self: flex-start;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--text); border: 1px solid var(--border);
  padding: 2px 5px; border-radius: 3px; margin-top: 4px;
}

.mag-top-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.mag-lang-switch {
  display: inline-flex; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.mag-lang-switch a {
  padding: 5px 10px; font-size: 0.72rem; font-weight: 800; color: var(--muted);
}
.mag-lang-switch a.active { background: var(--text); color: var(--bg); }
.mag-subscribe-btn {
  background: var(--accent); color: var(--btn-fg);
  padding: 8px 16px; border-radius: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em;
}
.mag-subscribe-btn:hover { filter: brightness(1.08); }

/* Barra de categorias */
.mag-catbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--header-bg); }
.mag-catbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; min-height: 44px;
}
.mag-nav-pill, .mag-nav-link {
  background: none; border: none; color: var(--text); cursor: pointer;
  font-size: 0.82rem; font-weight: 700; padding: 8px 4px; border-bottom: 2px solid transparent;
}
.mag-nav-pill:hover, .mag-nav-link:hover, .mag-nav-pill.active {
  color: var(--accent); border-bottom-color: var(--accent);
}

/* Ticker horizontal 4 colunas */
.mag-ticker-band { background: var(--band); border-bottom: 1px solid var(--border); padding: 14px 0; }
.mag-ticker-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.mag-ticker-item { display: block; }
.mag-ticker-item:hover .mag-ticker-title { color: var(--accent); }
.mag-ticker-title {
  font-family: 'Noto Serif', Georgia, serif; font-weight: 700; font-size: 0.84rem; line-height: 1.3; margin-bottom: 4px;
}
.mag-ticker-date { font-size: 0.7rem; color: var(--muted); }
.excl-tag {
  display: inline-block; background: var(--accent); color: var(--btn-fg);
  font-family: 'Noto Sans', sans-serif; font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.05em; padding: 1px 5px; margin-right: 4px; vertical-align: middle; border-radius: 2px;
}

/* Hero Grid Assimétrico 4 Colunas */
.mag-hero-grid {
  display: grid;
  grid-template-columns: 0.88fr 2.05fr 0.96fr 0.9fr;
  gap: 22px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.mag-block-title {
  font-family: 'Fira Sans', 'Noto Sans', sans-serif;
  font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; margin: 0 0 4px;
}
.mag-block-kicker {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text); border-bottom: 2px solid var(--text); padding-bottom: 8px; margin: 0 0 14px;
}
.mag-fresh-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.mag-fresh-item:last-child { border-bottom: none; margin-bottom: 0; }
.mag-fresh-item h3 {
  font-family: 'Noto Serif', Georgia, serif; font-size: 0.9rem; line-height: 1.3; margin: 0 0 5px;
}
.mag-fresh-item h3 a:hover { color: var(--accent); }
.mag-item-meta { display: flex; gap: 8px; font-size: 0.7rem; color: var(--muted); align-items: center; }
.mag-cat-inline, .mag-cat-label {
  color: var(--accent); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}

.mag-hero-feature {
  position: relative; border-radius: 4px; overflow: hidden; min-height: 540px;
  display: flex; align-items: flex-end; background: #0B0D14;
}
.mag-hero-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.mag-hero-feature:hover img { transform: scale(1.03); }
.mag-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.05) 32%, rgba(6, 8, 16, 0.92) 96%);
}
.mag-hero-overlay { position: relative; z-index: 2; padding: 28px; color: #E5E8EE; }
.mag-badge {
  display: inline-block; background: var(--accent); color: var(--btn-fg);
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 10px;
}
.mag-hero-overlay h1 {
  font-family: 'Noto Serif', Georgia, serif; font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.12; margin: 0 0 10px;
}
.mag-hero-overlay p { margin: 0; font-size: 0.9rem; color: #CFD5DF; line-height: 1.45; }

.mag-col-stack { display: flex; flex-direction: column; gap: 20px; }
.mag-mid-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 8px; }
.mag-mid-card h3 {
  font-family: 'Noto Serif', Georgia, serif; font-size: 1rem; line-height: 1.26; margin: 4px 0 0;
}
.mag-mid-card h3 a:hover { color: var(--accent); }

.mag-popular-panel {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 16px; border-radius: 4px; margin-top: 8px;
}
.mag-pop-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.mag-pop-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mag-pop-item h3 {
  font-family: 'Noto Serif', Georgia, serif; font-size: 0.88rem; line-height: 1.28; margin: 3px 0 4px;
}
.mag-pop-item h3 a:hover { color: var(--accent); }
.mag-date { font-size: 0.7rem; color: var(--muted); display: block; }

/* Faixa social */
.mag-social-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-top: 16px; padding-bottom: 16px; margin-bottom: 28px;
}
.mag-social-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.mag-social-cta { font-family: 'Noto Serif', Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.mag-social-links { display: flex; gap: 16px; font-size: 0.82rem; font-weight: 700; color: var(--accent); }

/* Seção Breaking / Destaque */
.mag-breaking-band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0 34px; margin-bottom: 34px; }
.mag-skew-badge { margin-bottom: 18px; }
.mag-skew-badge span {
  display: inline-block; background: var(--accent); color: var(--btn-fg);
  font-family: 'Noto Serif', Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.05rem;
  padding: 5px 18px; transform: skewX(-12deg);
}
.mag-breaking-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.mag-portrait-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden;
  display: flex; align-items: flex-end; background: #0C0E17;
}
.mag-portrait-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mag-portrait-card:hover img { transform: scale(1.04); }
.mag-portrait-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.08) 38%, rgba(6, 8, 16, 0.92) 96%);
}
.mag-portrait-overlay { position: relative; z-index: 2; padding: 18px; color: #E5E8EE; }
.mag-portrait-overlay h3 {
  font-family: 'Noto Serif', Georgia, serif; font-size: 1.02rem; line-height: 1.24; margin: 0;
}

.mag-compact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mag-compact-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mag-compact-text h4 { font-family: 'Noto Serif', Georgia, serif; font-size: 0.84rem; line-height: 1.28; margin: 0 0 4px; }
.mag-compact-text h4 a:hover { color: var(--accent); }
.mag-compact-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; flex-shrink: 0; display: block; }

/* Spotlight + Sidebar Promo */
.mag-spotlight-grid {
  display: grid; grid-template-columns: 3.1fr 1fr; gap: 24px; padding-bottom: 42px; align-items: start;
}
.mag-sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--text); padding-top: 10px; margin-bottom: 18px;
}
.mag-sec-head h2 { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 1.45rem; margin: 0; }
.mag-view-all { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); }
.mag-spotlight-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mag-spot-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 10px; }
.mag-spot-card h3 { font-family: 'Noto Serif', Georgia, serif; font-size: 1.12rem; line-height: 1.24; margin: 0; }
.mag-spot-card h3 a:hover { color: var(--accent); }

.mag-promo-card {
  position: relative; border-radius: 6px; overflow: hidden; min-height: 360px;
  display: flex; align-items: flex-end; text-align: center; background: #121316;
}
.mag-promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-promo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.25) 0%, rgba(15, 17, 21, 0.90) 100%);
}
.mag-promo-content { position: relative; z-index: 2; padding: 24px 18px; color: #E5E8EE; width: 100%; }
.mag-promo-sub { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 6px; }
.mag-promo-content h3 { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.12; margin: 0 0 8px; }
.mag-promo-content p { font-size: 0.8rem; color: #CFD5DF; margin: 0 0 16px; }
.mag-promo-btn {
  display: inline-block; background: var(--accent); color: var(--btn-fg);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; padding: 10px 18px; border-radius: 4px;
}

/* Grade filtrada & Páginas de Artigo */
.mag-filtered-sec { padding-top: 26px; padding-bottom: 42px; }
.mag-filtered-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mag-std-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 14px;
  display: flex; flex-direction: column;
}
.mag-thumb-link img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 10px; }
.mag-std-card h3 { font-family: 'Noto Serif', Georgia, serif; font-size: 1.05rem; line-height: 1.26; margin: 4px 0 8px; }
.mag-std-card p { font-size: 0.86rem; color: var(--muted); margin: 0 0 10px; flex: 1; }
.mag-count { font-size: 0.84rem; color: var(--muted); }

.mag-article-shell { max-width: 820px; padding-top: 26px; padding-bottom: 48px; }
.mag-breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; }
.mag-art-header h1 { font-family: 'Noto Serif', Georgia, serif; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; margin: 6px 0 12px; }
.mag-art-sub { font-size: 1.12rem; color: var(--muted); margin: 0 0 14px; }
.mag-art-meta { display: flex; gap: 10px; font-size: 0.84rem; color: var(--muted); margin-bottom: 20px; }
.mag-art-cover { margin: 0 0 24px; }
.mag-art-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 6px; display: block; }
.mag-takeaways {
  background: var(--surface-alt); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 6px; padding: 18px 22px; margin-bottom: 24px;
}
.mag-takeaways h2 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin: 0 0 10px; }
.mag-takeaways ul { margin: 0; padding-left: 20px; }
.mag-takeaways li { margin-bottom: 6px; }
.mag-art-prose p { font-size: 1.05rem; line-height: 1.72; margin: 0 0 18px; }
.mag-art-prose h2 { font-family: 'Noto Serif', Georgia, serif; font-size: 1.38rem; margin: 28px 0 10px; }
.mag-art-footer { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 26px; font-size: 0.88rem; color: var(--muted); }
.mag-art-footer a { color: var(--accent); font-weight: 700; }
.mag-kw-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mag-kw { font-size: 0.76rem; background: var(--surface-alt); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.mag-related-sec { margin-top: 38px; }

.mag-footer { border-top: 1px solid var(--border); background: var(--band); padding: 26px 0; }
.mag-footer-inner { display: flex; flex-direction: column; gap: 12px; }
.mag-footer-brand { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.mag-footer-brand strong { font-family: 'Noto Serif', Georgia, serif; font-style: italic; font-size: 1.15rem; color: var(--accent); }
.mag-footer-brand img { border-radius: 6px; }
.mag-footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.mag-footer-links a:hover { color: var(--accent); }
.mag-footer-copy { margin: 0; font-size: 0.78rem; color: var(--muted); }
.empty-state { text-align: center; padding: 24px; border: 1px dashed var(--border); color: var(--muted); }

@media (max-width: 1024px) {
  .mag-hero-grid { grid-template-columns: 1fr 1fr; }
  .mag-breaking-cards, .mag-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mag-spotlight-grid { grid-template-columns: 1fr; }
  .mag-ticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mag-topbar { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .mag-top-left, .mag-top-right { justify-content: center; }
  .mag-ticker-grid, .mag-hero-grid, .mag-breaking-cards, .mag-compact-grid, .mag-spotlight-cards, .mag-filtered-grid {
    grid-template-columns: 1fr;
  }
  .mag-hero-feature { min-height: 400px; }
  .mag-search-wrap input { width: 100%; }
}
