/* The Sector — Edition Styles */
/* Clean, professional light theme */

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 24px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  background: var(--blue-pale);
  transition: all 0.2s;
}
.back-link:hover {
  background: rgba(41,111,177,0.12);
  color: var(--blue-dark);
  text-decoration: none;
}

/* Header */
.header {
  background: linear-gradient(to bottom, rgba(10,30,50,0.50), rgba(10,30,50,0.70)), url('../assets/hero-edition.png') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: none;
  opacity: 0;
}
.header-icon { display: none; }
.header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3.2em;
  color: #ffffff;
  letter-spacing: 8px;
  text-transform: uppercase;
  position: relative;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-sub {
  font-size: 0.88em;
  color: rgba(255,255,255,0.80);
  margin-top: 14px;
  font-weight: 400;
  position: relative;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.header-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 0.82em;
  color: rgba(255,255,255,0.7);
  position: relative;
  flex-wrap: wrap;
}
.header-meta span {
  padding: 4px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
}

/* Market Ticker — Stock quotes + USD/BRL */
.market-ticker {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.market-ticker h3 {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 700;
}
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.ticker-item {
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ticker-item:nth-child(3n) { border-right: none; }
.ticker-item:nth-last-child(-n+3) { border-bottom: none; }
.ticker-item .ticker-symbol {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ticker-item .ticker-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text-bright);
  margin: 4px 0;
}
.ticker-item .ticker-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xl);
  display: inline-block;
}
.ticker-item .ticker-change.up { background: #ecfdf5; color: var(--up); }
.ticker-item .ticker-change.down { background: #fef2f2; color: var(--down); }
.ticker-item .ticker-change.neutral { background: var(--bg-alt); color: var(--text-dim); }

/* Agenda de Eventos */
.agenda-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fbff 100%);
  border: 1px solid rgba(41,111,177,0.12);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
}
.agenda-section h3 {
  color: var(--blue);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(41,111,177,0.08);
}
.agenda-item:last-child { border-bottom: none; }
.agenda-date-badge {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}
.agenda-date-badge .agenda-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
}
.agenda-date-badge .agenda-month {
  font-size: 0.65em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}
.agenda-info { flex: 1; }
.agenda-info .agenda-title {
  font-weight: 600;
  font-size: 0.92em;
  color: var(--text-bright);
  margin-bottom: 3px;
}
.agenda-info .agenda-title a {
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px dashed var(--blue-light);
  transition: all 0.2s;
}
.agenda-info .agenda-title a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.agenda-info .agenda-org {
  font-size: 0.76em;
  color: var(--text-dim);
}
.agenda-info .agenda-desc {
  font-size: 0.82em;
  color: var(--text);
  margin-top: 4px;
  line-height: 1.5;
}

