/* ==========================================================================
   CyFun Tool - History Module Styles
   ========================================================================== */

.history {
  max-width: 720px;
}

.history__header {
  margin-bottom: var(--space-xl);
}

.history__header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.history__empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.history__empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.history__empty-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  margin-bottom: var(--space-sm);
}

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

/* ── Timeline ────────────────────────────────────────────────────────────── */

.history__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* ── Entry card ──────────────────────────────────────────────────────────── */

.history-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-fast);
}

.history-card:hover {
  box-shadow: var(--shadow-md);
}

.history-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.history-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.history-card__version {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
}

.history-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.history-card__stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.history-card__stat {
  font-size: var(--text-sm);
}

.history-card__stat-label {
  color: var(--color-text-muted);
  margin-right: var(--space-xs);
}

.history-card__locked-btn {
  opacity: 0.7;
}

/* ── Upsell banner ───────────────────────────────────────────────────────── */

.history__upsell {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--color-primary-bg);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.history__upsell-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.history__upsell-body {
  font-size: var(--text-sm);
}

.history__upsell-body strong {
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}

.history__upsell-body p {
  color: var(--color-text-secondary);
  margin: 0;
}
