/* ══════════════════════════════════════════
   ElektroGH.wien – Lieferstatus Page Styles
   ══════════════════════════════════════════ */

/* ──────────── PAGE HERO ──────────── */
.lieferstatus-hero {
  background: var(--black);
  padding: 48px 0;
  text-align: center;
}
.lieferstatus-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.lieferstatus-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}
.lieferstatus-hero h1 .lucide { width: 28px; height: 28px; }
.lieferstatus-hero p { font-size: 0.95rem; color: rgba(255,255,255,0.5); }

/* ──────────── TRACKING CARD ──────────── */
.tracking-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.tracking-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.tracking-card-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tracking-card-icon .lucide { width: 24px; height: 24px; color: var(--yellow-dark); }
.tracking-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 4px;
}
.tracking-card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.tracking-form .form-group { margin-bottom: 12px; }

.tracking-input-row {
  display: flex;
  gap: 12px;
}
.tracking-input-row .form-input {
  flex: 1;
  height: 48px;
  font-size: 0.95rem;
  font-family: 'DM Mono', monospace;
}
.tracking-input-row .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

.tracking-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.tracking-note .lucide { width: 14px; height: 14px; flex-shrink: 0; }

/* ──────────── TRACKING RESULT ──────────── */
.tracking-result {
  max-width: 720px;
  margin: 0 auto;
}

.tracking-result-header {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tracking-result-order { display: flex; flex-direction: column; gap: 2px; }
.tracking-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tracking-result-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  font-family: 'DM Mono', monospace;
}
.tracking-result-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  padding: 4px 12px;
  border-radius: 8px;
}
.tracking-result-status .lucide { width: 16px; height: 16px; }

/* ──────────── TIMELINE ──────────── */
.tracking-timeline-section {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.tracking-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.tracking-section-title .lucide { width: 20px; height: 20px; color: var(--yellow-dark); }

.tracking-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.timeline-step:last-child { padding-bottom: 0; }

/* Vertical line connector */
.timeline-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.completed::before { background: var(--green); }
.timeline-step.active::before { background: var(--border); }

/* ──────────── TIMELINE DOT ──────────── */
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.timeline-dot .lucide { width: 16px; height: 16px; }

/* Completed state */
.timeline-step.completed .timeline-dot {
  background: var(--green);
  color: var(--white);
}
.timeline-step.completed .timeline-dot .lucide { width: 16px; height: 16px; }

/* Active state */
.timeline-step.active .timeline-dot {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 0 0 6px rgba(240,180,41,0.2);
  animation: timeline-pulse 2s ease-in-out infinite;
}

/* Pending state */
.timeline-step.pending .timeline-dot {
  background: var(--surface);
  color: var(--muted-light);
  border: 2px solid var(--border);
}

/* ──────────── TIMELINE CONTENT ──────────── */
.timeline-content {
  padding-top: 4px;
  min-height: 32px;
}
.timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}
.timeline-step.pending .timeline-title { color: var(--muted-light); }

.timeline-detail {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.timeline-step.pending .timeline-detail { color: var(--muted-light); }

.timeline-time {
  font-size: 0.75rem;
  color: var(--muted-light);
  font-family: 'DM Mono', monospace;
  margin-top: 4px;
}

/* Pulse animation */
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(240,180,41,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(240,180,41,0.08); }
}

/* ──────────── ORDER DETAILS ──────────── */
.tracking-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tracking-details-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.tracking-details-card .tracking-section-title { margin-bottom: 16px; }

.tracking-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tracking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.tracking-item-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tracking-item-icon .lucide { width: 18px; height: 18px; color: var(--muted); }
.tracking-item-info { flex: 1; min-width: 0; }
.tracking-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tracking-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}
.tracking-item-qty {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Delivery info */
.tracking-delivery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.delivery-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.delivery-info-row:last-child { border-bottom: none; }
.delivery-info-label {
  font-size: 0.82rem;
  color: var(--muted);
  flex-shrink: 0;
}
.delivery-info-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  text-align: right;
}

/* ──────────── DELIVERY GRID ──────────── */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.delivery-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.delivery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.delivery-card-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.delivery-card-icon .lucide { width: 26px; height: 26px; color: var(--yellow-dark); }
.delivery-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.delivery-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.delivery-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow-dark);
  background: var(--yellow-light);
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ──────────── CONTACT SECTION ──────────── */
.lieferstatus-contact {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.lieferstatus-contact-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lieferstatus-contact-icon .lucide { width: 28px; height: 28px; color: var(--yellow-dark); }
.lieferstatus-contact-content h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}
.lieferstatus-contact-content p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.lieferstatus-contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.lieferstatus-contact-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: 12px;
}
.lieferstatus-contact-hours .lucide { width: 14px; height: 14px; }

/* ──────────── RESPONSIVE: 1024px ──────────── */
@media (max-width: 1024px) {
  .delivery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tracking-details-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 768px) {
  .lieferstatus-hero { padding: 32px 0; }
  .lieferstatus-hero h1 { font-size: 1.5rem; }

  .tracking-card { padding: 24px; }
  .tracking-card-header { flex-direction: column; gap: 12px; }

  .tracking-input-row {
    flex-direction: column;
  }
  .tracking-input-row .btn-primary { width: 100%; justify-content: center; }

  .tracking-result-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .tracking-timeline-section { padding: 20px; }
  .tracking-timeline { padding-left: 10px; }

  .tracking-details-grid { grid-template-columns: 1fr; }
  .tracking-details-card { padding: 20px; }
  .tracking-item-name { white-space: normal; }

  .delivery-grid { grid-template-columns: 1fr; }

  .lieferstatus-contact {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .lieferstatus-contact-icon { margin: 0 auto; }
  .lieferstatus-contact-actions { justify-content: center; }
  .lieferstatus-contact-hours { justify-content: center; }

  .lieferstatus-contact-actions .btn-primary,
  .lieferstatus-contact-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0 16px;
  }
}

/* ──────────── REDUCED MOTION ──────────── */
@media (prefers-reduced-motion: reduce) {
  .timeline-step.active .timeline-dot {
    animation: none;
    box-shadow: 0 0 0 6px rgba(240,180,41,0.2);
  }
  .delivery-card:hover { transform: none; }
}
