/* ============================================
   Track Order Page CSS
   YouTube Premium color scheme
   ============================================ */

/* ===== Track Hero ===== */
.track-hero {
  background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
  padding: 80px 20px 60px;
  text-align: center;
  color: #fff;
}

.track-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.track-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.track-hero-subtitle {
  font-size: 1.1rem;
  margin: 0 0 36px;
  opacity: 0.9;
  line-height: 1.5;
}

/* ===== Search Box ===== */
.track-search-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.track-search-row {
  display: flex;
  gap: 10px;
}

.track-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.track-input:focus {
  border-color: #FF0000;
}

.track-input::placeholder {
  color: #999;
}

.track-btn {
  padding: 14px 36px;
  background: #FF0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.track-btn:hover {
  background: #cc0000;
}

.track-btn:active {
  transform: scale(0.97);
}

/* ===== Result Section ===== */
.track-result-section {
  padding: 48px 20px 60px;
  background: #f9f9f9;
  min-height: 300px;
}

.track-result-section .container {
  max-width: 760px;
}

.track-order-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Order header */
.track-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.track-order-id-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-order-id-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.track-order-id-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #333;
}

.track-order-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #555;
}

.track-country-flag {
  width: 32px;
  height: 24px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

/* Status badge */
.track-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.track-status-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.track-status-badge.status-pending {
  background: #e3f2fd;
  color: #1976d2;
}

.track-status-badge.status-processing {
  background: #fff8e1;
  color: #f57c00;
}

.track-status-badge.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Details grid */
.track-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.track-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-detail-label {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.track-detail-value {
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
}

/* Renew button */
.track-renew-wrap {
  margin-bottom: 32px;
}

.track-renew-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #FF0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: 'Inter', sans-serif;
}

.track-renew-btn:hover {
  background: #cc0000;
}

.track-renew-btn:active {
  transform: scale(0.97);
}

/* ===== Timeline ===== */
.track-timeline {
  margin-top: 12px;
  position: relative;
}

.track-timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.track-timeline-line {
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: #e0e0e0;
  z-index: 1;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}

.track-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-step.completed .track-step-icon {
  background: #2e7d32;
}

.track-step.current .track-step-icon {
  background: #FF0000;
}

.track-step.pending .track-step-icon {
  background: #e0e0e0;
}

.track-step-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bbb;
}

.track-step-label {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
  max-width: 90px;
  line-height: 1.3;
}

.track-step.completed .track-step-label {
  color: #2e7d32;
}

.track-step.current .track-step-label {
  color: #FF0000;
}

.track-step.pending .track-step-label {
  color: #aaa;
}

/* Spinner for current step */
.track-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: track-spin 0.8s linear infinite;
}

@keyframes track-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Not Found ===== */
.track-notfound-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.track-notfound-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.track-notfound-icon {
  margin-bottom: 16px;
}

.track-notfound-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #333;
  margin: 0 0 12px;
}

.track-notfound-desc {
  font-size: 1rem;
  color: #777;
  line-height: 1.5;
  margin: 0 0 24px;
}

.track-notfound-link {
  display: inline-block;
  padding: 12px 28px;
  background: #FF0000;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.track-notfound-link:hover {
  background: #cc0000;
}

.track-notfound-link:active {
  transform: scale(0.97);
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .track-hero {
    padding: 60px 20px 48px;
  }

  .track-hero-title {
    font-size: 2rem;
  }

  .track-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .track-search-row {
    flex-direction: column;
  }

  .track-btn {
    width: 100%;
  }

  .track-order-card {
    padding: 24px;
  }

  .track-order-header {
    flex-direction: column;
    gap: 12px;
  }

  .track-order-id-value {
    font-size: 1.3rem;
  }

  .track-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .track-step-label {
    font-size: 0.75rem;
    max-width: 70px;
  }

  .track-step-icon {
    width: 38px;
    height: 38px;
  }

  .track-timeline-line {
    top: 19px;
    left: 12.5%;
    right: 12.5%;
  }
}

/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
  .track-hero {
    padding: 48px 16px 40px;
  }

  .track-hero-title {
    font-size: 1.7rem;
  }

  .track-hero-subtitle {
    font-size: 0.9rem;
  }

  .track-hero-icon {
    width: 64px;
    height: 64px;
  }

  .track-search-box {
    padding: 16px;
  }

  .track-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .track-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .track-order-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .track-order-id-value {
    font-size: 1.15rem;
  }

  .track-detail-value {
    font-size: 0.95rem;
  }

  .track-timeline-steps {
    gap: 4px;
  }

  .track-step-label {
    font-size: 0.7rem;
    max-width: 60px;
  }

  .track-step-icon {
    width: 32px;
    height: 32px;
  }

  .track-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }

  .track-timeline-line {
    top: 16px;
  }

  .track-notfound-card {
    padding: 36px 20px;
  }

  .track-notfound-title {
    font-size: 1.35rem;
  }
}
