/* CV Page Styles - Modern ve Temiz Tasarım */

/* Ana CV Sayfası */
.cv-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.cv-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Profil Bölümü */
.cv-profile {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.profile-content {
    display: flex;
    align-items: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-right: 40px;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder img {
    background-color: #e9ecef;
    filter: opacity(0.7);
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.profile-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    word-break: break-word;
    white-space: pre-wrap; /* Alt alta metinleri koru */
}

.profile-bio p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.profile-bio p:last-child {
    margin-bottom: 0;
}

/* Ana İçerik Bölümü */
.cv-main-content {
    padding: 40px;
}

.cv-columns {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* Bölüm Başlıkları */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    position: relative;
}

/* Beceriler Bölümü */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    margin-bottom: 10px;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    color: #bbb;
}

.star {
    color: #ddd;
    margin-left: 2px;
}

.star.filled {
    color: #667eea;
}

.skill-bar {
    height: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

/* İş Deneyimi Bölümü */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    position: relative;
    padding-left: 25px; /* Daha fazla boşluk, nokta hizası için */
}

.experience-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;    /* Noktayı başlığın ortasına hizala */
    width: 12px; /* Nokta boyutunu biraz büyüt */
    height: 12px;
    background-color: #667eea;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.experience-item:after {
    content: '';
    position: absolute;
    left: 5px;   /* Çizgiyi noktanın altına hizala */
    top: 20px;   /* Çizgiyi noktanın hemen altından başlat */
    bottom: 0;   /* Alt sınırı kapsayacak şekilde */
    width: 2px;
    background-color: #e9ecef;
}

.experience-item:last-child:after {
    display: none;
}

.experience-header {
    margin-bottom: 15px;
}

.experience-position {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.experience-company {
    font-size: 1rem;
    font-weight: 500;
    color: #667eea;
    margin-bottom: 5px;
}

.experience-duration {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    word-break: break-word;
    white-space: pre-wrap; /* Alt alta metinleri koru */
}

.experience-description p:first-child {
    margin-top: 0;
}

.experience-description p:last-child {
    margin-bottom: 0;
}

/* Başlık ve şirket stilini güncelle */
.experience-position {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.experience-company {
    font-size: 1.05rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.experience-company:hover {
    color: #5a67d8;
}

.experience-duration {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    border-left: 3px solid #667eea;
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    word-break: break-word;
}

/* Eğitim Bölümü */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-item {
    position: relative;
    padding-left: 25px; /* Daha fazla boşluk, nokta hizası için */
}

.education-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;    /* Noktayı başlığın ortasına hizala */
    width: 12px; /* Nokta boyutunu biraz büyüt */
    height: 12px;
    background-color: #667eea;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.education-item:after {
    content: '';
    position: absolute;
    left: 5px;   /* Çizgiyi noktanın altına hizala */
    top: 20px;   /* Çizgiyi noktanın hemen altından başlat */
    bottom: 0;   /* Alt sınırı kapsayacak şekilde */
    width: 2px;
    background-color: #e9ecef;
}

.education-item:last-child:after {
    display: none;
}

.education-header {
    margin-bottom: 15px;
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}

.education-field {
    font-weight: 500;
    color: #4a5568;
    font-size: 1rem;
}

.education-school {
    font-size: 1.05rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.education-school:hover {
    color: #5a67d8;
}

.education-duration {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 500;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    border-left: 3px solid #667eea;
}

.education-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    word-break: break-word;
    white-space: pre-wrap; /* Alt alta metinleri koru */
}

.education-description p:first-child {
    margin-top: 0;
}

.education-description p:last-child {
    margin-bottom: 0;
}

/* Hover efektleri */
.education-item:hover:before,
.experience-item:hover:before {
    background-color: #5a67d8;
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(90, 103, 216, 0.4);
    transition: all 0.3s ease;
}

.education-item,
.experience-item {
    transition: all 0.3s ease;
}

.education-item:hover,
.experience-item:hover {
    transform: translateX(5px);
}



/* Timeline container for İş Deneyimi and Eğitim bölümleri */
.cv-experience .experience-list,
.cv-education .education-list {
    position: relative;
    margin-left: 20px;
    padding-left: 20px;
}
.cv-experience .experience-list:before,
.cv-education .education-list:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}
.cv-experience .experience-item,
.cv-education .education-item {
    position: relative;
    padding-left: 30px; /* Ensure text does not overlap dot */
    margin-bottom: 30px;
}
.cv-experience .experience-item:before,
.cv-education .education-item:before {
    content: '';
    position: absolute;
    left: -14px;  /* Dot centrally aligned with vertical line */
    top: 6px;     /* Vertically center dot with item header */
    width: 12px;
    height: 12px;
    background-color: #667eea;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.cv-experience .experience-item:after,
.cv-education .education-item:after {
    display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cv-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cv-column-left {
        order: 2;
    }
    
    .cv-column-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .cv-profile {
        padding: 18px;
    }
    .profile-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-photo {
        width: 90px;
        height: 90px;
        margin-right: 0;
        margin-bottom: 14px;
    }
    .cv-main-content {
        padding: 14px;
    }
    .profile-name {
        font-size: 1.3rem;
    }
    .profile-title {
        font-size: 1rem;
    }
    .skills-list {
        gap: 8px;
    }
    .skill-head {
        font-size: 0.98rem;
    }
    .star {
        font-size: 0.95em;
    }
    .section-title {
        font-size: 1.1rem;
        padding-bottom: 6px;
    }
    .education-item, .experience-item {
        padding-left: 12px;
    }
}

@media (max-width: 576px) {
    .cv-profile {
        padding: 8px;
    }
    .cv-main-content {
        padding: 6px;
    }
    .section-title {
        font-size: 1rem;
        padding-bottom: 4px;
    }
    .profile-photo {
        width: 60px;
        height: 60px;
    }
}
