/**
 * Etkinlik Timeline Widget CSS
 */

.etkinlik-timeline {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-main-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-items {
    position: relative;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    transition: all 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.timeline-item:hover {
    transition: all 0.3s ease, transform 0.3s ease;
}

.timeline-icon-wrapper {
    position: relative;
    z-index: 2;
}

.timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-icon i,
.timeline-icon svg {
    font-size: 20px;
    color: #667eea;
}

.timeline-content {
    flex: 1;
    padding: 0 20px;
}

.timeline-time {
    display: inline-block;
    padding: 6px 15px;
    background-color: #f0f4ff;
    color: #667eea;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-event-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.timeline-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Vertical Layout */
.timeline-layout-vertical .timeline-line {
    left: 25px;
}

.timeline-layout-vertical .timeline-icon-wrapper {
    margin-right: 20px;
}

/* Horizontal Layout */
.timeline-layout-horizontal .timeline-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.timeline-layout-horizontal .timeline-wrapper::-webkit-scrollbar {
    height: 8px;
}

.timeline-layout-horizontal .timeline-wrapper::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.timeline-layout-horizontal .timeline-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.timeline-layout-horizontal .timeline-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.timeline-layout-horizontal .timeline-items {
    display: flex !important;
    flex-direction: row;
    gap: 25px;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
}

.timeline-layout-horizontal .timeline-item {
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 280px;
    margin-bottom: 0;
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.timeline-layout-horizontal .timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-layout-horizontal .timeline-icon-wrapper {
    margin: 0 auto 20px;
}

.timeline-layout-horizontal .timeline-icon {
    width: 70px;
    height: 70px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeline-layout-horizontal .timeline-icon i,
.timeline-layout-horizontal .timeline-icon svg {
    font-size: 28px;
}

.timeline-layout-horizontal .timeline-content {
    text-align: center;
    padding: 0;
    width: 100%;
}

.timeline-layout-horizontal .timeline-time {
    margin-bottom: 12px;
}

.timeline-layout-horizontal .timeline-event-title {
    margin-bottom: 10px;
}

.timeline-layout-horizontal .timeline-line {
    display: none;
}

/* Modern Layout */
.timeline-layout-modern .timeline-line {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    width: 3px;
    left: 30px;
}

.timeline-layout-modern .timeline-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-left: 80px;
    margin-bottom: 30px;
}

.timeline-layout-modern .timeline-icon-wrapper {
    position: absolute;
    left: -55px;
    top: 20px;
}

.timeline-layout-modern .timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid #fff;
}

.timeline-layout-modern .timeline-icon i,
.timeline-layout-modern .timeline-icon svg {
    color: #fff;
    font-size: 24px;
}

.timeline-layout-modern .timeline-content {
    padding: 0;
}

.timeline-layout-modern .timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

/* Minimal Layout */
.timeline-layout-minimal .timeline-item {
    flex-direction: column;
    border-left: 3px solid #e9ecef;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-layout-minimal .timeline-icon-wrapper {
    position: absolute;
    left: -18px;
}

.timeline-layout-minimal .timeline-icon {
    width: 32px;
    height: 32px;
    border: none;
    box-shadow: none;
}

.timeline-layout-minimal .timeline-icon i,
.timeline-layout-minimal .timeline-icon svg {
    font-size: 16px;
}

.timeline-layout-minimal .timeline-content {
    padding: 0;
}

.timeline-layout-minimal .timeline-time {
    background: transparent;
    color: #667eea;
    padding: 0;
    font-size: 13px;
    margin-bottom: 5px;
}

.timeline-layout-minimal .timeline-event-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-layout-minimal .timeline-description {
    font-size: 13px;
}

/* Cards Layout */
.timeline-layout-cards .timeline-wrapper {
    display: flex;
    justify-content: center;
}

.timeline-layout-cards .timeline-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-content: center;
    max-width: 100%;
}

/* Tablet varsayılan */
@media (max-width: 1024px) {
    .timeline-layout-cards .timeline-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil varsayılan */
@media (max-width: 767px) {
    .timeline-layout-cards .timeline-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

.timeline-layout-cards .timeline-item {
    flex-direction: column;
    background: #fff;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.timeline-layout-cards .timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-layout-cards .timeline-icon-wrapper {
    margin: 0 auto 20px;
}

.timeline-layout-cards .timeline-icon {
    width: 70px;
    height: 70px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeline-layout-cards .timeline-icon i,
.timeline-layout-cards .timeline-icon svg {
    font-size: 30px;
}

.timeline-layout-cards .timeline-content {
    text-align: center;
    padding: 0;
    width: 100%;
}

.timeline-layout-cards .timeline-time {
    margin-bottom: 12px;
}

.timeline-layout-cards .timeline-event-title {
    margin-bottom: 10px;
}

/* Active & Passed States */
.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    animation: pulse 2s infinite;
}

.timeline-item.active .timeline-icon i,
.timeline-item.active .timeline-icon svg {
    color: #fff;
}

.timeline-item.active .timeline-time {
    background-color: #28a745;
    color: #fff;
}

.timeline-item.passed {
    opacity: 0.6;
}

.timeline-item.passed .timeline-icon {
    background-color: #6c757d;
    border-color: #6c757d;
}

.timeline-item.passed .timeline-icon i,
.timeline-item.passed .timeline-icon svg {
    color: #fff;
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-main-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

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

    .timeline-icon {
        width: 45px;
        height: 45px;
    }

    .timeline-icon i,
    .timeline-icon svg {
        font-size: 18px;
    }

    .timeline-event-title {
        font-size: 18px;
    }

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

    /* Modern layout responsive */
    .timeline-layout-modern .timeline-item {
        margin-left: 60px;
    }

    .timeline-layout-modern .timeline-icon-wrapper {
        left: -45px;
    }

    .timeline-layout-modern .timeline-icon {
        width: 50px;
        height: 50px;
    }

    /* Cards layout responsive */
    .timeline-layout-cards .timeline-items {
        gap: 20px;
    }

    .timeline-layout-cards .timeline-item {
        padding: 25px 20px;
    }

    .timeline-layout-cards .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-layout-cards .timeline-icon i,
    .timeline-layout-cards .timeline-icon svg {
        font-size: 24px;
    }

    /* Horizontal layout responsive */
    .timeline-layout-horizontal .timeline-items {
        justify-content: flex-start;
        gap: 20px;
    }

    .timeline-layout-horizontal .timeline-item {
        min-width: 240px;
        max-width: 240px;
        padding: 25px 20px;
    }

    .timeline-layout-horizontal .timeline-icon {
        width: 60px;
        height: 60px;
    }

    .timeline-layout-horizontal .timeline-icon i,
    .timeline-layout-horizontal .timeline-icon svg {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .timeline-layout-vertical .timeline-line {
        left: 22px;
    }

    .timeline-layout-modern .timeline-item {
        margin-left: 50px;
        padding: 15px;
    }

    .timeline-layout-modern .timeline-line {
        left: 22px;
    }

    .timeline-layout-modern .timeline-icon-wrapper {
        left: -36px;
    }

    .timeline-layout-modern .timeline-icon {
        width: 44px;
        height: 44px;
    }

    .timeline-layout-modern .timeline-icon i,
    .timeline-layout-modern .timeline-icon svg {
        font-size: 20px;
    }

    .timeline-layout-cards .timeline-items {
        gap: 15px;
    }

    .timeline-layout-cards .timeline-item {
        padding: 20px 15px;
    }

    .timeline-layout-horizontal .timeline-items {
        justify-content: flex-start;
        gap: 15px;
    }

    .timeline-layout-horizontal .timeline-item {
        min-width: 200px;
        max-width: 200px;
        padding: 20px 15px;
    }

    .timeline-layout-horizontal .timeline-icon {
        width: 55px;
        height: 55px;
    }

    .timeline-layout-horizontal .timeline-icon i,
    .timeline-layout-horizontal .timeline-icon svg {
        font-size: 22px;
    }

    .timeline-layout-horizontal .timeline-event-title {
        font-size: 16px;
    }

    .timeline-layout-horizontal .timeline-description {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .timeline-item {
        background-color: #2c3e50;
    }

    .timeline-event-title {
        color: #ecf0f1;
    }

    .timeline-description {
        color: #bdc3c7;
    }

    .timeline-icon {
        background-color: #34495e;
        border-color: #4a5f7f;
    }

    .timeline-line {
        background-color: #4a5f7f;
    }
}
