/* Source: resources\views\pages\timeline\index.blade.php */
/* TIMELINE CORE */
    .kronoloji-wrap {
        --timeline-muted: rgba(var(--text-rgb), 0.82);
        --timeline-muted-weak: rgba(var(--text-rgb), 0.68);
        --timeline-chip-bg: rgba(var(--text-rgb), 0.06);
        --timeline-chip-border: rgba(var(--text-rgb), 0.18);
        --timeline-chip-hover: rgba(var(--text-rgb), 0.12);
    }

    .timeline-container {
        position: relative;
        padding-left: 3rem;
        margin-top: 2rem;
    }

    /* THE VERTICAL LINE */
    .timeline-line {
        position: absolute;
        left: 0.75rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--red) 0%, rgba(162, 28, 38, 0.1) 100%);
        opacity: 0.4;
    }

    /* YEAR MARKER */
    .year-marker {
        position: relative;
        margin-left: -3rem;
        margin-bottom: 2.5rem;
        margin-top: 4rem;
        display: flex;
        align-items: center;
        z-index: 10;
    }

    .year-marker:first-child {
        margin-top: 0;
    }

    .year-circle {
        width: 1.5rem;
        height: 1.5rem;
        background: var(--red);
        border: 4px solid var(--bg);
        border-radius: 50%;
        margin-right: 1.5rem;
        box-shadow: 0 0 15px rgba(162, 28, 38, 0.4);
    }

    .year-label {
        font-family: 'Manrope', sans-serif;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text);
        letter-spacing: -0.05em;
        line-height: 1;
        opacity: 0.9;
    }

    /* TIMELINE ITEM */
    .timeline-item {
        position: relative;
        margin-bottom: 3.5rem;
        transition: all 0.3s ease;
    }

    /* THE DOT ON THE LINE */
    .timeline-dot {
        position: absolute;
        left: -2.65rem;
        top: 1.2rem;
        width: 12px;
        height: 12px;
        background: var(--bg);
        border: 2px solid var(--red);
        border-radius: 50%;
        z-index: 5;
        transition: all 0.3s ease;
    }

    .timeline-item:hover .timeline-dot {
        background: var(--yellow);
        border-color: var(--yellow);
        box-shadow: 0 0 10px var(--yellow);
        transform: scale(1.3);
    }

    /* THE CARD */
    .timeline-card {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 8px 26px rgba(0,0,0,0.14);
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    }

    .timeline-item:hover .timeline-card {
        transform: translateX(8px);
        border-color: var(--red);
        box-shadow: 0 16px 34px rgba(162, 28, 38, 0.16);
    }

    /* DATE TAG */
    .date-tag {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--red);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    /* ENTRY TITLE */
    .entry-title {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    /* ENTRY CONTENT */
    .entry-content {
        font-size: 0.95rem;
        line-height: 1.6;
        color: rgba(var(--text-rgb), 0.86);
    }

    /* TYPE BADGE */
    .type-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: rgba(162, 28, 38, 0.12);
        border: 1px solid rgba(162, 28, 38, 0.35);
        color: var(--red);
        font-size: 0.7rem;
        font-weight: 700;
        border-radius: 100px;
        margin-top: 1rem;
    }

    .type-badge--muted {
        background: transparent;
        border-color: rgba(var(--text-rgb), 0.22);
        color: var(--timeline-muted);
    }

    /* FILTERS */
    .timeline-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .filter-btn {
        padding: 0.6rem 1.25rem;
        background: var(--timeline-chip-bg);
        border: 1px solid var(--timeline-chip-border);
        color: rgba(var(--text-rgb), 0.8);
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 700;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .filter-btn:hover {
        border-color: var(--red);
        color: var(--text);
        background: var(--timeline-chip-hover);
    }

    .filter-btn.active {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
        box-shadow: 0 8px 20px rgba(162, 28, 38, 0.35);
    }

    /* LIGHT MODE OVERRIDES */
    [data-theme="light"] .timeline-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    [data-theme="light"] .year-label {
        color: var(--text);
        opacity: 1;
    }

    [data-theme="light"] .timeline-line {
        background: linear-gradient(180deg, var(--red) 0%, rgba(162, 28, 38, 0.05) 100%);
        opacity: 0.2;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .timeline-container {
            padding-left: 2rem;
        }
        .year-label {
            font-size: 2rem;
        }
        .timeline-dot {
            left: -1.65rem;
        }
    }

    /* PAGINATION */
    .timeline-pagination-wrap {
        margin-top: 12px;
        display: flex;
        justify-content: center;
    }

    .timeline-pagination {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px;
        border-radius: 12px;
        border: 1px solid rgba(var(--text-rgb), 0.12);
        background: rgba(var(--text-rgb), 0.04);
    }

    .timeline-page-link {
        min-width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        text-decoration: none;
        font-size: 13px;
        font-weight: 700;
        color: var(--timeline-muted);
        transition: all 0.2s ease;
    }

    .timeline-page-link:hover {
        background: rgba(var(--text-rgb), 0.1);
        color: var(--text);
    }

    .timeline-page-link.is-active {
        background: var(--red);
        color: #fff;
        box-shadow: 0 8px 20px rgba(162, 28, 38, 0.35);
    }

    .timeline-page-link.is-disabled {
        opacity: 0.35;
        pointer-events: none;
    }

    /* LAZY REVEAL */
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        will-change: opacity, transform;
    }

    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .reveal-on-scroll {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
