/* Tracking Page Specific Styles */

:root {
    --color-primary: #2563eb;
    --color-secondary: #0ea5e9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-dark: #0F1724;
    --color-darker: #0B1220;
    --color-text: #ffffff;
    --color-border: #1e40af;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-opensans: 'Open Sans', sans-serif;
    --fs-sm: 12px;
    --fs-md: 16px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-xxl: 32px;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
}

body{
    background-color: var(--color-dark);
}

.container{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top{
    color: #ffffff;
}

/* SEARCH SECTION */

.tracking-section{
    padding: 20px 0;
}

.tracking-title {
    color: #fff;
    margin-bottom: 10px;
    font-size: var(--fs-xl);
    margin-bottom: 15px;
}



/* TRACKING GRID */
.tracking-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* TRACKING CARD */
.tracking-card {
    background: var(--color-darker);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tracking-card:hover {
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
    transform: translateY(-4px);
}

/* TRACKING HEADER */
.tracking-header {
    background: linear-gradient(90deg ,#1a365d ,#0ea5e9 );
    padding: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    position: relative;
}

.tracking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #f59e0b);
}

.tracking-info {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.tracking-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tracking-label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracking-value {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--color-text);
}

.tracking-date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}

.tracking-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-status.in-transit {
    background-color: #10b981;
    color: #fff;
    border: 1px solid #3b82f6;
}

.tracking-status.delivered {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid #10b981;
}

.tracking-status.pending {
    background-color: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid #f59e0b;
}

/* PRODUCT SECTION */
.tracking-product {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background-color: rgba(15, 23, 36, 0.5);
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.image-container{
    min-width:  200px;
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

}

.product-image {
    
    height: 100px;
    object-fit: cover;

}

.product-info {
    flex: 1;
}

.product-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 8px 0;
    font-family: var(--font-montserrat);
}

.product-quantity {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.tracking-timeline {
    padding: var(--spacing-lg);
    position: relative;
    display: flex;
    justify-content: space-between;

}

.timeline-item {
    display: flex;
    flex: 1;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
    flex-direction: column;
    align-items: center;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 100%;
    height: 4px;
    background-color: var(--color-border);
    transform: translateY(-50%);
    z-index: 0;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 0%;
    height: 4px;
    background-color: var(--color-border);
    transform: translateY(-50%);
    z-index: 0;
    transition: width 0.5s ease-in-out, background-color 0.5s;
}

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

.timeline-item.completed::before {
    width: 100%;
    background-color: var(--color-success);
}

.timeline-item.active::before {
    width: 50%;
    background: linear-gradient(90deg, var(--color-success) 0%, var(--color-primary) 100%);
}

.timeline-marker {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-darker);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-weight: var(--fw-bold);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.timeline-item.active .timeline-marker {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    animation: pulse 2s infinite;
}

.timeline-item.pending .timeline-marker {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--color-border);
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(178, 201, 231, 0.6);
    }
}

.timeline-content {
    flex: 1;
    padding: var(--spacing-md);
    background-color: rgba(15, 23, 36, 0.5);
    border-top: 3px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-content {
    border-top-color: var(--color-success);
    background-color: rgba(16, 185, 129, 0.05);
}

.timeline-item.active .timeline-content {
    border-top-color: var(--color-secondary);
    background-color: rgba(14, 165, 233, 0.08);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.timeline-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin: 0 0 4px 0;
    font-family: var(--font-montserrat);
}

.timeline-date {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px 0;
    font-weight: var(--fw-medium);
}

.timeline-description {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}








/* FOOTER STYLES */
.footer {
    background: linear-gradient(135deg, #0a1929 0%, #1a365d 100%);
    color: white;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* FOOTER LOGO */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-logo-img {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    background-color: rgba(14, 165, 233, 0.2);
    padding: var(--spacing-sm);
    border-radius: 8px;
    color: #60a5fa;
}

.footer-logo-text {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* FOOTER DESCRIPTION */
.footer-description {
    font-size: var(--fs-sm);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

/* FOOTER SOCIAL */
.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(14, 165, 233, 0.15);
    border-radius: 8px;
    color: #60a5fa;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.social-link:hover {
    background-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
    color: white;
    border-color: #0ea5e9;
}

/* FOOTER TITLE */
.footer-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(14, 165, 233, 0.3);
    padding-bottom: var(--spacing-sm);
}

/* FOOTER LINKS */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    text-decoration: none;
    font-size: var(--fs-sm);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    gap: var(--spacing-md);
    color: #60a5fa;
}

.footer-links i {
    font-size: var(--fs-sm);
    color: #0ea5e9;
}

/* FOOTER CONTACT */
.footer-contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: var(--fs-sm);
}

.footer-contact-item i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #60a5fa;
}

