/**
 * HelyDev Timeline Component Styles
 *
 * @package HelyDev_Core
 * @subpackage Components/Timeline
 */

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */
.helydev-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ========================================
   LÍNEA CENTRAL PUNTEADA
   ======================================== */
.helydev-timeline__container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-image: linear-gradient(to bottom, var(--helydev-timeline-line-color, #1a4670) 50%, rgba(255, 255, 255, 0) 0%);
    background-position: right;
    background-size: 2px 10px;
    background-repeat: repeat-y;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.helydev-timeline__container {
    position: relative;
}

/* ========================================
   ITEMS DEL TIMELINE
   ======================================== */
.helydev-timeline__item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Posicionamiento alternado */
.helydev-timeline__item--left {
    left: 0;
    text-align: left;
    padding-right: 50px;
}

.helydev-timeline__item--right {
    left: 50%;
    text-align: left;
    padding-left: 50px;
}

/* ========================================
   PUNTOS DECORATIVOS
   ======================================== */
.helydev-timeline__dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--helydev-timeline-dot-bg, #ffffff);
    border: 2px solid var(--helydev-timeline-line-color, #1a4670);
    border-radius: 50%;
    z-index: 1;
    top: 25px;
}

/* Punto interno para efecto doble círculo */
.helydev-timeline__dot::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--helydev-timeline-line-color, #1a4670);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Posición del punto según lado */
.helydev-timeline__item--left .helydev-timeline__dot {
    right: -12px;
}

.helydev-timeline__item--right .helydev-timeline__dot {
    left: -12px;
}

/* ========================================
   CONTENIDO
   ======================================== */
.helydev-timeline__content {
    background: transparent;
}

.helydev-timeline__title {
    color: var(--helydev-timeline-title-color, #1a4670);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.helydev-timeline__description {
    font-size: 0.95rem;
    color: var(--helydev-timeline-desc-color, #666666);
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE - MÓVILES
   ======================================== */
@media screen and (max-width: 768px) {
    /* Línea a la izquierda */
    .helydev-timeline__container::after {
        left: 31px;
    }

    /* Items a ancho completo */
    .helydev-timeline__item {
        width: 100%;
        padding-left: 70px !important;
        padding-right: 25px !important;
        text-align: left;
        left: 0 !important;
    }

    /* Puntos a la izquierda */
    .helydev-timeline__dot {
        left: 20px !important;
        right: auto !important;
    }
}

/* ========================================
   VARIANTES DE COLOR
   ======================================== */

/* Variante azul (por defecto) */
.helydev-timeline--blue {
    --helydev-timeline-line-color: #1a4670;
    --helydev-timeline-dot-bg: #ffffff;
    --helydev-timeline-title-color: #1a4670;
    --helydev-timeline-desc-color: #666666;
}

/* Variante naranja */
.helydev-timeline--orange {
    --helydev-timeline-line-color: #f5a600;
    --helydev-timeline-dot-bg: #ffffff;
    --helydev-timeline-title-color: #f5a600;
    --helydev-timeline-desc-color: #666666;
}

/* Variante oscura */
.helydev-timeline--dark {
    --helydev-timeline-line-color: #333333;
    --helydev-timeline-dot-bg: #ffffff;
    --helydev-timeline-title-color: #222222;
    --helydev-timeline-desc-color: #555555;
}
