/* ── TAM Zaman Tüneli — Yıl Sekmeli Tasarım ─────────── */

.tam-tl-wrap {
    --tl-color:   #104c81;
    --tl-line-h:  2px;
    --tl-dot-r:   12px;
    width: 100%;
    box-sizing: border-box;
}

/* Bölüm başlığı */
.tam-tl-header   { margin-bottom: 20px; }
.tam-tl-baslik-ana {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--tl-color);
}

/* ── Yıl Sekmeleri ────────────────────────────────────── */
.tam-tl-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tam-tl-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 2px solid var(--tl-color);
    border-radius: 100px;
    background: transparent;
    color: var(--tl-color);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.tam-tl-tab:hover  { background: rgba(16,76,129,0.07); }
.tam-tl-tab.active { background: var(--tl-color); color: #fff; }

/* Olay sayısı rozeti */
.tam-tl-sayac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
.tam-tl-tab:not(.active) .tam-tl-sayac {
    background: var(--tl-color);
    color: #fff;
}

/* ── Panel (her yıl için) ────────────────────────────── */
.tam-tl-panel        { display: none; }
.tam-tl-panel.active { display: block; }

/* ── Dış kapsayıcı (ok butonları) ───────────────────── */
.tam-tl-outer {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Kaydırma alanı ──────────────────────────────────── */
.tam-tl-scroll-area {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    display: flex;
    align-items: flex-start;
    padding: 0 4px 12px;
    cursor: grab;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    outline: none;
}
.tam-tl-scroll-area::-webkit-scrollbar { display: none; }
.tam-tl-scroll-area.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* ── Yatay çizgi ─────────────────────────────────────── */
.tam-tl-track-line {
    position: absolute;
    top: var(--tl-dot-r); /* nokta merkezine hizala */
    left: 0;
    right: 0;
    height: var(--tl-line-h);
    pointer-events: none;
    z-index: 0;
    padding: 0 30px;
    box-sizing: border-box;
}
.tam-tl-line {
    width: 100%;
    height: 100%;
    background: var(--tl-color);
    opacity: 0.15;
    border-radius: 2px;
}

/* ── Kart ────────────────────────────────────────────── */
.tam-tl-kart {
    min-width: 210px;
    max-width: 210px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ── Nokta ───────────────────────────────────────────── */
.tam-tl-dot-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.tam-tl-dot {
    width: calc(var(--tl-dot-r) * 2);
    height: calc(var(--tl-dot-r) * 2);
    border-radius: 50%;
    background: var(--tl-color);
    box-shadow: 0 0 0 3px rgba(16,76,129,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.tam-tl-kart:hover .tam-tl-dot {
    transform: scale(1.18);
    box-shadow: 0 0 0 5px rgba(16,76,129,0.18);
}

/* ── Kart içerik ─────────────────────────────────────── */
.tam-tl-kart-icerik {
    background: #fff;
    border: 1px solid #e4ecf4;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(16,76,129,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 80px;
}
.tam-tl-kart:hover .tam-tl-kart-icerik {
    box-shadow: 0 4px 14px rgba(16,76,129,0.1);
    transform: translateY(-2px);
}

.tam-tl-tarih {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tl-color);
    margin-bottom: 5px;
    opacity: 0.75;
}

.tam-tl-kart-aciklama {
    margin: 0;
    font-size: 13px;
    color: #3a4f63;
    line-height: 1.6;
}

/* ── Navigasyon okları ───────────────────────────────── */
.tam-tl-nav-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--tl-color);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 2px 5px rgba(16,76,129,0.2);
    padding: 0;
    margin-top: calc(0px - var(--tl-dot-r) + 2px); /* çizgiyle hizala */
}
.tam-tl-nav-btn:hover  { opacity: 0.82; }
.tam-tl-nav-btn:active { transform: scale(0.9); }
.tam-tl-nav-btn:disabled { opacity: 0.25; cursor: default; transform: none; }

/* ── Alt nokta göstergesi ────────────────────────────── */
.tam-tl-dots-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}
.tam-tl-dots-btn {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 2px solid var(--tl-color);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tam-tl-dots-btn.active { background: var(--tl-color); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
    .tam-tl-nav-btn { width: 28px; height: 28px; font-size: 12px; }
    .tam-tl-kart    { min-width: 175px; max-width: 175px; }
    .tam-tl-baslik-ana { font-size: 18px; }
    .tam-tl-tab { font-size: 13px; padding: 6px 13px; }
}
