/* Miller's Law Demo Styles */

.miller-instructions {
  text-align: center;
  padding: var(--space-8);
}

.miller-instructions .instruction-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.miller-instructions .instruction-subtext {
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Sequence Display */
.miller-sequence {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  min-height: 200px;
}

.sequence-item {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sequence-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.sequence-progress {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease;
}

.progress-dot.active {
  background: var(--fg);
}

.progress-dot.shown {
  background: var(--fg-muted);
}

/* Input Area */
.miller-input {
  text-align: center;
  padding: var(--space-8);
}

.input-prompt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.sequence-input {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  text-align: center;
  padding: var(--space-4);
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
  max-width: 300px;
  letter-spacing: 0.2em;
  border-radius: 0;
}

.sequence-input:focus {
  outline: none;
  border-color: var(--fg);
}

.miller-input .btn {
  margin-top: var(--space-4);
}

/* Feedback */
.miller-feedback {
  text-align: center;
  padding: var(--space-8);
}

.feedback-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.feedback-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feedback-detail {
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

/* Results */
.miller-results {
  text-align: center;
  padding: var(--space-6);
}

.results-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.results-chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-3);
  height: 180px;
  margin-bottom: var(--space-6);
  padding: 0 var(--space-4);
}

.result-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.bar-fill {
  width: 40px;
  background: var(--border);
  transition: height 0.5s ease, background 0.3s ease;
}

.bar-fill.success {
  background: var(--fg);
}

.bar-fill.fail {
  background: var(--fg-muted);
}

.bar-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.results-insight {
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
  .sequence-item {
    font-size: 3rem;
  }

  .sequence-input {
    font-size: var(--text-xl);
    max-width: 250px;
  }

  .results-chart {
    gap: var(--space-2);
  }

  .bar-fill {
    width: 30px;
  }
}
