:root {
  --bg-body: #030712;
  --bg-panel: rgba(8, 20, 45, 0.85);
  --bg-card: #0f172a;
  --bg-card-soft: rgba(15, 23, 42, 0.6);
  --accent: #fbbf24;
  --accent-strong: #f97316;
  --muted: #94a3b8;
  --text: #f8fafc;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f1b3d, #030712);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(8, 16, 33, 0.95), rgba(4, 12, 28, 0.95));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
  z-index: 10;
  backdrop-filter: blur(16px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
  gap: 1.5rem;
}

.branding {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  letter-spacing: 0.05em;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.4);
}

.branding h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.header-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.timestamp {
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-link {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent-strong);
  color: #0f172a;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}

.category-nav {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-button {
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-button[aria-pressed="true"] {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.25);
}

.page-content {
  flex: 1;
  padding-block: 2.5rem 4rem;
}

.hero-section {
  background: var(--bg-panel);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
}

.hero-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-actions a {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero-actions .primary {
  background: var(--accent-strong);
  color: #0f172a;
  border: none;
}

.hero-actions .secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.intelligence-panel {
  margin-top: 2.75rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-field,
.sort-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.search-field input,
.sort-field select {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-width: 240px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.2;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.news-section {
  margin-top: 3rem;
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0;
}

.news-toolbar h2 {
  margin: 0.25rem 0 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#viewToggle {
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
}

.results-indicator {
  font-size: 0.9rem;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.news-grid.list-view {
  grid-template-columns: 1fr;
}

.news-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, border 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover,
.news-card:focus {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.6);
}

.news-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.news-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  gap: 1rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.empty-state {
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
  background: rgba(15, 23, 42, 0.3);
}

.empty-state button {
  margin-top: 1rem;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: rgba(2, 6, 23, 0.95);
}

.footer-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  min-width: 260px;
}

.newsletter-form button {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* Página de artigo */

.article-body {
  background: radial-gradient(circle at top, #0f1b3d, #030712);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
}

.article-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
}

.article-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-header .logo {
  width: 48px;
  height: 48px;
  font-size: 0.9rem;
}

.back-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.article-layout {
  width: min(1100px, 100% - 2.5rem);
  margin: 2.5rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 2rem;
}

.article-main {
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.article-main h1 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-image img {
  width: 100%;
  border-radius: 1.2rem;
  height: 420px;
  object-fit: cover;
}

.article-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  line-height: 1.8;
}

.article-copy ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.article-copy ul li + li {
  margin-top: 0.4rem;
}

.article-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-cta a {
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #0f172a;
  font-weight: 600;
}

.article-cta .disabled-link {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.article-aside {
  background: rgba(6, 12, 27, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  height: fit-content;
}

.article-aside h4 {
  margin-top: 0;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-list a {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: block;
  background: rgba(15, 23, 42, 0.4);
  transition: border 0.2s ease, transform 0.2s ease;
}

.related-list a span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.related-list a:hover {
  border-color: rgba(250, 204, 21, 0.6);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-image img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-section,
  .intelligence-panel {
    padding: 1.5rem;
  }

  .hero-actions a {
    flex: 1;
    text-align: center;
  }

  .panel-controls {
    flex-direction: column;
  }

  .panel-controls input,
  .panel-controls select {
    min-width: 100%;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
