/* Timeline Container */
.timeline-container {
    max-width: 675px; /* 75% of 900px */
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
    overflow-x: hidden;
}

/* Ana timeline çizgisi - tek sürekli çizgi */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 164px; /* 140px (date width) + 30px (half of line area) - 6px offset for thicker line */
    top: 37px; /* 20px (container padding) + 17px (half of marker height) */
    bottom: 0;
    width: 12px;
    background: var(--primary-blue);
    z-index: 0;
    border-radius: 6px;
}

/* Timeline Item */
.timeline-item {
    display: grid;
    grid-template-columns: 140px 60px 1fr;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

/* Sol taraf - Tarih */
.timeline-date {
    text-align: right;
    padding-right: 20px;
    padding-top: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
}

.planned-text {
    font-style: italic;
    color: var(--text-secondary);
}

.date-text {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Ortada - Timeline çizgisi */
.timeline-line {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 10;
}

.timeline-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

.timeline-marker.completed {
    background: white !important;
    color: var(--primary-blue);
    border: 4px solid var(--primary-blue);
}

.timeline-marker.planned {
    background: white !important;
    color: var(--primary-blue);
    border: 4px solid var(--primary-blue);
}

/* Sağ taraf - İçerik */
.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.feature-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.feature-icon-svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.feature-icon-emoji {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.content-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.version-badge {
    background: var(--primary-blue);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}

.content-description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 15px;
}

/* Dark theme adjustments */
[data-theme='dark'] .timeline-content {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme='dark'] .timeline-marker.planned {
    background: var(--bg-primary) !important;
    border-color: var(--primary-blue);
}

[data-theme='dark'] .timeline-marker.completed {
    background: var(--primary-blue) !important;
    color: var(--bg-primary);
    border-color: var(--primary-blue);
}

[data-theme='dark'] .feature-icon-svg {
    color: var(--primary-blue);
}

[data-theme='dark'] .timeline-container::before {
    background: var(--primary-blue);
}

[data-theme='dark'] .planned-text {
    color: var(--text-secondary);
}

[data-theme='dark'] .date-text {
    color: var(--primary-blue);
}

[data-theme='dark'] .content-title {
    color: var(--text-primary);
}

[data-theme='dark'] .content-description {
    color: var(--text-secondary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeline-container {
        max-width: 85%; /* Slightly wider on mobile */
    }
    
    .timeline-container::before {
        left: 114px; /* 100px (mobile date width) + 20px (half of mobile line area) - 6px offset for thicker line */
        top: 35px; /* 20px (container padding) + 15px (half of mobile marker height 30px) */
    }
    
    .timeline-item {
        grid-template-columns: 100px 40px 1fr;
        margin-bottom: 32px;
    }
    
    .timeline-date {
        padding-right: 12px;
        font-size: 14px;
    }
    
    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .timeline-content {
        padding: 12px;
    }
    
    .content-title {
        font-size: 12px;
    }
    
    .content-description {
        font-size: 10px;
    }
    
    .feature-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding: 20px 10px;
        max-width: 90%; /* Even wider on small mobile */
    }
    
    .timeline-container::before {
        left: 89px; /* 80px (small mobile date width) + 15px (half of small mobile line area) - 6px offset for thicker line */
        top: 33px; /* 20px (container padding) + 13px (half of small mobile marker height 26px) */
    }
    
    .timeline-item {
        grid-template-columns: 80px 30px 1fr;
        gap: 8px;
    }
    
    .timeline-date {
        padding-right: 8px;
        font-size: 13px;
    }
    
    .timeline-marker {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }
    
    .content-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .version-badge {
        align-self: flex-start;
    }
    
    .feature-icon {
        font-size: 16px;
    }
    
    .title-with-icon {
        gap: 6px;
    }
}

/* Additional styles for roadmap page */
.roadmap-container {
    margin-top: 40px;
}

.content-title {
    font-weight: 400 !important;
}

/* Timeline line position fix */
.timeline-container::before {
    top: 37px !important; /* 20px (container padding) + 17px (half of marker height) */
}

@media (max-width: 768px) {
    .timeline-container::before {
        top: 35px !important; /* 20px (container padding) + 15px (half of mobile marker height 30px) */
    }
}

@media (max-width: 480px) {
    .timeline-container::before {
        top: 33px !important; /* 20px (container padding) + 13px (half of small mobile marker height 26px) */
    }
}

/* Error message styles */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--radius-md);
    margin: 40px 0;
}

.error-message h3 {
    color: #721c24;
    margin-bottom: 8px;
}

.error-message p {
    color: #721c24;
} 