/* Analyzing page */
.analyzing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space-6);
}

.analyzing__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  text-align: center;
  margin-bottom: var(--space-2);
}

.analyzing__url {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
  min-height: 1.4em;
}

/* Card wrapper */
.analyzing__card {
  max-width: 480px;
  width: 100%;
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Progress bar */
.progress-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.progress-bar__track {
  flex: 1;
  height: 4px;
  background-color: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  animation: progressPulse 2s ease-in-out infinite;
}

.progress-bar__pct {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--accent);
  min-width: 3ch;
  text-align: right;
}

/* Pipeline */
.pipeline {
  width: 100%;
}

/* Pipeline step */
.pipeline-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  position: relative;
  padding-bottom: var(--space-4);
}

.pipeline-step:last-child {
  padding-bottom: 0;
}

/* Connector line between steps */
.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 36px;
  width: 2px;
  bottom: 0;
  background-color: var(--border);
  transition: background-color var(--transition-normal);
}

.pipeline-step--done:not(:last-child)::after {
  background-color: var(--green);
}

.pipeline-step--active:not(:last-child)::after {
  background-color: var(--accent);
}

/* Step icon area */
.pipeline-step__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: var(--z-base);
  background-color: var(--surface-2);
  color: var(--text-muted);
}

.pipeline-step--done .pipeline-step__icon {
  background-color: var(--green-bg);
  color: var(--green);
}

.pipeline-step--active .pipeline-step__icon {
  background-color: var(--warning-bg);
  color: var(--accent);
}

/* Active step emphasis */
.pipeline-step--active .pipeline-step__label {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

/* Step content */
.pipeline-step__content {
  padding-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pipeline-step__label {
  font-weight: var(--font-medium);
  line-height: 1.3;
}

.pipeline-step--done .pipeline-step__label {
  color: var(--green);
}

.pipeline-step__time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.pipeline-step__detail {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Step icons */
.step-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--text-muted);
}

/* Tips */
.analyzing__tip {
  max-width: 480px;
  width: 100%;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-6);
  transition: opacity 0.4s ease;
  min-height: 2.8em;
}

.analyzing__tip--fading {
  opacity: 0;
}

/* Back link */
.analyzing__back {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  transition: color var(--transition-fast);
}

.analyzing__back:hover {
  color: var(--text-secondary);
}

/* Error state */
.analyzing__error {
  max-width: 480px;
  width: 100%;
  color: var(--danger);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  text-align: center;
  display: none;
}

.analyzing__error--visible {
  display: block;
}

.analyzing__retry {
  color: var(--accent);
  margin-left: var(--space-2);
}
