/* ============================================================
   track.css — Order Tracking Page Styles
   ============================================================ */

/* ── Track Hero ── */
.track-hero {
  background: linear-gradient(160deg, #2c1810 0%, #7b3f00 60%, #4a2511 100%);
  padding: 40px 24px; text-align: center;
}
.track-hero-inner { max-width: 500px; margin: 0 auto; }
.track-hero-icon { font-size: 48px; margin-bottom: 12px; }
.track-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 32px); color: #fff; margin-bottom: 8px;
}
.track-hero p { color: rgba(255,255,255,.7); font-size: 14px; }

/* ── Track Wrap ── */
.track-main { min-height: 70vh; }
.track-wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; }

/* ── Track Card ── */
.track-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 20px;
}
.track-card-title {
  font-family: 'Playfair Display', serif; font-size: 18px;
  color: var(--text-dark); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid var(--cream-dark);
}

/* ── Error ── */
.track-error {
  background: #f8d7da; border-left: 4px solid var(--red);
  color: #842029; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 20px;
}

/* ── Status Banner ── */
.status-banner {
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: #fff; box-shadow: var(--shadow-md);
  animation: slideUp .4s ease;
}
.status-banner-icon { font-size: 36px; flex-shrink: 0; }
.status-banner-info { flex: 1; }
.status-banner-label {
  font-size: 20px; font-weight: 700;
  font-family: 'Playfair Display', serif; text-transform: capitalize;
}
.status-banner-order { font-size: 13px; opacity: .8; margin-top: 2px; letter-spacing: 1px; }
.status-banner-date { text-align: right; font-size: 13px; }

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 0 0 24px; position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ''; position: absolute; left: 19px; top: 38px;
  width: 2px; bottom: 0;
  background: var(--cream-dark);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.done::before { background: linear-gradient(180deg, var(--green), var(--cream-dark)); }
.timeline-step.active::before { background: var(--cream-dark); }

.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; position: relative; z-index: 1;
  background: var(--cream-dark); color: var(--text-light);
  border: 2px solid var(--cream-dark);
  transition: all .3s ease;
}
.timeline-step.done .timeline-dot {
  background: linear-gradient(135deg, var(--green), #1e8449);
  border-color: var(--green); color: #fff;
  box-shadow: 0 4px 12px rgba(39,174,96,.3);
}
.timeline-step.active .timeline-dot {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-color: var(--saffron); color: #fff;
  box-shadow: 0 4px 16px rgba(230,126,34,.4);
  animation: pulse 1.5s ease infinite;
}
.timeline-step.cancelled .timeline-dot {
  background: linear-gradient(135deg, var(--red), #c0392b);
  border-color: var(--red); color: #fff;
}

.timeline-content { padding-top: 8px; flex: 1; }
.timeline-label {
  font-size: 15px; font-weight: 600; color: var(--text-dark);
}
.timeline-step.done   .timeline-label { color: var(--green); }
.timeline-step.active .timeline-label { color: var(--saffron); }
.timeline-desc { font-size: 13px; color: var(--text-light); margin-top: 3px; }

/* ── Order Detail Grid ── */
.order-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 480px) { .order-detail-grid { grid-template-columns: 1fr; } }
.detail-item {
  background: var(--cream); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.detail-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); }
.detail-val { font-size: 14px; font-weight: 500; color: var(--text-dark); line-height: 1.4; }

/* ── Items Table ── */
.items-table-wrap { overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table thead tr { background: linear-gradient(135deg, #2c1810, #4a2511); }
.items-table thead th { padding: 10px 16px; text-align: left; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.items-table tbody tr { border-bottom: 1px solid var(--cream-dark); transition: background .2s; }
.items-table tbody tr:hover { background: var(--cream); }
.items-table tbody tr:last-child { border-bottom: none; }
.items-table tbody td { padding: 12px 16px; vertical-align: middle; }
.items-table tfoot td { padding: 12px 16px; border-top: 2px solid var(--cream-dark); background: var(--cream); }

/* ── Meal Type Chips ── */
.meal-chip {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
}
.meal-breakfast { background: #fff3e0; color: #e67e22; }
.meal-lunch     { background: #e3f2fd; color: #1976d2; }
.meal-dinner    { background: #f3e5f5; color: #7b1fa2; }

/* ── Track Actions ── */
.track-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.track-action-btn {
  flex: 1; min-width: 140px; padding: 14px 20px;
  border-radius: var(--radius-sm); border: 2px solid var(--cream-dark);
  background: var(--white); color: var(--text-mid);
  font-size: 14px; font-weight: 600; font-family: 'Poppins', sans-serif;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.track-action-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.track-action-primary {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-color: transparent; color: #fff;
}
.track-action-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Menu Preview Section (homepage) ── */
.menu-preview-section { margin-bottom: 52px; }
.menu-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 24px;
}
.btn-pdf-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--red), #c0392b);
  color: #fff; padding: 11px 24px; border-radius: 24px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .2s; box-shadow: 0 4px 14px rgba(192,57,43,.3);
}
.btn-pdf-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,.4); }
.btn-track-order {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), #2471a3);
  color: #fff; padding: 11px 24px; border-radius: 24px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .2s; box-shadow: 0 4px 14px rgba(41,128,185,.25);
}
.btn-track-order:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(41,128,185,.35); }

/* ── Today's Menu Quick Preview Cards ── */
.preview-meal-tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.preview-tab {
  padding: 8px 18px; border-radius: 20px; border: 2px solid var(--cream-dark);
  background: var(--white); cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .2s; color: var(--text-mid);
}
.preview-tab.active {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-color: transparent; color: #fff;
}
.preview-items-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.preview-item {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: all .2s;
}
.preview-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.preview-item-name { font-size: 14px; font-weight: 600; color: var(--text-dark); flex: 1; }
.preview-item-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.preview-item-price { font-size: 15px; font-weight: 700; color: var(--saffron); white-space: nowrap; font-family: 'Playfair Display', serif; }

@media (max-width: 640px) {
  .status-banner { flex-direction: column; text-align: center; }
  .status-banner-date { text-align: center; }
  .track-wrap { padding: 20px 14px 80px; }
}
