:root {
  --bg-color: #0b0d12;
  --card-bg: #131722;
  --card-border: #232a3b;
  --primary: #10b981; /* Verde militar / sucesso */
  --primary-hover: #059669;
  --accent-amber: #f59e0b;
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --highlight-bg: rgba(16, 185, 129, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: #0f121a;
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #34d399;
}

.status-indicator.live {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main */
.main {
  flex: 1;
  padding: 2rem 0 4rem;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tag-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
  text-transform: uppercase;
}

.hero-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0.5rem 0 1rem;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta a {
  color: var(--primary);
  text-decoration: none;
}

.hero-meta a:hover {
  text-decoration: underline;
}

/* Destaque Última Atualização */
.latest-alert-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.latest-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.badge-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 1px;
}

.badge-date {
  margin-left: auto;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.latest-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-download:hover {
  background: var(--primary-hover);
}

/* Timeline */
.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title-row h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: #fff;
}

.order-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr 100px;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: all 0.15s ease;
}

.timeline-row:hover {
  background: #191f2e;
  border-color: rgba(16, 185, 129, 0.3);
}

.timeline-row.row-highlight-latest {
  border-left: 4px solid var(--primary);
  background: rgba(16, 185, 129, 0.04);
}

.date-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-bubble {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.bubble-latest {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.micro-badge {
  background: #10b981;
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
}

.content-col {
  overflow: hidden;
}

.entry-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
}

.action-col {
  display: flex;
  justify-content: flex-end;
}

.btn-doc {
  background: #1a2233;
  border: 1px solid var(--card-border);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-doc:hover {
  background: #232e45;
  border-color: #38bdf8;
}

.no-doc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
  background: #090a0f;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer-sub {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Responsividade */
@media (max-width: 650px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }
  .action-col {
    justify-content: flex-start;
  }
  .section-title-row {
    flex-direction: column;
  }
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
