/* =============================================
   Date Timeline Widget — date-timeline.css
   ============================================= */

.dt-wrapper {
    position: relative;
    background-color: #0a0a0a;
    padding: 40px 40px;
    overflow-x: hidden;
    overflow-y: visible;
    user-select: none;
    -webkit-user-select: none;
    --dt-line-color: #cc0000;
    --dt-line-height: 2px;
    --dt-dash-length: 20px;
    --dt-dash-gap: 6px;
}

/* ---- DATE (top) — always centered above dot ---- */
.dt-dates-track {
    position: relative;
    height: 2.5em;
}

.dt-slide-date {
    position: absolute;
    bottom: 0;
    /* left + transition set by JS to follow the dot */
    transform: translateX(-50%);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #cc0000;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    /* horizontal movement matches dot transition */
    transition: opacity 0.4s ease, left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.dt-slide-date.active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- PAGINATION LINE ---- */
.dt-pagination {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 24px;
}

/*
  Line structure:
    [ dashes | DASHES ] •  [ ————————————— solid ——————————————— ]
  
  .dt-line-left  = dashed part, left of dot, width expands as we progress
  .dt-line-right = solid part, right of dot, width shrinks as we progress
  .dt-dot        = the circle, moves from left to right
*/

.dt-line-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: var(--dt-line-height, 2px);
    background: repeating-linear-gradient(
        90deg,
        var(--dt-line-color, #cc0000) 0px,
        var(--dt-line-color, #cc0000) var(--dt-dash-length, 20px),
        transparent var(--dt-dash-length, 20px),
        transparent calc(var(--dt-dash-length, 20px) + var(--dt-dash-gap, 6px))
    );
    /* width set dynamically by JS */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dt-line-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: var(--dt-line-height, 2px);
    background: var(--dt-line-color, #cc0000);
    /* width set dynamically by JS */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The dot */
.dt-dot {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--dt-line-color, #cc0000);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* ---- TEXTS (bottom) ---- */
.dt-texts-track {
    position: relative;
    min-height: 3.5em;
    margin-top: 30px;
    overflow: visible;
}

.dt-slide-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

.dt-slide-text.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Navigation arrows removed */

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
    .dt-wrapper { padding: 24px 40px; }
    .dt-slide-date { font-size: 1.5rem; }
    .dt-slide-text { font-size: 1rem; }
    .dt-dot { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
    .dt-wrapper { padding: 18px 36px; }
    .dt-slide-date { font-size: 1.2rem; }
    .dt-slide-text { font-size: 0.85rem; }
}
