/* ═══════════════════════════════════════════════════════════
   STREAK BAR & PROGRESS CHART & SMART CTA
   Premium, Flat, Kırmızı-Beyaz Tasarım
   ═══════════════════════════════════════════════════════════ */

/* ─── Streak Bar ─────────────────────────────────────── */
.streak-bar {
  display: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-xs);
}

.streak-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.streak-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.streak-bar__icon {
  font-size: 1.5rem;
}

.streak-bar__info {
  display: flex;
  flex-direction: column;
}

.streak-bar__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: 1;
}

.streak-bar__label {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-medium);
}

.streak-bar__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

.streak-bar__cta {
  margin-left: auto;
}

/* ─── Progress Chart ─────────────────────────────────── */
.progress-chart {
  display: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
}

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

.progress-chart__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.progress-chart__subtitle {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
}

.progress-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
  height: 160px;
  padding-top: var(--space-md);
}

.progress-chart__bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.progress-chart__bar {
  width: 100%;
  max-width: 48px;
  min-height: 10px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: height var(--transition-slow);
  cursor: pointer;
}

.progress-chart__bar:hover {
  background-color: var(--color-primary-hover);
}

.progress-chart__bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  white-space: nowrap;
}

.progress-chart__bar-label {
  margin-top: var(--space-sm);
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-align: center;
  white-space: nowrap;
}

/* ─── Smart CTA ──────────────────────────────────────── */
.smart-cta {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
  animation: ctaSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ctaSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.smart-cta__streak {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.smart-cta__streak:empty {
  display: none;
}

.smart-cta__next {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.smart-cta__emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.smart-cta__content {
  flex: 1;
}

.smart-cta__message {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .streak-bar__inner {
    justify-content: center;
  }

  .streak-bar__cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .progress-chart__bars {
    height: 120px;
  }

  .progress-chart__bar {
    max-width: 36px;
  }
}
