/**
 * Timeline Stilleri
 * SGD Dernek Teması
 */

/* Timeline Wrapper */
.sgd-timeline-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px 0 240px;
}

/* Timeline Ana Container */
.sgd-timeline {
    position: relative;
    padding: 30px 0 30px 50px;
}

/* Sol Çizgi */
.sgd-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Timeline Öğesi */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    padding: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline İçerik Kartı */
.timeline-content {
    background: #fff;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.timeline-content:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
    border-color: #667eea;
}

/* Timeline Marker (Nokta) */
.timeline-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 5px solid #fff;
    border-radius: 50%;
    left: -62px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animasyonlu halkalar */
.timeline-marker::before,
.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid #667eea;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: pulse-ring 3s infinite ease-out;
}

.timeline-marker::after {
    animation-delay: 1.5s;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }
    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

/* Fotoğraf */
.timeline-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

/* Timeline Bilgi Alanı */
.timeline-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Yıl Badge - Çizginin solunda */
.timeline-year {
    position: absolute;
    left: -220px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
    white-space: nowrap;
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
}

/* İsim */
.timeline-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* Görev/Rol */
.timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin: 0;
    line-height: 1.4;
}

/* Boş Timeline Mesajı */
.timeline-empty {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #999;
    font-style: italic;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 968px) {
    .sgd-timeline-wrapper {
        padding: 0 15px 0 200px;
        margin: 25px auto;
    }

    .sgd-timeline {
        padding: 25px 0 25px 40px;
    }

    .timeline-item {
        margin-bottom: 35px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-content {
        padding: 25px;
        gap: 25px;
    }

    .timeline-marker {
        width: 22px;
        height: 22px;
        left: -51px;
    }

    .timeline-photo {
        width: 100px;
        height: 100px;
    }

    .timeline-photo img {
        width: 100px;
        height: 100px;
    }

    .timeline-year {
        left: -180px;
        font-size: 12px;
        padding: 7px 10px;
        max-width: 160px;
    }

    .timeline-name {
        font-size: 20px;
    }

    .timeline-role {
        font-size: 15px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .sgd-timeline-wrapper {
        margin: 20px auto;
        padding: 0 12px;
    }

    .sgd-timeline {
        padding: 20px 0 20px 35px;
    }

    .sgd-timeline::before {
        width: 3px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-content {
        flex-direction: column;
        align-items: center;
        padding: 22px;
        gap: 15px;
    }

    .timeline-marker {
        left: -47px;
        width: 20px;
        height: 20px;
        border-width: 4px;
    }

    .timeline-photo {
        width: 100px;
        height: 100px;
    }

    .timeline-photo img {
        width: 100px;
        height: 100px;
    }

    .timeline-info {
        align-items: center;
        text-align: center;
    }

    .timeline-year {
        position: static;
        transform: none;
        font-size: 12px;
        padding: 6px 14px;
    }

    .timeline-name {
        font-size: 18px;
    }

    .timeline-role {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sgd-timeline-wrapper {
        padding: 0 10px;
        margin: 20px auto;
    }

    .sgd-timeline {
        padding: 20px 0 20px 30px;
    }

    .sgd-timeline::before {
        width: 3px;
    }

    .timeline-item {
        margin-bottom: 25px;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-marker {
        left: -42px;
        width: 18px;
        height: 18px;
        border-width: 3px;
    }

    .timeline-content {
        padding: 20px;
        gap: 12px;
    }

    .timeline-photo {
        width: 85px;
        height: 85px;
    }

    .timeline-photo img {
        width: 85px;
        height: 85px;
        border-width: 2px;
    }

    .timeline-year {
        position: static;
        transform: none;
        font-size: 11px;
        padding: 5px 12px;
    }

    .timeline-name {
        font-size: 16px;
    }

    .timeline-role {
        font-size: 13px;
    }
}
