:root {
    --gold: #B09043;
    --cream: #EAE4DC;
    --white: #FFFFFF;
    --blue: #111C4E;
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
}

.dibrina-timeline-empty {
    text-align: center;
    padding: 2em;
    color: var(--blue, #111C4E);
    opacity: 0.7;
}

.year-navigation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 200px;
    position: relative;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(17, 28, 78, 0.2);
}

.nav-arrow:hover:not(:disabled) {
    background: var(--gold);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.nav-arrow svg {
    width: 22px;
    height: 22px;
    stroke: var(--white);
    stroke-width: 3;
}

.year-scroll-wrapper {
    flex: 1;
    max-width: 900px;
    width: 100%;
    position: relative;
}

.timeline-line-fixed {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    background: var(--blue);
    z-index: 1;
    pointer-events: none;
}

.year-track-scrollable {
    overflow-x: auto;
    overflow-y: visible;
    padding: 1em;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
    cursor: grab;
    z-index: 2;
    width: 100%;
}

.year-track-scrollable:active {
    cursor: grabbing;
}

.year-track-scrollable::-webkit-scrollbar {
    display: none;
}

.year-dots-scrollable {
    display: flex;
    align-items: center;
    gap: 150px;
    position: relative;
    z-index: 3;
    min-height: 100px;
}

.year-dots-scrollable::before,
.year-dots-scrollable::after {
    content: '';
    flex-shrink: 0;
    width: calc(50% - 10px);
    height: 1px;
}

.year-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.year-dot-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cream);
    border: 3px solid var(--blue);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    z-index: 3;
}

.year-dot:hover .year-dot-circle {
    transform: scale(1.3);
}

.year-dot-label {
    font-family: "Poppins", sans-serif;
    font-size: 1em;
    color: var(--blue);
    font-weight: 300;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s var(--ease-smooth);
    position: absolute;
    top: 100%;
    margin-top: 16px;
}

.year-dot.show-label .year-dot-label {
    opacity: 0.6;
    visibility: visible;
    transform: scale(1);
}

.year-dot.center-active .year-dot-circle {
    width: 25px;
    height: 25px;
    background: var(--blue);
    border-width: 4px;
    box-shadow:
        0 0 0 6px var(--cream),
        0 0 0 10px var(--blue);
}

.year-dot.center-active .year-dot-label {
    opacity: 1;
    font-size: 1.1em;
    transform: scale(1);
}

@media (max-width: 768px) {
    .year-navigation-container { gap: 12px; padding: 20px 12px; height: 180px; }
    .nav-arrow { width: 35px; height: 35px; }
    .nav-arrow svg { width: 18px; height: 18px; }
    .year-dots-scrollable { gap: 140px; }
    .year-dot-label { font-size: 0.8em; }
}

@media (max-width: 480px) {
    .year-dots-scrollable { gap: 120px; }
    .year-dot-circle { width: 14px; height: 14px; }
    .year-dot.center-active .year-dot-circle { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .year-track-scrollable { scroll-behavior: auto; }
}

.nav-arrow:focus-visible,
.year-dot:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}
