/* ==========================================
   TRACKING PAGE STYLES
   ========================================== */

.tracking-page-container {
    background: #f8f9fa;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.tracking-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.tracking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.badge-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ==========================================
   TRACKING SEARCH
   ========================================== */

.tracking-search-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 1rem;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
}

.tracking-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tracking-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-track {
    background: linear-gradient(135deg, red 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.quick-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.quick-link {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-link:hover {
    color: #764ba2;
}

/* ==========================================
   HERO ILLUSTRATION
   ========================================== */

.hero-illustration {
    position: relative;
    z-index: 2;
}

.illustration-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    color: #667eea;
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    left: -5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.tracking-features {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, red 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.feature-text {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */

.how-it-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-number {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, red 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.timeline-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.tracking-faq {
    padding: 80px 0;
    background: white;
}

.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem !important;
    margin-bottom: 1rem;
}

.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem !important;
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #667eea;
}

.accordion-body {
    padding: 1.5rem;
    color: #64748b;
    line-height: 1.7;
}

/* ==========================================
   MODAL STYLES
   ========================================== */

.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    padding: 1.5rem 2rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

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

.status-badge.delivered {
    background: #dcfce7;
    color: #166534;
}

.section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.detail-value {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
}

.timeline-container {
    position: relative;
}

.tracking-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.tracking-step::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: #e2e8f0;
}

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

.step-icon {
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.step-icon.completed {
    background: #10b981;
}

.step-icon.current {
    background: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.step-content {
    padding-left: 0.5rem;
}

.step-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.step-time {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.step-location {
    font-size: 0.875rem;
    color: #64748b;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .tracking-hero {
        padding: 60px 0;
    }

    .hero-illustration {
        margin-bottom: 2rem;
    }

    .floating-card {
        display: none;
    }

    .tracking-features,
    .how-it-works,
    .tracking-faq {
        padding: 60px 0;
    }

}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .btn-track {
        width: 100%;
    }

    .tracking-search-box {
        padding: 1.5rem;
    }

    .quick-links {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .timeline::before {
        left: 15px;
    }

    .timeline-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .timeline-item {
        padding-left: 65px;
    }

    .search-icon {
        top: 25%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .search-icon {
        top: 25%;
    }
}
