/* ==============================================
   DELIVERY TRACKER V2 - HDR Premium Style
   Modern SVG icons, smooth animations
   ============================================== */

/* CSS Variables - HDR Color Palette */
:root {
    --dt-gold: #E5A93C;
    --dt-gold-light: #FFDF73;
    --dt-gold-dark: #B8860B;
    --dt-glow: rgba(229, 169, 60, 0.6);
    --dt-glow-strong: rgba(255, 223, 115, 0.8);
    --dt-dark: #0A0A0A;
    --dt-surface: #151515;
    --dt-text: #FFFFFF;
    --dt-text-muted: #A3A3A3;
    --dt-success: #22C55E;
    --dt-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Container */
.dt-tracker {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(21, 21, 21, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(229, 169, 60, 0.2);
    box-shadow:
        0 0 40px rgba(229, 169, 60, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Progress Bar */
.dt-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(229, 169, 60, 0.15);
    overflow: hidden;
}

.dt-progress-fill {
    height: 100%;
    width: 33%;
    background: linear-gradient(90deg, var(--dt-gold-dark), var(--dt-gold), var(--dt-gold-light));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 20px var(--dt-glow);
    transition: width 0.8s var(--dt-transition);
}

/* Steps Container */
.dt-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}

/* Individual Step */
.dt-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 180px;
    transition: all 0.4s var(--dt-transition);
}

/* Icon Wrapper */
.dt-icon-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.dt-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, var(--dt-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s var(--dt-transition);
}

/* Icon */
.dt-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dt-surface) 0%, var(--dt-dark) 100%);
    border: 2px solid rgba(229, 169, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--dt-transition);
    position: relative;
    z-index: 1;
}

.dt-icon svg {
    width: 28px;
    height: 28px;
    color: var(--dt-gold);
    transition: all 0.4s var(--dt-transition);
}

/* Pulse Animation */
.dt-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--dt-gold);
    opacity: 0;
    z-index: 0;
}

.dt-step.active .dt-pulse {
    animation: dt-pulse 2s ease-out infinite;
}

@keyframes dt-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Connector Line */
.dt-connector {
    position: absolute;
    top: 30px;
    left: calc(50% + 40px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, rgba(229, 169, 60, 0.4) 0%, rgba(229, 169, 60, 0.1) 100%);
    transition: all 0.4s var(--dt-transition);
}

.dt-step:last-child .dt-connector {
    display: none;
}

.dt-step.active .dt-connector {
    background: linear-gradient(90deg, var(--dt-gold) 0%, rgba(229, 169, 60, 0.4) 100%);
    box-shadow: 0 0 10px var(--dt-glow);
}

/* Content */
.dt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dt-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dt-text-muted);
    margin-bottom: 4px;
    transition: all 0.4s var(--dt-transition);
}

.dt-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--dt-gold);
    transition: all 0.4s var(--dt-transition);
}

/* Active Step State */
.dt-step.active .dt-icon {
    background: linear-gradient(135deg, var(--dt-gold) 0%, var(--dt-gold-light) 50%, var(--dt-gold) 100%);
    border-color: var(--dt-gold-light);
    box-shadow:
        0 0 30px var(--dt-glow),
        0 0 60px rgba(229, 169, 60, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dt-step.active .dt-icon svg {
    color: var(--dt-dark);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

.dt-step.active .dt-icon-wrapper::before {
    opacity: 1;
}

.dt-step.active .dt-label {
    color: var(--dt-gold-light);
    text-shadow: 0 0 20px var(--dt-glow);
}

.dt-step.active .dt-date {
    color: var(--dt-gold-light);
    text-shadow: 0 0 10px var(--dt-glow);
}

/* Arrow */
.dt-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dt-arrow svg {
    width: 24px;
    height: 24px;
    color: rgba(229, 169, 60, 0.5);
    transition: all 0.4s var(--dt-transition);
}

.dt-arrow.active svg {
    color: var(--dt-gold);
    filter: drop-shadow(0 0 8px var(--dt-glow));
    animation: dt-arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes dt-arrow-pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(4px);
        opacity: 0.7;
    }
}

/* Hover States */
.dt-step:hover .dt-icon {
    border-color: var(--dt-gold);
    box-shadow: 0 0 20px var(--dt-glow);
}

.dt-step:hover .dt-icon svg {
    transform: scale(1.1);
}

/* ==============================================
   RESPONSIVE - Mobile
   ============================================== */

@media (max-width: 768px) {
    .dt-tracker {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .dt-icon {
        width: 50px;
        height: 50px;
    }

    .dt-icon svg {
        width: 24px;
        height: 24px;
    }

    .dt-pulse {
        width: 50px;
        height: 50px;
    }

    .dt-connector {
        top: 25px;
        left: calc(50% + 35px);
        width: calc(100% - 50px);
    }

    .dt-label {
        font-size: 11px;
    }

    .dt-date {
        font-size: 10px;
    }

    .dt-arrow {
        width: 30px;
    }

    .dt-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .dt-tracker {
        padding: 20px 10px;
    }

    .dt-steps {
        gap: 0;
    }

    .dt-step {
        max-width: 100px;
    }

    .dt-icon {
        width: 44px;
        height: 44px;
    }

    .dt-icon svg {
        width: 20px;
        height: 20px;
    }

    .dt-pulse {
        width: 44px;
        height: 44px;
    }

    .dt-connector {
        top: 22px;
        left: calc(50% + 30px);
        width: calc(100% - 45px);
    }

    .dt-label {
        font-size: 9px;
        letter-spacing: 0.05em;
    }

    .dt-date {
        font-size: 9px;
    }

    .dt-arrow {
        width: 20px;
        flex: 0 0 auto;
    }

    .dt-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .dt-tracker {
        padding: 15px 8px;
        border-radius: 12px;
    }

    .dt-icon {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }

    .dt-icon svg {
        width: 18px;
        height: 18px;
    }

    .dt-pulse {
        width: 40px;
        height: 40px;
    }

    .dt-connector {
        top: 20px;
        left: calc(50% + 26px);
        width: calc(100% - 40px);
        height: 1.5px;
    }

    .dt-label {
        font-size: 8px;
    }

    .dt-date {
        font-size: 8px;
    }

    .dt-content {
        margin-top: 8px;
    }

    .dt-arrow {
        width: 16px;
    }

    .dt-arrow svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    .dt-step {
        max-width: 80px;
    }

    .dt-icon {
        width: 36px;
        height: 36px;
    }

    .dt-icon svg {
        width: 16px;
        height: 16px;
    }

    .dt-pulse {
        width: 36px;
        height: 36px;
    }

    .dt-connector {
        top: 18px;
        left: calc(50% + 24px);
        width: calc(100% - 36px);
    }

    .dt-label {
        font-size: 7px;
        letter-spacing: 0.02em;
    }

    .dt-date {
        font-size: 7px;
    }

    .dt-arrow {
        width: 12px;
    }

    .dt-arrow svg {
        width: 12px;
        height: 12px;
    }
}

/* ==============================================
   Reduced Motion
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
