/**
 * Pretpot Timeline Widget 2 (Pro) - Styles with Animations
 * @package Pretpot_Massive_Addons_Kit_For_Elementor
 * @since 2.7.5
 */

.pretpot-timeline-2 {
    position: relative;
    width: 100%;
}

/* Header */
.pretpot-timeline-2-header {
    text-align: center;
    margin-bottom: 60px;
}

.pretpot-timeline-2-heading {
    margin: 0 0 20px;
}

.pretpot-timeline-2-description {
    max-width: 800px;
    margin: 0 auto;
}

.pretpot-timeline-2-description p:last-child {
    margin-bottom: 0;
}

/* Timeline Container */
.pretpot-timeline-2-container {
    position: relative;
    padding: 40px 0;
}

/* Separator Line */
.pretpot-timeline-2-separator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}

/* Progress Line (for draw animation) */
.pretpot-timeline-2-progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 0%;
    background-color: #00d084;
    z-index: 2;
    transition: height 0.3s ease-out;
}

/* Separator Styles */
.pretpot-timeline-2-separator.solid {
    background-color: currentColor;
}

.pretpot-timeline-2-separator.dashed {
    background-image: linear-gradient(to bottom, currentColor 50%, transparent 50%);
    background-size: 100% 20px;
    background-color: transparent;
}

.pretpot-timeline-2-separator.dotted {
    background-image: linear-gradient(to bottom, currentColor 30%, transparent 30%);
    background-size: 100% 10px;
    background-color: transparent;
}

.pretpot-timeline-2-separator.zigzag {
    width: 10px !important;
    background-color: transparent;
    background-image: 
        linear-gradient(135deg, currentColor 25%, transparent 25%),
        linear-gradient(225deg, currentColor 25%, transparent 25%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 0;
}

/* Timeline Items Container */
.pretpot-timeline-2-items {
    position: relative;
    z-index: 2;
}

/* Individual Timeline Item */
.pretpot-timeline-2-item {
    position: relative;
    margin-bottom: 80px;
}

.pretpot-timeline-2-item:last-child {
    margin-bottom: 0;
}

/* Timeline Marker */
.pretpot-timeline-2-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background-color: #cccccc;
    transition: all 0.3s ease;
}

.pretpot-timeline-2-marker.circle {
    border-radius: 50%;
}

.pretpot-timeline-2-marker.square {
    border-radius: 0;
}

.pretpot-timeline-2-marker.diamond {
    border-radius: 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.pretpot-timeline-2-marker.arrow {
    background-color: transparent;
    width: 0 !important;
    height: 0 !important;
    border-left: 10px solid #cccccc;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Active Marker State */
.pretpot-timeline-2-marker.active {
    background-color: #00d084;
}

.pretpot-timeline-2-marker.active.arrow {
    border-left-color: #00d084;
}

/* Marker Animations */
.pretpot-timeline-2-marker.active.animate-glow {
    box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
    animation: pretpotMarkerGlow 2s ease-in-out infinite;
}

@keyframes pretpotMarkerGlow {
    0%, 100% {
        box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    }
    50% {
        box-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
    }
}

.pretpot-timeline-2-marker.active.animate-pulse {
    animation: pretpotMarkerPulse 1.5s ease-in-out infinite;
}

@keyframes pretpotMarkerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.pretpot-timeline-2-marker.diamond.active.animate-pulse {
    animation: pretpotMarkerPulseDiamond 1.5s ease-in-out infinite;
}

@keyframes pretpotMarkerPulseDiamond {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
        opacity: 0.7;
    }
}

.pretpot-timeline-2-marker.active.animate-scale {
    transform: translate(-50%, -50%) scale(1.4);
}

.pretpot-timeline-2-marker.diamond.active.animate-scale {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
}

/* Timeline Content */
.pretpot-timeline-2-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

/* Position Right */
.pretpot-timeline-2-item.position-right .pretpot-timeline-2-content {
    grid-template-columns: 1fr 1fr;
}

.pretpot-timeline-2-item.position-right .pretpot-timeline-2-text {
    grid-column: 1;
    text-align: right;
    padding-right: 40px;
}

.pretpot-timeline-2-item.position-right .pretpot-timeline-2-media {
    grid-column: 2;
    justify-self: start;
    padding-left: 40px;
}

/* Position Left */
.pretpot-timeline-2-item.position-left .pretpot-timeline-2-content {
    grid-template-columns: 1fr 1fr;
}

.pretpot-timeline-2-item.position-left .pretpot-timeline-2-media {
    grid-column: 1;
    justify-self: end;
    padding-right: 40px;
}

.pretpot-timeline-2-item.position-left .pretpot-timeline-2-text {
    grid-column: 2;
    text-align: left;
    padding-left: 40px;
}

/* Timeline Media */
.pretpot-timeline-2-media {
    position: relative;
    overflow: hidden;
    display: block;
}

.pretpot-timeline-2-media img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.pretpot-timeline-2-media iframe {
    width: 100%;
    display: block;
}

/* Icon Media */
.pretpot-timeline-2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
}