/* Alert Banner */
.alert-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.alert-banner .alert-icon { font-size: 1.5em; flex-shrink: 0; }
.alert-banner .alert-text { font-size: 0.9em; line-height: 1.7; color: #991b1b; }
.alert-banner strong { color: #7f1d1d; }

/* Section Divider */
.section-divider {
  margin: 36px 0 20px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1em;
  color: var(--text-bright);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}
.section-divider span {
  display: inline;
  width: auto;
  height: auto;
  background: none;
  font-size: inherit;
}

/* Executive Summary */
.exec-summary {
  background: var(--blue-mist);
  border: 1px solid rgba(41,111,177,0.1);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.exec-summary h3 {
  color: var(--blue);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 700;
}
.exec-summary ul { list-style: none; }
.exec-summary li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(41,111,177,0.06);
  font-size: 0.93em;
  line-height: 1.7;
}
.exec-summary li:last-child { border: none; }
.exec-summary li::before {
  content: '\25B8 ';
  color: var(--blue);
  font-weight: bold;
  margin-right: 4px;
}
.exec-summary li strong { color: var(--text-bright); }

/* News Card */
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 16px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.news-card.featured { border-left: 4px solid var(--blue); }
.news-card.featured-oil { border-left: 4px solid var(--oil); }
.news-card.mining-card { border-left: 4px solid var(--mining); }
.news-card.energy-card { border-left: 4px solid var(--energy); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.65em;
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-geopolitica { background: #fef2f2; color: #b91c1c; }
.tag-ma { background: #fef2f2; color: #b91c1c; }
.tag-contrato { background: #ecfdf5; color: #047857; }
.tag-anp { background: #eff6ff; color: #1d4ed8; }
.tag-midstream { background: #f5f3ff; color: #6d28d9; }
.tag-epc { background: #fdf2f8; color: #be185d; }
.tag-corporativo { background: #fffbeb; color: #b45309; }
.tag-gas { background: #ecfeff; color: #0e7490; }
.tag-mining { background: #fffbeb; color: #92400e; }
.tag-litio { background: #f5f3ff; color: #7c3aed; }
.tag-ferro { background: #fef2f2; color: #991b1b; }
.tag-terras-raras { background: #ecfeff; color: #0e7490; }
.tag-energia { background: #ecfdf5; color: #047857; }
.tag-petroleo { background: #eff6ff; color: #1d4ed8; }
.tag-leilao { background: #fffbeb; color: #b45309; }

/* Impact badges — hidden per user preference */
.impact,
.impact-high,
.impact-medium,
.impact-watch { display: none; }

/* News card typography */
.news-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15em;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.4;
}
.news-card p {
  font-size: 0.91em;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}
.news-card .source {
  font-size: 0.76em;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.news-card .source a { color: var(--text-dim); }
.news-card .source a:hover { color: var(--blue); }

/* Images */
.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: var(--bg-section);
}
.image-banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

/* Strategic Analysis */
.headhunter-box {
  background: linear-gradient(135deg, #1a3a5c 0%, #296fb1 100%);
  border: 1px solid rgba(41,111,177,0.25);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  color: #e8f0f8;
}
.headhunter-box h3 {
  color: #ffffff;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1em;
  margin-bottom: 16px;
}
.headhunter-box .insight {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  font-size: 0.9em;
  border-left: 3px solid rgba(255,255,255,0.5);
  line-height: 1.7;
  color: #e8f0f8;
}
.headhunter-box .insight:last-child { margin-bottom: 0; }
.headhunter-box .insight strong { color: #ffffff; }

/* Radar Cards */
.radar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.radar-card:hover { box-shadow: var(--shadow-md); }
.radar-card .event-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  color: var(--blue);
  margin-bottom: 6px;
}
.radar-card .countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73em;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 12px;
  border-radius: var(--radius-xl);
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}
.radar-card h4 {
  font-size: 1.05em;
  color: var(--text-bright);
  margin-bottom: 8px;
  font-family: 'DM Serif Display', serif;
}
.radar-card .details { font-size: 0.88em; color: var(--text); margin-bottom: 14px; line-height: 1.7; }
.radar-card .companies {
  font-size: 0.82em;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  color: var(--text-dim);
}
.radar-card .companies strong { color: var(--text-bright); }
.calendar-btn {
  display: inline-block;
  font-size: 0.76em;
  padding: 6px 16px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  margin-right: 8px;
  margin-bottom: 6px;
}
.calendar-btn:hover { background: rgba(41,111,177,0.12); text-decoration: none; }

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.scenario-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border);
}
.scenario-card .sc-label {
  font-size: 0.7em;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.sc-bearish { color: var(--up); }
.sc-bullish { color: var(--down); }
.scenario-card .sc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.scenario-card .sc-desc { font-size: 0.8em; color: var(--text-dim); line-height: 1.5; }

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.stat-item { text-align: center; flex: 1; min-width: 90px; }
.stat-item .stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-bright);
}
.stat-item .stat-label {
  font-size: 0.68em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 36px 24px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  font-size: 0.82em;
  color: var(--text-dim);
}
.footer a { color: var(--blue); }

/* Responsive */
@media (max-width: 768px) {
  .header { padding: 32px 24px; min-height: 160px; }
  .header h1 { font-size: 1.8em; }
  .two-col { grid-template-columns: 1fr; }
  .section-divider { font-size: 0.95em; gap: 8px; }
  .scenario-grid { grid-template-columns: 1fr; }
  .exec-summary { padding: 22px 24px; }
  .news-card { padding: 20px; }
  .headhunter-box { padding: 22px 24px; }
  .alert-banner { padding: 16px 20px; flex-direction: column; }
  .ticker-item { padding: 10px 6px; }
  .agenda-item { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .header h1 { font-size: 1.4em; }
  .header-icon { font-size: 32px; }
  .header-meta { flex-direction: column; align-items: center; gap: 6px; }
  .header-meta span { width: 100%; text-align: center; }
  .section-divider { font-size: 0.85em; margin: 24px 0 12px; gap: 6px; }
  .section-divider span { width: 26px; height: 26px; }
  .news-card { padding: 16px; }
  .news-card h3 { font-size: 1.05em; }
  .radar-card { padding: 18px; }
  .tag { font-size: 0.6em; padding: 2px 8px; }
  .stats-bar { padding: 12px 14px; }
  .stat-item { min-width: 70px; }
}