.footer-contact-label {
    font-weight: var(--fw-bold);
    opacity: 0.8;
    font-size: 11px;
    margin-bottom: 4px;
}

.footer-contact-item a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-contact-item a:hover {
    opacity: 1;
    color: #60a5fa;
}

.footer-contact-item p {
    opacity: 0.85;
    margin: 0;
}

/* FOOTER DIVIDER */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.3) 50%, transparent 100%);
}

/* FOOTER BOTTOM */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    font-size: var(--fs-sm);
    opacity: 0.75;
}

/* FOOTER PAYMENTS */
.footer-payments {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px var(--spacing-sm);
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.payment-method i {
    font-size: 14px;
    color: #60a5fa;
}

@media (max-width: 900px){
    .tracking-timeline{
        flex-direction: column;
        gap: 0;
    }
    .timeline-item {
        flex-direction: row;
        width: 100%;
        align-items: flex-start;
        padding-bottom: var(--spacing-xl);
        margin-bottom: 0;
    }
    .timeline-item:last-child {
        padding-bottom: 0;
    }
    .timeline-item::after {
        left: 20px;
        top: 20px;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
    }
    .timeline-item::before {
        left: 20px;
        top: 20px;
        width: 4px;
        height: 0%;
        transform: translateX(-50%);
        background-color: var(--color-success);
    }
    .timeline-item.completed::before {
        width: 4px;
        height: 100%;
        background-color: var(--color-success);
    }
    .timeline-item.active::before {
        width: 4px;
        height: 50%;
        background: linear-gradient(180deg, var(--color-success) 0%, var(--color-primary) 100%);
    }
    .timeline-content{
        flex: 1;
        border-left: 3px solid var(--color-border);
        border-top: none;
        margin-left: 10px;
    }
    .timeline-item.completed .timeline-content {
        border-left-color: var(--color-success);
        background-color: rgba(16, 185, 129, 0.05);
    }
    
    .timeline-item.active .timeline-content {
        border-left-color: var(--color-secondary);
        background-color: rgba(14, 165, 233, 0.08);
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
    }

}
    

/* RESPONSIVE */
@media (max-width: 768px) {
    /* NAV RESPONSIVE */
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-pages {
        display: none;
    }

    /* TRACKING RESPONSIVE */
    .tracking-title {
        font-size: var(--fs-xl);
    }

    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracking-date {
        text-align: left;
        width: 100%;
    }

    .tracking-info {
        width: 100%;
        gap: 24px;
    }

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

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .timeline-item::after,
    .timeline-item::before {
        left: 18px;
        top: 18px;
    }

    .timeline-marker {
        min-width: 36px;
        width: 36px;
        height: 36px;
        font-size: var(--fs-sm);
    }


    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-payments {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header__nav-container {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-container {
        padding: 8px 0;
        gap: 8px;
    }

    .nav-logo {
        flex-shrink: 0;
    }

    .nav-logo__link {
        min-width: fit-content;
    }

    .logo-img {
        font-size: 16px;
        padding: 6px 10px;
        min-width: 40px;
    }

    .logo__text-container {
        font-size: 16px;
        gap: 1px;
    }

    .nav-icons {
        display: flex;
        gap: 8px;
    }

    .nav-icon {
        font-size: 18px;
    }

    /* TRACKING MOBILE */
    .tracking-title {
        font-size: var(--fs-lg);
    }

    .tracking-header {
        padding: var(--spacing-md);
    }

    .tracking-info {
        gap: 12px;
    }

    .tracking-label {
        font-size: 10px;
    }

    .tracking-value {
        font-size: var(--fs-sm);
    }

    .tracking-meta {
        gap: 4px;
    }

    .detail-box h4 {
        font-size: var(--fs-sm);
    }

    .detail-box p {
        font-size: 11px;
    }

    .tracking-product {
        padding: var(--spacing-md);
    }


    .product-name {
        font-size: var(--fs-sm);
    }

    .product-quantity {
        font-size: 11px;
    }

    .footer-title {
        font-size: var(--fs-sm);
    }

    .footer-description {
        font-size: 12px;
    }

    .footer-social {
        gap: 6px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 11px;
    }

    .payment-method {
        font-size: 10px;
        padding: 3px 8px;
    }
}
