/* ═══════ WIDGET TIMELINE ANIMADO ═══════ */
.c360-timeline-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Background grid */
.c360-timeline-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Title */
.c360-timeline-title {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}
.c360-timeline-title h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.c360-timeline-title p {
    color: var(--ink-muted);
    font-size: 15px;
}

/* SVG Path Animation */
.c360-timeline-svg {
    position: absolute;
    top: 170px;
    left: 10%;
    width: 80%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}
.c360-timeline-svg path.track {
    stroke: var(--border);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.c360-timeline-svg path.animated-line {
    stroke: var(--primary);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: c360DashFill 8s linear infinite;
}

@keyframes c360DashFill {
    0% { stroke-dashoffset: 2000; opacity: 0; }
    5% { opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 2000; opacity: 0; }
}

/* Step Nodes Container */
.c360-timeline-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
}

/* Individual Node */
.c360-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(14.28% - 15px); /* 7 steps */
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: c360StepFadeIn 0.5s forwards;
}
.c360-timeline-step:nth-child(1) { animation-delay: 0s; }
.c360-timeline-step:nth-child(2) { animation-delay: 0.5s; }
.c360-timeline-step:nth-child(3) { animation-delay: 1.0s; }
.c360-timeline-step:nth-child(4) { animation-delay: 1.5s; }
.c360-timeline-step:nth-child(5) { animation-delay: 2.0s; }
.c360-timeline-step:nth-child(6) { animation-delay: 2.5s; }
.c360-timeline-step:nth-child(7) { animation-delay: 3.0s; }

@keyframes c360StepFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Step Icon Circle */
.c360-timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.c360-timeline-icon::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.c360-timeline-step:hover .c360-timeline-icon {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(27,101,227,0.15);
}
.c360-timeline-step:hover .c360-timeline-icon::before {
    opacity: 1;
    animation: c360RotateDash 4s linear infinite;
}

@keyframes c360RotateDash {
    to { transform: rotate(360deg); }
}

/* Step Text */
.c360-timeline-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.c360-timeline-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

/* Zigzag layout adjustments for desktop */
@media (min-width: 992px) {
    .c360-timeline-step:nth-child(even) {
        margin-top: 100px;
    }
}

/* Responsive for Mobile */
@media (max-width: 991px) {
    .c360-timeline-svg { display: none; }
    .c360-timeline-grid {
        flex-direction: column;
        align-items: center;
    }
    .c360-timeline-step {
        width: 100%;
        max-width: 300px;
        flex-direction: row;
        text-align: left;
        margin-bottom: 20px;
        background: #f8fafc;
        padding: 15px;
        border-radius: 12px;
        border: 1px solid var(--border);
    }
    .c360-timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    .c360-timeline-step:nth-child(even) {
        margin-top: 0;
    }
    .c360-timeline-num { margin-bottom: 2px; }
}
