/**
 * Process Timeline Styles
 * [tr_process_timeline] shortcode
 */

.tr-process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    user-select: none;
}

/* Content panels */
.tr-pt-content {
    min-height: 200px;
    margin-bottom: 50px;
    position: relative;
}

.tr-pt-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.tr-pt-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tr-pt-panel img {
    width: clamp(100px, 15vw, 140px);
    height: auto;
    flex-shrink: 0;
}

.tr-pt-text {
    max-width: 400px;
}

.tr-pt-text h3 {
    font-family: "Avenir Next", "Avenir", sans-serif;
    font-size: 14px;
    color: #0F5E41;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tr-pt-text p {
    font-size: clamp(15px, 1.6vw, 17px);
    color: #555;
    line-height: 1.7;
}

/* Draggable timeline */
.tr-pt-drag {
    position: relative;
    padding: 30px 0;
}

.tr-pt-track {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0 60px;
}

.tr-pt-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0F5E41, #408469);
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* Timeline points */
.tr-pt-points {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.tr-pt-point {
    width: 18px;
    height: 18px;
    background: #ddd;
    border: 3px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.tr-pt-point.reached {
    background: #0F5E41;
}

.tr-pt-point.active {
    background: #0F5E41;
    transform: scale(1.3);
    box-shadow: 0 3px 12px rgba(15, 94, 65, 0.4);
}

.tr-pt-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tr-pt-point.reached .tr-pt-label,
.tr-pt-point.active .tr-pt-label {
    color: #0F5E41;
}

/* Draggable handle */
.tr-pt-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #0F5E41;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(15, 94, 65, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 10;
}

.tr-pt-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(15, 94, 65, 0.5);
}

.tr-pt-handle:active,
.tr-pt-handle.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Hint text */
.tr-pt-hint {
    text-align: center;
    margin-top: 50px;
    font-size: 13px;
    color: #999;
}

.tr-pt-hint i {
    margin-right: 6px;
}

/* Mobile */
@media (max-width: 600px) {
    .tr-pt-panel {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .tr-pt-track {
        margin: 0 30px;
    }
    .tr-pt-handle {
        width: 38px;
        height: 38px;
    }
}
