/* =============================================================================
   Rota Duyurular Timeline — CSS v3
   2-satırlı grid: Satır1 = [başlık | dots | marker | dots | başlık]
                   Satır2 = [açıklama | boş | boş | boş | açıklama]
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* =============================================================================
   WIDGET WRAPPER
   ============================================================================= */
.rota-duyurular-widget {
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}

/* =============================================================================
   BAŞLIK + BUTON
   ============================================================================= */
.rota-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 16px;
}

.rota-baslik {
    --grad-start: #7b5ea7;
    --grad-end:   #4a7fd4;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rota-listele-btn {
    display: inline-block;
    padding: 9px 26px;
    border: 1.5px solid #c5c5c5;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.rota-listele-btn:hover {
    background: #f4f4f4;
    color: #222;
    text-decoration: none;
}

/* =============================================================================
   TİMELİNE KONTEYNER
   ============================================================================= */
.rota-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Orta dikey çizgi — tam ortaya */
.rota-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #d0d0d0;
    z-index: 0;
}

/* =============================================================================
   TİMELİNE ÖĞE — 2 SATIRLI, 5 SÜTUNLU GRİD
   Sütunlar: [içerik] [dots-alan] [marker] [dots-alan] [içerik]
   Satır 1 : başlık  | dots     | marker | dots     | başlık
   Satır 2 : açıklama| boş      | boş    | boş      | açıklama
   ============================================================================= */
.rota-item {
    display: grid;
    grid-template-columns: 1fr 140px 24px 140px 1fr;
    grid-template-rows: auto auto;
    position: relative;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.rota-item.rota-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   SATIR 1 — BAŞLIK / DOTS / MARKER
   ============================================================================= */

/* Sol başlık hücresi */
.rota-zone--heading-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;     /* Tek satırda dikeyde ortala */
    justify-content: flex-end;
    padding-right: 24px;
}

/* Sol dots hücresi */
.rota-zone--dots-left {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Marker hücresi */
.rota-zone--marker {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Sağ dots hücresi */
.rota-zone--dots-right {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Sağ başlık hücresi */
.rota-zone--heading-right {
    grid-column: 5;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 24px;
}

/* =============================================================================
   SATIR 2 — AÇIKLAMA
   ============================================================================= */

/* Sol açıklama hücresi */
.rota-zone--desc-left {
    grid-column: 1;
    grid-row: 2;
    padding-right: 24px;
    padding-top: 8px;
    text-align: right;
}

/* Boş hücreler (marker çizgisi geçiyor) */
.rota-zone--spacer {
    grid-row: 2;
}

/* Sağ açıklama hücresi */
.rota-zone--desc-right {
    grid-column: 5;
    grid-row: 2;
    padding-left: 24px;
    padding-top: 8px;
    text-align: left;
}

/* =============================================================================
   BAŞLIK METNİ (Satır 1 içinde — tek satır)
   ============================================================================= */
.rota-item-heading {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;   /* Başlığı tek satırda tut, dots ile hizalanması için */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sol öğede başlık sağa hizalı */
.rota-item--left .rota-zone--heading-left .rota-item-heading {
    text-align: right;
}

/* Sağ öğede başlık sola hizalı */
.rota-item--right .rota-zone--heading-right .rota-item-heading {
    text-align: left;
}

.rota-item-date {
    font-weight: 700;
    color: #1a1a1a;
}

.rota-item-sep {
    color: #999;
    font-weight: 400;
}

.rota-item-title {
    color: #3a4ecc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.rota-item-title:hover {
    color: #7b5ea7;
    text-decoration: none;
}

/* =============================================================================
   AÇIKLAMA METNİ (Satır 2)
   ============================================================================= */
.rota-item-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: #333;
}

/* =============================================================================
   MARKER DAİRESİ
   ============================================================================= */
.rota-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #c0c0c0;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.rota-marker--active {
    width: 26px;
    height: 26px;
    border-color: #a0a0c8;
    box-shadow: 0 0 0 4px rgba(100, 100, 200, 0.08);
}

.rota-item:hover .rota-marker {
    border-color: #7b5ea7;
    transform: scale(1.15);
}

/* =============================================================================
   YATAY DOTS — Marker'a yakınlaştıkça büyüyen noktalar
   ============================================================================= */
.rota-dots-line {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: -3px; /* Font metrics dengelemesi — başlıkla hizalamak için */
}

/* Sol dots: en büyük dot marker'a en yakın (flex-end'den önce) → reverse */
.rota-zone--dots-left .rota-dots-line {
    flex-direction: row-reverse;
}

/* Sağ dots: en büyük dot marker'a en yakın → normal order */
.rota-zone--dots-right .rota-dots-line {
    flex-direction: row;
}

.rota-dots-line .rd {
    display: inline-block;
    border-radius: 50%;
    background-color: #b0b0cc;
    flex-shrink: 0;
    opacity: 0.72;
}

/* =============================================================================
   AY FİLTRE BUTONLARI
   ============================================================================= */
.rota-month-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.rota-month-btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.rota-month-btn:hover {
    /* Hover efekti sadeleştirildi */
}

.rota-month-btn--active,
.rota-month-btn--active:hover {
    border-color: transparent;
}

/* =============================================================================
   MOBİL UYUM
   ============================================================================= */
@media (max-width: 768px) {
    .rota-timeline::before {
        left: 16px;
        transform: none;
    }

    .rota-item {
        grid-template-columns: 28px 1fr;
        grid-template-rows: auto auto;
        margin-bottom: 24px;
    }

    /* Gizlenen sütunlar */
    .rota-zone--heading-left,
    .rota-zone--dots-left,
    .rota-zone--dots-right,
    .rota-zone--spacer,
    .rota-zone--desc-left {
        display: none !important;
    }

    /* Marker sola */
    .rota-zone--marker {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        padding-top: 2px;
    }

    /* Sol öğenin başlığı sağ sütunda göster */
    .rota-item--left .rota-zone--heading-right,
    .rota-item--left .rota-zone--desc-right {
        display: flex !important;
    }

    /* Heading */
    .rota-zone--heading-right {
        grid-column: 2;
        grid-row: 1;
        padding-left: 14px;
        padding-right: 0;
        white-space: normal;
    }

    /* Desc */
    .rota-zone--desc-right {
        grid-column: 2;
        grid-row: 2;
        padding-left: 14px;
        padding-top: 6px;
    }

    /* Sol öğe için de metin sola */
    .rota-item--left .rota-zone--heading-right .rota-item-heading,
    .rota-item--right .rota-zone--heading-right .rota-item-heading {
        text-align: left;
        white-space: normal;
    }

    .rota-item-heading { white-space: normal; font-size: 13px; }
    .rota-baslik { font-size: 26px; }
    .rota-item-desc { font-size: 13px; }
}

@media (max-width: 480px) {
    .rota-duyurular-widget { padding: 10px 0 20px; }
    .rota-item-heading { font-size: 12px; }
}
