/* ==============================
   PHASE 7: THE ORACLE
   Predictive Commerce Dashboard
   ============================== */

/* Oracle container — dark glassmorphism theme */
.oracle-container {
  background: linear-gradient(135deg, #0f0c29, #1a1040, #24243e);
  border-radius: 20px;
  padding: 28px;
  color: #e8e0ff;
  margin-bottom: 24px;
  border: 1px solid rgba(147, 51, 234, 0.3);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.15);
}

.oracle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.oracle-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oracle-eye {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #9333ea, #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: oraclePulse 3s ease-in-out infinite;
}

@keyframes oraclePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.5); }
  50%       { box-shadow: 0 0 40px rgba(147, 51, 234, 0.9), 0 0 80px rgba(79, 70, 229, 0.3); }
}

.oracle-title h2 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.oracle-subtitle {
  font-size: 12px;
  color: rgba(200, 180, 255, 0.7);
  margin-top: 2px;
}

/* Oracle action buttons */
.oracle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.oracle-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.oracle-btn-primary {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: white;
}

.oracle-btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.oracle-btn-outline {
  background: transparent;
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.5);
}

.oracle-btn-outline:hover { background: rgba(147, 51, 234, 0.15); }

/* Oracle section grid */
.oracle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Macro Trend Cards */
.macro-trend-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s;
}

.macro-trend-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(147, 51, 234, 0.5);
  transform: translateY(-2px);
}

.trend-urgency {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.urgency-immediate { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.urgency-3-months  { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }
.urgency-6-months  { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.urgency-12-months { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }

.trend-name   { font-size: 15px; font-weight: 700; color: #e8e0ff; margin-bottom: 6px; }
.trend-signal { font-size: 13px; color: rgba(200, 180, 255, 0.8); margin-bottom: 8px; line-height: 1.5; }
.trend-impact { font-size: 13px; color: #a78bfa; font-style: italic; margin-bottom: 10px; }
.trend-action {
  background: rgba(147, 51, 234, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #c084fc;
  border-left: 3px solid #9333ea;
}

/* Market Pivot Alert */
.market-pivot-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 16px;
  animation: pivotPulse 3s ease-in-out infinite;
}

@keyframes pivotPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50%       { box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }
}

.pivot-label    { font-size: 11px; font-weight: 700; color: #f87171; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.pivot-message  { font-size: 15px; font-weight: 600; color: #fde8e8; margin-bottom: 8px; }
.pivot-action   { font-size: 13px; color: rgba(255, 200, 200, 0.8); }

/* Product Idea Cards */
.product-idea-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  transition: all 0.25s;
}

.product-idea-card.top-pick {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.05);
}

.product-idea-card:hover { transform: translateY(-2px); }

.top-pick-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1a1040;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
}

.idea-name        { font-size: 16px; font-weight: 700; color: #e8e0ff; margin-bottom: 6px; }
.idea-description { font-size: 13px; color: rgba(200, 180, 255, 0.8); margin-bottom: 10px; line-height: 1.5; }
.idea-meta        { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.idea-tag {
  background: rgba(129, 140, 248, 0.15);
  color: #818cf8;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.idea-revenue      { font-size: 14px; font-weight: 700; color: #4ade80; margin-bottom: 12px; }
.idea-confidence   { font-size: 12px; color: rgba(200, 180, 255, 0.6); margin-bottom: 14px; }
.idea-accepted-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #4ade80; }

/* Arbitrage Platform Bars */
.arbitrage-platform {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border-left: 4px solid #9333ea;
}

.arbitrage-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.arb-platform-name { font-size: 15px; font-weight: 700; color: #e8e0ff; }
.arb-score {
  background: linear-gradient(135deg, #9333ea, #4f46e5);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.arb-score-bar-wrap { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; margin-bottom: 10px; }
.arb-score-bar { height: 100%; background: linear-gradient(90deg, #9333ea, #818cf8); border-radius: 3px; transition: width 0.8s ease; }

.arb-meta { display: flex; gap: 16px; font-size: 12px; color: rgba(200, 180, 255, 0.7); margin-bottom: 8px; }
.arb-reason { font-size: 13px; color: #c084fc; font-style: italic; }
.arb-budget { font-size: 13px; font-weight: 600; color: #a78bfa; margin-top: 6px; }

/* Market Health Gauge */
.health-gauge {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 16px;
}

.saturation-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sat-low      { background: rgba(34, 197, 94, 0.2);  color: #4ade80; border: 2px solid rgba(34, 197, 94, 0.4); }
.sat-medium   { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 2px solid rgba(245, 158, 11, 0.4); }
.sat-high     { background: rgba(239, 68, 68, 0.2);  color: #f87171; border: 2px solid rgba(239, 68, 68, 0.4); }
.sat-critical { background: rgba(220, 38, 38, 0.3);  color: #fca5a5; border: 2px solid rgba(220, 38, 38, 0.6); animation: criticalPulse 1.5s ease-in-out infinite; }

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(220, 38, 38, 0); }
  50%       { box-shadow: 0 0 20px rgba(220, 38, 38, 0.4); }
}

.blue-ocean-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.blue-ocean-label { font-size: 11px; font-weight: 700; color: #38bdf8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.blue-ocean-text  { font-size: 14px; color: #e0f2fe; line-height: 1.5; }

/* Risk item */
.risk-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.risk-severity { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.sev-low    { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.sev-medium { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.sev-high   { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.risk-text { font-size: 13px; color: rgba(200, 180, 255, 0.85); line-height: 1.5; }

/* Move item */
.move-item {
  background: rgba(129, 140, 248, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid #818cf8;
}

.move-text       { font-size: 13px; font-weight: 600; color: #e8e0ff; margin-bottom: 4px; }
.move-impact     { font-size: 12px; color: rgba(200, 180, 255, 0.7); margin-bottom: 4px; }
.move-difficulty { font-size: 11px; font-weight: 600; }
.diff-easy   { color: #4ade80; }
.diff-medium { color: #fcd34d; }
.diff-hard   { color: #f87171; }

/* Oracle section subtitle */
.oracle-section-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(200, 180, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
