/* ==========================================
   Onboarding Timeline Component
   Modern vertical timeline with glassmorphism
   ========================================== */

/* Section Container */
.onboarding-timeline-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Timeline Container */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Timeline Title */
.timeline-title {
    font-size: 28.6px;
    font-weight: 700;
    text-align: center;
    color: #2e2e2e;
    margin-bottom: 12px;
}

/* Timeline Subtitle */
.timeline-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Timeline Step */
.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Timeline Step Connector (Vertical Line) - always centered under icon */
.timeline-step-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 3px;
    height: calc(100% + 24px); /* Extend to next icon (gap + padding) */
    background: linear-gradient(180deg, #4fc3cf 0%, #7df2e7 100%);
    border-radius: 2px;
    pointer-events: none;
}

/* Hide connector on last step */
.timeline-step-last .timeline-step-connector {
    display: none;
}

/* Timeline Step Icon Wrapper - contains centered connector */
.timeline-step-icon-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Connector positioning: place connector inside icon-wrapper for automatic centering */
.timeline-step-icon-wrapper .timeline-step-connector {
    /* Connector originates from icon-wrapper, not timeline-step */
}

/* Timeline Step Icon */
.timeline-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 3px solid #4fc3cf;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 195, 207, 0.2);
    transition: all 0.3s ease;
}

/* Completed step - green background, white icon circle */
.timeline-step-completed {
    background: rgba(34, 174, 161, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: -16px;
}

.timeline-step-icon-completed {
    border-color: #22aea1;
    background: #ffffff;
}

.timeline-step-icon-completed .material-icons {
    font-size: 28px;
    color: #22aea1;
    font-weight: 700;
}

/* Active/Current step - orange styling */
.timeline-step-active {
    background: rgba(255, 152, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: -16px;
}

.timeline-step-icon-active {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
}

.timeline-step-icon-active .material-icons {
    color: #ff9800;
}

/* Final step icon (special styling) */
.timeline-step-icon-final {
    border-color: #22aea1;
    background: linear-gradient(135deg, rgba(34, 174, 161, 0.2), rgba(79, 195, 207, 0.2));
}

/* Icon color */
.timeline-step-icon .material-icons {
    font-size: 24px;
    color: #22aea1;
}

.timeline-step-icon-final .material-icons {
    font-size: 28px;
    color: #22aea1;
}

/* Hover effect */
.timeline-step:hover .timeline-step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(79, 195, 207, 0.3);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .timeline-step-icon {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Timeline Step Content */
.timeline-step-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 2px solid rgba(79, 195, 207, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
    transition: all 0.3s ease;
}

/* Content hover effect */
.timeline-step:hover .timeline-step-content {
    transform: translateX(4px);
    border-color: #4fc3cf;
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.12);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .timeline-step-content {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Step Title */
.timeline-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #2e2e2e;
    margin-bottom: 8px;
}

/* Duration indicator in title */
.timeline-duration {
    font-size: 16px;
    font-weight: 600;
    color: #22aea1;
    margin-left: 8px;
}

/* Step Description */
.timeline-step-description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

/* Special Badge for Final Step */
.timeline-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #22aea1 0%, #4fc3cf 100%);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 174, 161, 0.3);
}

.timeline-step-badge .material-icons {
    font-size: 18px;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .timeline-step-icon,
    .timeline-step-content,
    .timeline-step-connector {
        transition: none;
        animation: none;
    }

    .timeline-step:hover .timeline-step-icon {
        transform: none;
    }

    .timeline-step:hover .timeline-step-content {
        transform: none;
    }
}

/* ==========================================
   Desktop Styles (769px+)
   ========================================== */

@media (min-width: 769px) {
    /* Increase padding */
    .onboarding-timeline-section {
        padding: 60px 20px;
    }

    /* Larger titles */
    .timeline-title {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .timeline-subtitle {
        font-size: 22px;
        margin-bottom: 60px;
    }

    /* More gap between steps */
    .timeline-wrapper {
        gap: 32px;
    }

    /* Larger gap between icon and content */
    .timeline-step {
        gap: 32px;
    }

    /* Larger connector - always centered */
    .timeline-step-connector {
        width: 4px;
        height: calc(100% + 32px); /* Desktop gap is 32px */
    }

    /* Larger icons */
    .timeline-step-icon {
        width: 64px;
        height: 64px;
        border-width: 4px;
    }

    .timeline-step-icon .material-icons {
        font-size: 32px;
    }

    .timeline-step-icon-final .material-icons {
        font-size: 36px;
    }

    /* More padding in content */
    .timeline-step-content {
        padding: 24px 28px;
    }

    /* Larger text */
    .timeline-step-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .timeline-step-description {
        font-size: 18px;
        line-height: 1.6;
    }

    /* Larger badge */
    .timeline-step-badge {
        padding: 10px 20px;
        font-size: 15px;
        margin-top: 16px;
    }

    .timeline-step-badge .material-icons {
        font-size: 20px;
    }
}

/* ==========================================
   Tablet Styles (769px - 1024px)
   ========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .onboarding-timeline-section {
        padding: 50px 20px;
    }

    .timeline-title {
        font-size: 30px;
    }

    .timeline-subtitle {
        font-size: 20px;
        margin-bottom: 50px;
    }

    .timeline-step-title {
        font-size: 22px;
    }

    .timeline-step-description {
        font-size: 17px;
    }
}

/* ==========================================
   Mobile Small (max-width: 480px)
   ========================================== */

@media (max-width: 480px) {
    .onboarding-timeline-section {
        padding: 32px 16px;
    }

    .timeline-title {
        font-size: 24px;
    }

    .timeline-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    /* Reduce gap for small screens */
    .timeline-wrapper {
        gap: 20px;
    }

    .timeline-step {
        gap: 16px;
    }

    /* Smaller connector - always centered */
    .timeline-step-connector {
        height: calc(100% + 20px); /* Mobile gap is 20px */
    }

    /* Smaller icons */
    .timeline-step-icon {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .timeline-step-icon .material-icons {
        font-size: 20px;
    }

    .timeline-step-icon-final .material-icons {
        font-size: 24px;
    }

    /* Smaller padding */
    .timeline-step-content {
        padding: 16px;
    }

    .timeline-step-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .timeline-step-description {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Smaller badge */
    .timeline-step-badge {
        padding: 6px 12px;
        font-size: 12px;
        margin-top: 10px;
    }

    .timeline-step-badge .material-icons {
        font-size: 16px;
    }
}
