/**
 * SocialAlign - Analyzer Styles
 * Version: 1.2.2
 *
 * Styles specific to the Situation Analyzer
 */

/* ==================== ANALYZER FORM ==================== */

.analyzer {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.analyzer__label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.analyzer__input {
  margin-bottom: var(--space-lg);
}

.analyzer__hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  margin-bottom: 0;
}

.analyzer__submit {
  display: flex;
  justify-content: center;
}

.textarea--large {
  min-height: 160px;
}

/* ==================== ANALYSIS SECTION ==================== */

.analysis-section {
  margin-bottom: var(--space-2xl);
}

/* ==================== ANALYSIS CARDS ==================== */

.analysis-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  animation: slideUp 0.3s ease;
}

.analysis-card__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-divider);
}

.analysis-card__title svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.analysis-card__content {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
}

.analysis-card__content p {
  margin-bottom: var(--space-md);
}

.analysis-card__content p:last-child {
  margin-bottom: 0;
}

/* ==================== PERSON CARD ==================== */

.person {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.person:last-child {
  margin-bottom: 0;
}

.person__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.person__info {
  flex: 1;
}

.person__name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.person__archetype {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  background-color: var(--color-accent-subtle);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.person__lens {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* ==================== FRICTION POINT ==================== */

.friction {
  padding: var(--space-md);
  background-color: var(--color-warning-subtle);
  border-left: 3px solid var(--color-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.friction__title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.friction__desc {
  color: var(--color-text-secondary);
  margin: 0;
}

/* ==================== PERSPECTIVE ==================== */

.perspective {
  padding: var(--space-md);
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.perspective:last-child {
  margin-bottom: 0;
}

.perspective__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.perspective__name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.perspective__sees,
.perspective__feels {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.perspective__sees strong,
.perspective__feels strong {
  color: var(--color-text-primary);
}

/* ==================== BRIDGE SUGGESTION ==================== */

.bridge {
  padding: var(--space-md);
  background-color: var(--color-success-subtle);
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-md);
}

.bridge:last-child {
  margin-bottom: 0;
}

.bridge__for {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-success);
  margin-bottom: var(--space-xs);
}

.bridge__suggestion {
  color: var(--color-text-primary);
  margin: 0;
}

.bridge__example {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
  margin-bottom: 0;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-border);
}

/* ==================== KEY LESSON ==================== */

.lesson {
  padding: var(--space-lg);
  background-color: var(--color-accent-subtle);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.lesson__text {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  font-style: italic;
}

/* ==================== ANALYSIS ACTIONS ==================== */

.analysis-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

/* ==================== EXAMPLE CARDS ==================== */

.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.example-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.example-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.example-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.example-card__title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.example-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ==================== CTA LIGHT VARIANT ==================== */

.cta--light {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* ==================== ERROR STATE ==================== */

.analysis-error {
  padding: var(--space-xl);
  background-color: var(--color-error-subtle);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.analysis-error p {
  color: var(--color-error);
  margin: 0;
  font-weight: var(--font-weight-medium);
}

/* ==================== CONTENT BLOCKED STATE ==================== */

.content-blocked {
  text-align: left;
}

.content-blocked h3 {
  color: var(--color-error);
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.content-blocked p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-normal);
}

.content-blocked ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  padding: 0;
  list-style-type: disc;
}

.content-blocked li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-normal);
}

.content-blocked p:last-child {
  margin-bottom: 0;
  font-weight: var(--font-weight-medium);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
  .analyzer {
    padding: var(--space-lg);
  }

  .person {
    flex-direction: column;
    text-align: center;
  }

  .person__avatar {
    margin: 0 auto;
  }

  .example-cards {
    grid-template-columns: 1fr;
  }
}