/* Timeline Text */
.pretpot-timeline-2-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pretpot-timeline-2-text-1 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pretpot-timeline-2-text-2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.pretpot-timeline-2-text-3 {
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   ITEM ANIMATIONS
   ======================================== */

/* Initial hidden state for animations */
.pretpot-timeline-2-item {
    opacity: 0;
}

.pretpot-timeline-2-item.animated {
    opacity: 1;
}

/* Fade Up Animation */
.pretpot-timeline-2[data-item-animation="fade-up"] .pretpot-timeline-2-item {
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pretpot-timeline-2[data-item-animation="fade-up"] .pretpot-timeline-2-item.animated {
    transform: translateY(0);
}

/* Slide from Left Animation */
.pretpot-timeline-2[data-item-animation="slide-left"] .pretpot-timeline-2-item {
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pretpot-timeline-2[data-item-animation="slide-left"] .pretpot-timeline-2-item.animated {
    transform: translateX(0);
}

/* Slide from Right Animation */
.pretpot-timeline-2[data-item-animation="slide-right"] .pretpot-timeline-2-item {
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pretpot-timeline-2[data-item-animation="slide-right"] .pretpot-timeline-2-item.animated {
    transform: translateX(0);
}

/* Staggered Reveal Animation */
.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item {
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item.animated {
    transform: translateY(0) scale(1);
}

/* Stagger delay for each item */
.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(1) {
    transition-delay: 0s;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(2) {
    transition-delay: 0.1s;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(3) {
    transition-delay: 0.2s;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(4) {
    transition-delay: 0.3s;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(5) {
    transition-delay: 0.4s;
}

.pretpot-timeline-2[data-item-animation="stagger"] .pretpot-timeline-2-item:nth-child(n+6) {
    transition-delay: 0.5s;
}

/* No Animation */
.pretpot-timeline-2[data-item-animation="none"] .pretpot-timeline-2-item {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pretpot-timeline-2-content {
        gap: 30px;
    }
    
    .pretpot-timeline-2-item.position-right .pretpot-timeline-2-text,
    .pretpot-timeline-2-item.position-left .pretpot-timeline-2-text {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .pretpot-timeline-2-item.position-right .pretpot-timeline-2-media,
    .pretpot-timeline-2-item.position-left .pretpot-timeline-2-media {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    /* Stack vertically on mobile */
    .pretpot-timeline-2-separator {
        left: 30px;
        transform: none;
    }
    
    .pretpot-timeline-2-progress {
        left: 30px;
        transform: none;
    }
    
    .pretpot-timeline-2-marker {
        left: 30px;
        transform: translateY(-50%);
    }
    
    .pretpot-timeline-2-marker.diamond {
        transform: translateY(-50%) rotate(45deg);
    }
    
    .pretpot-timeline-2-marker.diamond.active.animate-pulse {
        animation: pretpotMarkerPulseDiamondMobile 1.5s ease-in-out infinite;
    }
    
    @keyframes pretpotMarkerPulseDiamondMobile {
        0%, 100% {
            transform: translateY(-50%) rotate(45deg) scale(1);
        }
        50% {
            transform: translateY(-50%) rotate(45deg) scale(1.3);
        }
    }
    
    .pretpot-timeline-2-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 70px;
        gap: 20px;
    }
    
    .pretpot-timeline-2-item.position-right .pretpot-timeline-2-text,
    .pretpot-timeline-2-item.position-left .pretpot-timeline-2-text {
        text-align: left !important;
        padding: 0 !important;
        width: 100%;
    }
    
    .pretpot-timeline-2-item.position-right .pretpot-timeline-2-media,
    .pretpot-timeline-2-item.position-left .pretpot-timeline-2-media {
        padding: 0 !important;
        width: 100%;
        justify-self: auto !important;
    }
    
    .pretpot-timeline-2-text-2 {
        font-size: 20px;
    }
    
    /* Mobile slide animations adjust */
    .pretpot-timeline-2[data-item-animation="slide-left"] .pretpot-timeline-2-item,
    .pretpot-timeline-2[data-item-animation="slide-right"] .pretpot-timeline-2-item {
        transform: translateY(30px);
    }
    
    .pretpot-timeline-2[data-item-animation="slide-left"] .pretpot-timeline-2-item.animated,
    .pretpot-timeline-2[data-item-animation="slide-right"] .pretpot-timeline-2-item.animated {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .pretpot-timeline-2-header {
        margin-bottom: 40px;
    }
    
    .pretpot-timeline-2-item {
        margin-bottom: 60px;
    }
    
    .pretpot-timeline-2-separator,
    .pretpot-timeline-2-progress {
        left: 20px;
    }
    
    .pretpot-timeline-2-marker {
        left: 20px;
    }
    
    .pretpot-timeline-2-content {
        padding-left: 50px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pretpot-timeline-2-item,
    .pretpot-timeline-2-marker,
    .pretpot-timeline-2-progress {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}