/* ==========================================================================
   Platform v3.1.2 Intelligent Result & Decision Engine (IRDE) Stylesheet
   ========================================================================== */

/* Primary Result Box */
.irde-result-card {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 100%);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

/* Result Update Pulse Animation */
@keyframes resultPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.irde-result-card.updated {
  animation: resultPulse 0.4s ease-out;
}

.irde-result-num {
  font-size: 3.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-600);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.irde-result-unit {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Secondary Derived Metrics Grid */
.irde-secondary-grid {
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  margin-bottom: 1.25rem;
}

.irde-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.irde-metric-row strong {
  color: var(--text-main);
}

/* Human Interpretation Card */
.irde-interpretation-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.irde-interpretation-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-700);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.irde-interpretation-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

/* Contextual Knowledge Insights */
.irde-insights-container {
  margin-top: 1rem;
}

.irde-insight-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
}

.irde-insight-box.tip {
  border-left: 3px solid #10b981;
}

.irde-insight-box.info {
  border-left: 3px solid #3b82f6;
}

.irde-insight-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.irde-insight-body {
  color: var(--text-muted);
}
