/* ═══════════════════════════════════════════════════════
   siparis-takip.css — Sipariş sorgulama sayfası
   Miras: main.css > siparis-takip.css
═══════════════════════════════════════════════════════ */

/* ── Sayfa alanı ────────────────────────────────────── */
.zp-takip-page {
  background: var(--zp-light);
  padding: 2rem 0 4rem;
}

/* ── Sorgu kutusu ───────────────────────────────────── */
.zp-takip-hero {
  background: linear-gradient(135deg, var(--zp-dark) 0%, #2d1b3e 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.zp-takip-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(230, 57, 70, .12);
}
.zp-takip-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(244, 162, 97, .08);
}
.zp-takip-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(230, 57, 70, .18);
  color: var(--zp-primary);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}
.zp-takip-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}
.zp-takip-hero p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ── Sorgu formu ────────────────────────────────────── */
.zp-takip-form-card {
  background: #fff;
  border-radius: var(--zp-radius);
  box-shadow: var(--zp-shadow);
  padding: 2rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.zp-takip-form-card .zp-form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--zp-dark);
  margin-bottom: .35rem;
  display: block;
}
.zp-takip-form-card .zp-form-input {
  width: 100%;
  border: 1.5px solid var(--zp-border);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .9rem;
  color: var(--zp-dark);
  background: #fff;
  outline: none;
  transition: var(--zp-transition);
}
.zp-takip-form-card .zp-form-input:focus {
  border-color: var(--zp-primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, .1);
}
.zp-takip-submit {
  width: 100%;
  padding: .85rem;
  background: var(--zp-primary);
  color: #fff;
  border: none;
  border-radius: 50rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--zp-transition);
}
.zp-takip-submit:hover {
  background: var(--zp-primary-dark);
  transform: translateY(-1px);
}

/* ── Hata mesajı ────────────────────────────────────── */
.zp-takip-error {
  display: none;
  background: #f8d7da;
  color: #842029;
  border-radius: 10px;
  padding: .875rem 1.25rem;
  font-size: .875rem;
  margin-top: 1rem;
  align-items: center;
  gap: .75rem;
}
.zp-takip-error.show { display: flex; }

/* ── Sonuç kartı ────────────────────────────────────── */
.zp-takip-result {
  display: none;
  max-width: 720px;
  margin: 0 auto;
}
.zp-takip-result.show { display: block; }

.zp-takip-result-card {
  background: #fff;
  border-radius: var(--zp-radius);
  box-shadow: var(--zp-shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

/* Sipariş başlık şeridi */
.zp-takip-result-header {
  background: var(--zp-dark);
  color: #fff;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.zp-takip-result-no {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.zp-takip-result-date {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: .15rem;
}

.zp-takip-result-body {
  padding: 1.5rem 1.75rem;
}

/* ── Ürün listesi (kompakt) ─────────────────────────── */
.zp-takip-urun {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--zp-border);
}
.zp-takip-urun:last-child { border-bottom: none; }
.zp-takip-urun img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.zp-takip-urun-info { flex: 1; min-width: 0; }
.zp-takip-urun-name {
  font-weight: 700;
  font-size: .875rem;
  color: var(--zp-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zp-takip-urun-custom {
  font-size: .75rem;
  color: var(--zp-primary);
  margin-top: .1rem;
}
.zp-takip-urun-price {
  font-weight: 800;
  font-size: .875rem;
  color: var(--zp-dark);
  flex-shrink: 0;
}

/* ── Kargo takip butonu ─────────────────────────────── */
.zp-takip-kargo-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--zp-primary);
  color: #fff;
  border-radius: 50rem;
  padding: .55rem 1.4rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--zp-transition);
}
.zp-takip-kargo-btn:hover {
  background: var(--zp-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Timeline (aynı panel.css yapısı) ───────────────── */
.zp-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.zp-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--zp-border);
}
.zp-timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.zp-timeline-item:last-child { padding-bottom: 0; }
.zp-timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zp-border);
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.zp-timeline-item.done .zp-timeline-dot {
  background: #d1e7dd;
  color: #0f5132;
}
.zp-timeline-item.active-step .zp-timeline-dot {
  background: var(--zp-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(230,57,70,.15);
}
.zp-timeline-body {
  padding-top: .5rem;
}
.zp-timeline-body strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--zp-dark);
}
.zp-timeline-body span {
  font-size: .78rem;
  color: var(--zp-gray);
}

/* ── Sıfırla linki ──────────────────────────────────── */
.zp-takip-reset {
  font-size: .82rem;
  color: var(--zp-gray);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.zp-takip-reset:hover { color: var(--zp-primary); }
