/* Durum sayfası — sadece bu sayfaya özel ek stil.
   styles.css'in token'larını ve temel layout'unu kullanır. */

.status-card {
  margin-top: 24px;
  text-align: center;
}

/* Üst rozet — Aktif (yeşil), yaklaşıyor (sarı), dolmuş (kırmızı) */
.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.status-badge.ok {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-badge.warn {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
}

.status-badge.bad {
  background: var(--color-error-soft);
  color: var(--color-error);
  border: 1px solid var(--color-error-border);
}

/* "X gün kaldı" — sayfanın ana mesajı, büyük ve net */
.status-headline {
  margin: 8px 0 24px;
}

.status-days {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -1px;
}

.status-days-label {
  margin-top: 6px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* Detay satırları — etiket sol, değer sağ */
.status-details {
  margin: 0 auto;
  max-width: 420px;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  margin: 0;
}

.status-row dt {
  color: var(--color-text-tertiary);
  font-weight: 400;
  margin: 0;
}

.status-row dd {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  margin: 0;
  word-break: break-all;
}

/* Uyarı/CTA bölümü — süresi yaklaşan veya dolmuş hesaplar için */
.status-cta {
  margin-top: 24px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.cta-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* CTA altındaki ikincil "WhatsApp'tan ulaşın" linki */
.cta-secondary {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--color-text-tertiary);
}
.cta-secondary a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

/* Aktif + uzun süreli hesaplarda küçük "Süreyi yenile" linki */
.status-always-renew {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}
.status-always-renew a {
  color: var(--color-link, #0071e3);
  text-decoration: none;
}
.status-always-renew a:hover {
  text-decoration: underline;
}

/* ---- Yenileme geçmişi timeline ---- */
.renewal-history-section {
  margin-top: 20px;
  padding: 24px 28px;
}
.renewal-history-section h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.renewal-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.renewal-history-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #f5f5f7;
  border-radius: 10px;
}

.renewal-history-icon {
  font-size: 20px;
  text-align: center;
  width: 32px;
  height: 32px;
  line-height: 32px;
}

.renewal-history-body {
  min-width: 0;
}

.renewal-history-line1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.renewal-history-method {
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
}

.renewal-history-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.renewal-history-status-ok      { background: #e7f5ee; color: #1e7e34; }
.renewal-history-status-warn    { background: #fffbea; color: #806600; }
.renewal-history-status-bad     { background: #fde7e9; color: #a32218; }
.renewal-history-status-neutral { background: #ebebed; color: #6e6e73; }

.renewal-history-line2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.renewal-history-package { color: var(--color-text); }
.renewal-history-added   { color: #1e7e34; font-weight: 500; }
.renewal-history-amount  { color: var(--color-text); font-weight: 500; }

.renewal-history-date {
  font-size: 12px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.renewal-history-empty {
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: 14px;
  padding: 20px 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .renewal-history-item {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }
  .renewal-history-date {
    grid-column: 2;
    text-align: left;
    margin-top: 2px;
  }
  .renewal-history-line2 {
    flex-wrap: wrap;
  }
}

/* Mobil */
@media (max-width: 520px) {
  .status-days {
    font-size: 44px;
  }
  .status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .status-row dd {
    text-align: left;
  }
}
