/* Track Order Page CSS */

.track-order-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 120px 0 80px;
}

.track-header {
    text-align: center;
    margin-bottom: 60px;
}

.track-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.track-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.track-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.track-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.track-info-section .info-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
}

.track-info-section .info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.track-info-section .info-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Tracking Result */
.tracking-result {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

.order-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.info-row .value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.processing {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.shipped {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.delivered {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tracking-link {
    color: #a78bfa;
    cursor: pointer;
}

.tracking-link:hover {
    text-decoration: underline;
}

.tracking-link-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a78bfa;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    transition: all 0.3s ease;
}

.tracking-link-display:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: #a78bfa;
    transform: translateX(2px);
}

.tracking-link-display .external-icon {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tracking-link-display:hover .external-icon {
    opacity: 1;
}

.tracking-timeline {
    margin-bottom: 32px;
}

.tracking-timeline h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #a78bfa;
    border-radius: 50%;
    border: 3px solid #1a1a2e;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -23px;
    top: 20px;
    width: 2px;
    height: 100%;
    background: rgba(167, 139, 250, 0.3);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item.active::before {
    background: #4ade80;
}

.timeline-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.timeline-status {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.order-items h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.items-list {
    display: grid;
    gap: 16px;
}

.item-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.item-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.item-price {
    font-size: 16px;
    font-weight: 600;
    color: #a78bfa;
}

/* Help Section */
.help-section {
    max-width: 1200px;
    margin: 60px auto 0;
}

.help-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 32px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.help-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.help-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(167, 139, 250, 0.1);
    border-radius: 12px;
    color: #a78bfa;
}

.help-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.help-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.help-cta {
    text-align: center;
    padding: 32px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 12px;
}

.help-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 968px) {
    .track-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .track-order-container {
        padding: 100px 0 60px;
    }

    .track-header h1 {
        font-size: 32px;
    }

    .track-subtitle {
        font-size: 16px;
    }

    .track-form,
    .tracking-result {
        padding: 24px;
    }

    .result-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .result-header #newSearch {
        width: 100%;
    }
}
