/**
 * DAD Timeline - Styles
 * Modern, elegant horizontal timeline
 */

/* Container */
.dad-timeline-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0a0a0a;
    padding: 60px 0;
}

/* Wrapper for horizontal scrolling */
.dad-timeline-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Track that scrolls */
.dad-timeline-track {
    display: flex;
    position: relative;
    padding: 40px 60px;
    min-width: max-content;
    will-change: transform;
}

/* Timeline horizontal line */
.dad-timeline-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 47px;
    height: 2px;
    background-color: #333333;
    z-index: 1;
}

/* Entries container */
.dad-timeline-entries {
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

/* Individual entry */
.dad-timeline-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 200px;
    position: relative;
    padding: 0 30px;
}

/* Entry content (year + title) */
.dad-timeline-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dad-timeline-entry:hover .dad-timeline-content {
    transform: translateY(-5px);
}

/* Year styling */
.dad-timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Title styling */
.dad-timeline-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    max-width: 180px;
    line-height: 1.4;
}

/* Timeline dot */
.dad-timeline-dot {
    width: 14px;
    height: 14px;
    background-color: #ffffff;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px #333333;
}

.dad-timeline-entry:hover .dad-timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 0 6px #ffffff;
}

/* Fade overlays for seamless scroll effect */
.dad-timeline-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.dad-timeline-fade-left {
    left: 0;
    background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
}

.dad-timeline-fade-right {
    right: 0;
    background: linear-gradient(to left, #0a0a0a 0%, transparent 100%);
}

/* Animation for auto-scroll */
@keyframes dad-timeline-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.dad-timeline-track.is-scrolling {
    animation: dad-timeline-scroll var(--scroll-duration, 30s) linear infinite;
}

.dad-timeline-track.is-paused {
    animation-play-state: paused;
}

/* Drag cursor */
.dad-timeline-container.is-draggable {
    cursor: grab;
}

.dad-timeline-container.is-dragging {
    cursor: grabbing;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dad-timeline-container {
        padding: 40px 0;
    }

    .dad-timeline-track {
        padding: 30px 40px;
    }

    .dad-timeline-line {
        bottom: 37px;
    }

    .dad-timeline-entry {
        min-width: 150px;
        padding: 0 20px;
    }

    .dad-timeline-year {
        font-size: 1.5rem;
    }

    .dad-timeline-title {
        font-size: 0.75rem;
        max-width: 130px;
    }

    .dad-timeline-fade {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .dad-timeline-track {
        padding: 25px 30px;
    }

    .dad-timeline-line {
        bottom: 30px;
    }

    .dad-timeline-entry {
        min-width: 120px;
        padding: 0 15px;
    }

    .dad-timeline-year {
        font-size: 1.25rem;
    }

    .dad-timeline-title {
        font-size: 0.7rem;
        max-width: 100px;
    }

    .dad-timeline-dot {
        width: 10px;
        height: 10px;
    }

    .dad-timeline-fade {
        width: 40px;
    }
}

/* Smooth scrollbar hide for webkit browsers */
.dad-timeline-wrapper::-webkit-scrollbar {
    display: none;
}

.dad-timeline-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
