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

.page-header {
  position: relative;
  padding: 120px 0 60px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 65%);
}

.page-header-content { position: relative; z-index: 1; }

.orders-main {
  padding: var(--space-10) 0 var(--space-20);
  min-height: 60vh;
}

/* ——— Search Box ——— */
.order-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-10);
}

.order-search-box {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.order-search-input-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.order-demo-refs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.demo-ref-btn {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-400);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}

.demo-ref-btn:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--purple-600);
}

/* ——— Order Card ——— */
.order-card {
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.order-ref {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.order-service-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-1);
  color: var(--text-secondary);
}

.order-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ——— Status Stepper ——— */
.status-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-6);
  position: relative;
}

.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--border-subtle);
  transition: background var(--transition-base);
}

.stepper-item.completed:not(:last-child)::after {
  background: var(--gradient-purple);
}

.stepper-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
  transition: all var(--transition-base);
  margin-bottom: var(--space-3);
}

.stepper-item.completed .stepper-dot {
  background: var(--gradient-purple);
  border-color: var(--purple-600);
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.stepper-item.active .stepper-dot {
  background: rgba(59,130,246,0.15);
  border-color: #3B82F6;
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition-fast);
}

.stepper-item.completed .stepper-label,
.stepper-item.active .stepper-label {
  color: var(--text-primary);
}

.stepper-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

/* ——— Order Details ——— */
.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.order-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.order-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.order-detail-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ——— All Orders List ——— */
.all-orders-section {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.order-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.order-list-item:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
  box-shadow: var(--shadow-purple);
}

.order-list-ref {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--purple-400);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.order-list-name {
  font-size: 1rem;
  font-weight: 600;
}

.order-list-seller {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.order-list-price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .order-card-header { flex-direction: column; }
  .order-details-grid { grid-template-columns: 1fr; }
  .order-list-item { grid-template-columns: 1fr auto; }
  .order-list-price { grid-column: 2; grid-row: 1; }
}

@media (max-width: 480px) {
  .status-stepper { gap: var(--space-2); }
  .stepper-label { font-size: 0.7rem; }
  .order-list-item { grid-template-columns: 1fr; }
}
