/**
 * Premium Journey Steps Header
 * Clean, intuitive progress indicator with clear labels
 * 
 * @package SENNA_Launcher
 * @since 4.1.0
 */

/* ===========================================
   JOURNEY PROGRESS CONTAINER
   =========================================== */

.journey-progress,
.opp-journey-progress {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Progress line behind steps */
.journey-progress::before,
.opp-journey-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    height: 2px;
    background: rgba(27, 67, 50, 0.1);
    transform: translateY(-50%);
    z-index: 0;
}

/* ===========================================
   JOURNEY STEPS
   =========================================== */

.journey-step,
.opp-journey-step {
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    border-radius: 25px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

/* Step number and text */
.stage-indicator,
.opp-stage-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Step number circle */
.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.1);
    color: #6B7C75;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Step text */
.stage-text,
.opp-stage-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7C75;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Remove old icon styles */
.stage-icon,
.opp-stage-icon {
    display: none;
}

/* ===========================================
   ACTIVE STATE
   =========================================== */

.journey-step.active,
.opp-journey-step.active {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
}

.journey-step.active .step-number {
    background: rgba(255, 255, 255, 0.9);
    color: #1B4332;
    font-weight: 700;
}

.journey-step.active .stage-text,
.journey-step.active .opp-stage-text {
    color: white;
    font-weight: 600;
}

/* ===========================================
   COMPLETED STATE
   =========================================== */

.journey-step.completed,
.opp-journey-step.completed {
    background: transparent;
}

.journey-step.completed .step-number {
    background: #52B788;
    color: white;
    position: relative;
}

/* Checkmark for completed steps */
.journey-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
}

.journey-step.completed .step-number span {
    display: none;
}

.journey-step.completed .stage-text,
.journey-step.completed .opp-stage-text {
    color: #52B788;
    font-weight: 500;
}

/* ===========================================
   HOVER EFFECTS
   =========================================== */

.journey-step:not(.active):not(.completed):hover,
.opp-journey-step:not(.active):not(.completed):hover {
    background: rgba(27, 67, 50, 0.05);
}

.journey-step:not(.active):not(.completed):hover .step-number {
    background: rgba(27, 67, 50, 0.15);
    color: #1B4332;
}

.journey-step:not(.active):not(.completed):hover .stage-text,
.journey-step:not(.active):not(.completed):hover .opp-stage-text {
    color: #1B4332;
}

/* ===========================================
   DISABLED/LOCKED STATE
   =========================================== */

.journey-step.locked,
.opp-journey-step.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.journey-step.locked .step-number {
    background: rgba(0, 0, 0, 0.05);
    color: #999;
}

.journey-step.locked .stage-text,
.journey-step.locked .opp-stage-text {
    color: #999;
}

/* ===========================================
   ANIMATED PROGRESS LINE
   =========================================== */

.journey-progress-line {
    position: absolute;
    top: 50%;
    left: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1B4332 0%, #52B788 100%);
    transform: translateY(-50%);
    z-index: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* ===========================================
   MOBILE RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .journey-progress,
    .opp-journey-progress {
        padding: 3px;
        gap: 0;
        border-radius: 25px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .journey-progress::-webkit-scrollbar,
    .opp-journey-progress::-webkit-scrollbar {
        display: none;
    }
    
    .journey-step,
    .opp-journey-step {
        min-width: auto;
        padding: 6px 12px;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
    
    .stage-text,
    .opp-stage-text {
        font-size: 11px;
    }
    
    /* Hide text on mobile, show only for active */
    .journey-step:not(.active) .stage-text,
    .opp-journey-step:not(.active) .opp-stage-text {
        display: none;
    }
    
    .journey-step:not(.active),
    .opp-journey-step:not(.active) {
        min-width: auto;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .journey-progress,
    .opp-journey-progress {
        padding: 2px;
        gap: 2px;
    }
    
    .journey-step,
    .opp-journey-step {
        padding: 5px 10px;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .stage-text,
    .opp-stage-text {
        font-size: 10px;
        letter-spacing: 0;
    }
}

/* ===========================================
   PREMIUM DETAILS
   =========================================== */

/* Smooth number transitions */
.step-number {
    position: relative;
    overflow: hidden;
}

.step-number span {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Pulse animation for current step */
@keyframes pulse-active {
    0% {
        box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
    }
    50% {
        box-shadow: 0 4px 20px rgba(27, 67, 50, 0.35);
    }
    100% {
        box-shadow: 0 4px 12px rgba(27, 67, 50, 0.25);
    }
}

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

/* Entrance animation */
@keyframes step-entrance {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-step {
    animation: step-entrance 0.5s ease backwards;
}

.journey-step:nth-child(1) { animation-delay: 0.1s; }
.journey-step:nth-child(2) { animation-delay: 0.2s; }
.journey-step:nth-child(3) { animation-delay: 0.3s; }
.journey-step:nth-child(4) { animation-delay: 0.4s; }
.journey-step:nth-child(5) { animation-delay: 0.5s; }