/**
 * Tracking Page Styles
 * Dream Lux Hair Collection
 */

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.animate-fade-in {
    animation: fade-in 0.6s ease-out;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Tracking Timeline Styles */
#trackingTimeline {
    position: relative;
}

.tracking-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 40px;
    transition: all 0.3s ease;
}

.tracking-step:last-child {
    padding-bottom: 0;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e5e7eb 0%, #e5e7eb 100%);
}

.tracking-step:last-child::before {
    display: none;
}

.tracking-step .step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-center;
    transition: all 0.3s ease;
    z-index: 2;
}

.tracking-step.completed .step-icon {
    background: linear-gradient(135deg, #d4af37 0%, #c19b2e 100%);
    border-color: #d4af37;
    animation: pulse-glow 2s infinite;
}

.tracking-step.completed .step-icon svg {
    color: white;
}

.tracking-step.completed::before {
    background: linear-gradient(to bottom, #d4af37 0%, #e5e7eb 100%);
}

.tracking-step.active .step-icon {
    border-color: #d4af37;
    border-width: 4px;
    animation: pulse-glow 2s infinite;
}

.tracking-step .step-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.tracking-step.completed .step-content {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fffaf7 0%, #f6e7e6 100%);
}

.tracking-step:hover .step-content {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.shipped {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-step {
        padding-left: 50px;
        padding-bottom: 30px;
    }
    
    .tracking-step .step-icon {
        width: 35px;
        height: 35px;
    }
    
    .tracking-step::before {
        left: 16px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
