/* ==========================================================================
   Platform v3.1.0 Workflow-Driven Calculator Experience Stylesheet
   ========================================================================== */

.exp-wrapper {
  padding: 2.5rem 0;
  background: var(--bg-primary);
  color: var(--text-main);
}

/* Experience 1: Identity Header */
.exp-identity-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.exp-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.exp-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.exp-purpose {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.exp-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Experience 2: 2-Column Application Workspace */
.exp-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.exp-panel-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exp-panel-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exp-panel-card input.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}

.exp-panel-card input.search-input:focus {
  border-color: var(--primary-500);
}

.exp-result-display-box {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 100%);
  border: 2px solid var(--primary-500);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

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

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

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

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

/* Experience 3: Unified Understanding Panel */
.exp-understanding-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.exp-formula-code-box {
  background: var(--gray-900);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-teal-500);
}

.exp-step-card {
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Experience 4: Action Center */
.exp-action-center-box {
  background: var(--bg-primary);
  border: 2px solid var(--primary-100);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.exp-actions-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.exp-action-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

.exp-action-btn.primary {
  background: var(--primary-600);
  color: #ffffff;
}

.exp-action-btn.primary:hover {
  background: var(--primary-700);
}

.exp-action-btn.secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.exp-action-btn.secondary:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
}

/* Experience 5: Journey Navigator */
.exp-journey-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

/* Experience 6: Confidence Layer */
.exp-confidence-bar {
  background: var(--gray-900);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

.confidence-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.confidence-chip {
  padding: 0.5rem 1rem;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #2dd4bf;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .exp-workspace-grid {
    grid-template-columns: 1fr;
  }
}
