/* macro-briefing-widget.css */
/* Widget de Panorama Diário: Bitcoin & Macroeconomia */

.macro-widget-container {
  background: linear-gradient(135deg, rgba(20, 24, 20, 0.7) 0%, rgba(13, 17, 13, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  color: #e0e0e0;
}

.macro-widget-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Header do Widget */
.macro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macro-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.macro-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFD700;
}

.macro-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.macro-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.macro-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.macro-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: macroPulse 2s infinite;
}

@keyframes macroPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Grid de Métricas Chave */
.macro-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.macro-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.macro-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.3);
}

.macro-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #808080;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.macro-metric-val {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.macro-metric-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-bull {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tag-bear {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #FFD700;
}

/* Termômetro Fear & Greed */
.macro-fng-meter {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.macro-fng-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #fbbf24 50%, #10b981 100%);
  transition: width 0.8s ease-in-out;
}

/* Seção de Resumo Executivo */
.macro-summary-box {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #FFD700;
  border-radius: 0 10px 10px 0;
  padding: 16px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #d1d5db;
}

.macro-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Destaques Macroeconômicos */
.macro-highlights-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.macro-highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.macro-highlight-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
}

.macro-highlight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.macro-highlight-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.macro-highlight-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* Níveis Chave e Veredito */
.macro-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #808080;
}

.macro-btn-refresh {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFD700;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.macro-btn-refresh:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #FFD700;
}
