/* ============================================
   TRACKING PAGE STYLES
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-tertiary: #16162a;
    --bg-card: #1a1a2e;
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-blue: #00a8ff;
    --accent-gradient: linear-gradient(135deg, #00d4aa, #00a8ff);
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b8b;
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #00d26a;
    --warning: #ffb300;
    --font-primary: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 16px 40px;
    display: flex; align-items: center; justify-content: space-between;
}

.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-primary);
    font-size: 1.3rem; font-weight: 600;
}
.logo-icon { font-size: 1.8rem; }
.logo-text .accent { color: var(--accent-primary); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.95rem; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-primary); }

.nav-actions { display: flex; gap: 12px; }
.btn-nav {
    padding: 10px 20px; border-radius: 8px; text-decoration: none;
    font-size: 0.9rem; color: var(--text-secondary);
}

/* Page */
.tracking-page { padding: 120px 0 60px; min-height: calc(100vh - 80px); }

/* Search Section */
.search-section { display: flex; justify-content: center; padding: 60px 0; }

.search-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 32px; padding: 60px 80px; text-align: center;
    max-width: 700px; width: 100%;
}

.search-icon-large { font-size: 4rem; margin-bottom: 24px; }

.search-card h1 { font-size: 2.5rem; margin-bottom: 12px; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.search-card > p { color: var(--text-secondary); margin-bottom: 40px; }

.search-form { display: flex; gap: 12px; margin-bottom: 24px; }
.search-form input {
    flex: 1; padding: 16px 24px; background: var(--bg-tertiary);
    border: 2px solid var(--border-color); border-radius: 14px;
    color: var(--text-primary); font-size: 1.1rem;
    font-family: var(--font-mono); text-transform: uppercase;
    letter-spacing: 1px;
}
.search-form input:focus { outline: none; border-color: var(--accent-primary); }
.search-form input::placeholder { text-transform: none; letter-spacing: 0; }

.btn {
    padding: 16px 32px; border: none; border-radius: 14px;
    font-family: var(--font-primary); font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent-primary); color: #000; }
.btn-primary:hover { background: var(--accent-secondary); }
.btn-secondary {
    background: transparent; color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.demo-orders {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap;
}
.demo-orders span { color: var(--text-muted); font-size: 0.9rem; }
.demo-orders button {
    padding: 8px 16px; background: var(--bg-tertiary);
    border: 1px solid var(--border-color); border-radius: 8px;
    color: var(--accent-primary); font-family: var(--font-mono);
    font-size: 0.85rem; cursor: pointer; transition: all 0.2s;
}
.demo-orders button:hover { border-color: var(--accent-primary); }

/* Tracking Result */
.tracking-result.hidden { display: none; }

.result-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.order-info { display: flex; align-items: center; gap: 16px; }
.order-number {
    font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono);
}
.order-status {
    padding: 8px 16px; background: rgba(0, 212, 170, 0.15);
    border: 1px solid var(--accent-primary); border-radius: 20px;
    font-size: 0.9rem; color: var(--accent-primary);
}
.order-status.delivered {
    background: rgba(0, 210, 106, 0.15);
    border-color: var(--success); color: var(--success);
}
.order-status.transit {
    background: rgba(0, 168, 255, 0.15);
    border-color: var(--accent-blue); color: var(--accent-blue);
}

/* Tracking Grid */
.tracking-grid {
    display: grid; grid-template-columns: 1fr 400px; gap: 32px;
}

/* Timeline */
.timeline-section {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 32px;
}

.timeline-section h2 { margin-bottom: 32px; }

.timeline { position: relative; }

.timeline-item {
    display: flex; gap: 24px; position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: ''; position: absolute;
    left: 20px; top: 44px; bottom: 0;
    width: 2px; background: var(--border-color);
}

.timeline-item:last-child::before { display: none; }

.timeline-item.completed::before { background: var(--accent-primary); }

.timeline-marker {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--bg-tertiary); border: 2px solid var(--border-color);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: var(--accent-primary); border-color: var(--accent-primary);
}

.timeline-item.active .timeline-marker {
    background: var(--accent-blue); border-color: var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(0, 168, 255, 0); }
}

.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; margin-bottom: 4px; }
.timeline-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-desc { font-size: 0.9rem; color: var(--text-secondary); }

.timeline-item.pending .timeline-title,
.timeline-item.pending .timeline-desc { color: var(--text-muted); }

/* Details Section */
.details-section { display: flex; flex-direction: column; gap: 20px; }

.detail-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 24px;
}

.detail-card h3 { margin-bottom: 20px; font-size: 1.1rem; }

/* Vehicle Detail */
.vehicle-detail { display: flex; gap: 16px; }
.vehicle-image {
    width: 80px; height: 80px; background: var(--bg-tertiary);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 2.5rem;
}
.vehicle-info { display: flex; flex-direction: column; }
.vehicle-info .brand { font-size: 0.8rem; color: var(--accent-primary); }
.vehicle-info .model { font-weight: 600; font-size: 1.1rem; }
.vehicle-info .specs { font-size: 0.85rem; color: var(--text-muted); }

/* Delivery Details */
.delivery-row {
    display: flex; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.delivery-row:last-child { border-bottom: none; }
.delivery-row .label { color: var(--text-muted); }
.delivery-row .value { font-weight: 500; }
.delivery-row .value.highlight { color: var(--accent-primary); }

/* Map */
.map-card { min-height: 200px; }
.map-container {
    background: var(--bg-tertiary); border-radius: 16px;
    padding: 32px; position: relative;
}

.map-placeholder { position: relative; }
.ship-icon {
    font-size: 2rem; position: absolute;
    left: 50%; transform: translateX(-50%);
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.route-line {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 60px; padding-top: 20px;
    border-top: 3px dashed var(--border-color);
    position: relative;
}

.route-line::before {
    content: ''; position: absolute;
    left: 0; top: -3px;
    width: var(--progress, 40%); height: 3px;
    background: var(--accent-gradient);
}

.port { font-size: 0.85rem; color: var(--text-secondary); }
.port.end { color: var(--accent-primary); }
.ship-position {
    position: absolute; left: var(--progress, 40%);
    top: -50px; transform: translateX(-50%);
    font-size: 0.75rem; color: var(--text-muted);
    background: var(--bg-card); padding: 4px 8px; border-radius: 4px;
}

/* Contact */
.contact-text { color: var(--text-secondary); margin-bottom: 16px; }
.contact-buttons { display: flex; gap: 12px; }
.contact-buttons .btn { flex: 1; padding: 12px; text-align: center; }

/* Footer */
.footer {
    padding: 40px 0; text-align: center;
    border-top: 1px solid var(--border-color); color: var(--text-muted);
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 1024px) {
    .tracking-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .search-card { padding: 40px 30px; }
    .search-card h1 { font-size: 1.8rem; }
    .search-form { flex-direction: column; }
    .nav-links { display: none; }
    .result-header { flex-direction: column; gap: 16px; text-align: center; }
}

