/* --- Ortak Değişkenler ve Reset Stilleri --- */
:root {
    --primary-color: #0d6efd; 
    --primary-hover: #0b5ed7; 
    --secondary-color: #f8f9fa; 
    --dark-color: #212529; 
    --muted-color: #6c757d; 
    --light-color: #ffffff; 
    --border-color: #e9ecef; 
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);

    /* Modül Renkleri */
    --module-color-1: #007bff; 
    --module-color-2: #6f42c1; 
    --module-color-3: #fd7e14; 
    --module-color-4: #198754; 
    --module-color-5: #dc3545;

    /* Durum Renkleri */
    --success-bg: #d1e7dd; 
    --warning-bg: #fff3cd; 
    --danger-bg: #f8d7da;
    
    /* Adım Renkleri */
    --step-color-1: #6f42c1; 
    --step-color-2: #fd7e14; 
    --step-color-3: #198754;
}
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; margin: 0; background-color: var(--secondary-color); color: var(--dark-color); line-height: 1.7; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* --- Header ve Logo --- */
.header { background-color: var(--light-color); padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--dark-color); }
.header .brand .logo-img { height: 68px; margin-bottom: 0px; }
.header .brand .main-title-wrapper { display: flex; align-items: baseline; margin-top: 5px; }
.header .brand .main-title-wrapper .compass-icon { font-size: 24px; margin-right: 8px; line-height: 1; color: var(--primary-color); }
.header .brand .logo-text, .header .brand .version-text { font-family: 'Arial Black', sans-serif; font-size: 20px; font-weight: 900; color: var(--primary-color); line-height: 1.2; text-align: left; display: inline; }
.header .brand .version-text { margin-left: 8px; }
.header nav a { margin: 0 15px; text-decoration: none; color: var(--dark-color); font-weight: 500; transition: color 0.3s ease; }
.header nav a:hover { color: var(--primary-color); }

.btn { padding: 10px 25px; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-block; text-align: center; border: 1px solid transparent; cursor: pointer; transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary { background-color: var(--primary-color); color: var(--light-color); border-color: var(--primary-color); }


/* --- Hero Section --- */
.hero { 
    position: relative; 
    color: var(--light-color); 
    text-align: center; 
    padding: 120px 20px; 
    background-image: url('kurgan.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    transition: opacity 0.01s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease; 
}
.hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    /* BAŞLAT BUTONU İÇİN KRİTİK DÜZELTME */
    background-color: rgba(15, 23, 42, 0.65); 
    z-index: 1; /* Alt katman z-index'i düşürüldü */
}
.hero-content { 
    position: relative; 
    /* BAŞLAT BUTONU İÇİN KRİTİK DÜZELTME */
    z-index: 5; /* Üst katman z-index'i yükseltildi */
}
.hero h1 { font-size: 48px; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.hero p { font-size: 20px; max-width: 700px; margin: 0 auto 30px auto; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); font-weight: 400; }
.btn-light { background-color: var(--light-color); color: var(--primary-color); }
#start-button {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 700;
}
.time-info { color: var(--light-color); font-size: 24px; font-weight: 500; margin-top: 25px; display: flex; align-items: center; justify-content: center; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.time-info i { margin-right: 12px; font-size: 28px; }

/* --- Diğer Açılış Bölümleri --- */
.section-title { font-size: 36px; font-weight: 700; color: var(--dark-color); margin-top: 0; margin-bottom: 60px; text-align: center; }
.steps-section { padding: 80px 0; transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease; }
.steps-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.step-item { flex-basis: calc(33.33% - 40px); max-width: 300px; background-color: #f8f9fa; border-radius: 15px; padding: 30px 20px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; transition: transform 0.3s ease; text-align: center; }
.step-item:hover { transform: translateY(-10px); }
.step-item .icon-wrapper { width: 70px; height: 70px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.step-item .icon-wrapper i { font-size: 35px; color: var(--light-color); }
.step-item:nth-child(1) .icon-wrapper { background-color: var(--step-color-1); } .step-item:nth-child(2) .icon-wrapper { background-color: var(--step-color-2); } .step-item:nth-child(3) .icon-wrapper { background-color: var(--step-color-3); }
.step-item h3 { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: var(--dark-color); }
.step-item p { color: var(--muted-color); font-size: 15px; line-height: 1.6; }
.purpose-section { padding: 80px 0; background-color: #f8f9fa; transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease; }
.purpose-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.purpose-card { background-color: var(--light-color); border-radius: 10px; padding: 30px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); border: 1px solid var(--border-color); }
.purpose-card h3 { font-size: 24px; font-weight: 600; color: var(--dark-color); margin-top: 0; margin-bottom: 20px; }
.purpose-card ul { list-style: none; padding: 0; margin: 0; }
.purpose-card ul li { display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 16px; color: #495057; text-align: left; }
.purpose-card ul li i { color: var(--primary-color); margin-right: 12px; margin-top: 5px; flex-shrink: 0; }
.purpose-card ul li div { flex: 1; } 

/* --- KAYNAKLAR BÖLÜMÜ --- */
.resources-section { padding: 80px 0; background-color: var(--secondary-color); transition: opacity 0.5s ease, transform 0.5s ease, height 0.5s ease, padding 0.5s ease; }
.resources-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.resource-card { background-color: var(--light-color); border-radius: 8px; padding: 25px 30px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.04); }
.resource-card h3 { font-size: 22px; margin-top: 0; margin-bottom: 20px; font-weight: 600; }
.resource-card ul { list-style: none; padding: 0; margin: 0; }
.resource-card ul li { border-bottom: 1px solid var(--border-color); padding: 12px 0; }
.resource-card ul li:last-child { border-bottom: none; }
.resource-card ul a { text-decoration: none; color: var(--primary-color); font-weight: 500; font-size: 16px; }
.resource-card ul a:hover { text-decoration: underline; }
.resource-card ul a i { margin-right: 8px; }

/* --- Main Content ve Analiz Animasyonları --- */
.main-content { 
    display: none; 
    min-height: 80vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-top: 0; 
    padding-bottom: 0;
}
#analysis-section {
    display: none; 
    width: 100%;
}
#analysis-container { 
    min-height: 400px; 
    width: 100%; 
    display: flex;
    align-items: center; 
    justify-content: center;
}
.module { 
    /* KRİTİK DÜZELTME: Sabit 960px genişlik kaldırıldı. */
    max-width: 960px; 
    width: 95%; /* Varsayılan olarak %95 genişliği kullanır */
    background-color: var(--light-color); 
    margin: 0 auto; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: var(--box-shadow); 
    border: 1px solid var(--border-color); 
}
.module-body { padding: 30px; overflow: hidden; position: relative; }
.question-wrapper { 
    position: relative; 
    width: 100%; /* İçerik modülün tam genişliğini kullansın */
}
.slide-in { animation: slideInRight 0.6s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-out { animation: slideOutLeft 0.6s forwards cubic-bezier(0.55, 0.085, 0.68, 0.53); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutLeft { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-100%); opacity: 0; } }
.module-header { color: var(--light-color); padding: 20px; display: flex; justify-content: space-between; align-items: center; }
#module1 .module-header { background-color: var(--module-color-1); } #module2 .module-header { background-color: var(--module-color-2); } #module3 .module-header { background-color: var(--module-color-3); } #module4 .module-header { background-color: var(--module-color-4); } #module5 .module-header { background-color: var(--module-color-5); }
.module-header h2 { margin: 0; font-size: 22px; display: flex; align-items: center; }
.module-header h2 i { margin-right: 15px; font-size: 24px; width: 30px; text-align: center; }
.module-progress { font-size: 18px; font-weight: 600; background-color: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; }
.question p { font-size: 18px; margin: 0 0 20px 0; font-weight: 500; }
.rating { display: flex; justify-content: space-around; align-items: center; }
.rating-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.rating-item span { 
    font-size: 12px; 
    font-weight: 500; 
    color: var(--muted-color); 
    transition: color 0.3s ease; 
    text-align: center; 
}
.rating-item input[type="radio"] { display: none; }
.rating-item .radio-dot { width: 24px; height: 24px; border: 2px solid #ccc; border-radius: 50%; margin-bottom: 8px; display: grid; place-content: center; transition: all 0.3s ease; }
.rating-item .radio-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; transition: transform 0.3s ease; }
.rating-item:hover .radio-dot, .rating-item input[type="radio"]:checked + .radio-dot { border-color: var(--active-color, var(--primary-color)); }
.rating-item:hover span, .rating-item input[type="radio"]:checked ~ span { color: var(--active-color, var(--primary-color)); }
.rating-item input[type="radio"]:checked + .radio-dot::before { transform: scale(1); background-color: var(--active-color, var(--primary-color)); }

.note-container { margin-top: 40px; }
.note-container p { font-family: 'Georgia', serif; font-style: italic; font-size: 15px; color: var(--muted-color); font-weight: 500; margin: 0 0 15px 0; text-align: left; }
.note-area { animation: fadeIn 0.5s; text-align: right; }
.note-area textarea { width: 100%; box-sizing: border-box; height: 60px; border-radius: 8px; border: 2px solid var(--border-color); padding: 10px; font-family: 'Poppins', sans-serif; font-size: 14px; margin-bottom: 10px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.note-area textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(13, 110, 253, 0.25); outline: none; }
.note-container.hidden { display: none; }

/* --- YENİ SONUÇ SAYFASI STİLLERİ --- */
.results-card { 
    text-align: center; 
    background-color: var(--light-color); 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: var(--box-shadow); 
    border: 1px solid var(--border-color); 
    position: relative; /* Print butonu için gerekli */
}
.results-card .lead { font-size: 18px; color: var(--muted-color); margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }
.results-header-icon { font-size: 4em; display: inline-block; margin-bottom: 20px; color: var(--primary-color); }
.total-score-wrapper { color: var(--dark-color); padding: 25px; border-radius: 10px; margin-bottom: 30px; transition: background-color 0.5s ease; }
.total-score-wrapper.danger { background-color: var(--danger-bg); } .total-score-wrapper.warning { background-color: var(--warning-bg); } .total-score-wrapper.success { background-color: var(--success-bg); }
.total-score-wrapper h3 { margin: 0 0 10px 0; font-size: 20px; font-weight: 400; }
.total-score-wrapper .total-score { font-size: 48px; font-weight: 700; }
.badge-wrapper { margin-top: 20px; } .badge-wrapper .badge-icon { font-size: 60px; margin-bottom: 10px; line-height: 1; text-shadow: 0 4px 10px rgba(0,0,0,0.1); } .badge-wrapper .badge-title { font-size: 24px; font-weight: 700; }

.general-assessment { text-align: left; margin: 40px 0; padding: 25px; background-color: #f8f9fa; border-left: 5px solid var(--primary-color); border-radius: 5px; }
.general-assessment h3 { margin-top: 0; }
.general-assessment p { font-size: 16px; line-height: 1.8; }

.cta-section { 
    margin: 40px 0; 
    padding: 30px; 
    /* KRİTİK: Siyah yerine canlı mavi arka plan */
    background-color: #007bff; 
    color: var(--light-color); 
    border-radius: 10px; 
    text-align: center; 
}
.cta-section h3 { font-size: 24px; color: var(--light-color); }
.cta-section p { color: #cce5ff; } /* Açık mavi metin */

.email-status { margin-top: 30px; font-size: 15px; color: var(--muted-color); height: 20px; }

.results-summary { list-style: none; padding: 0; margin: 40px 0 0 0; text-align: left; }
.results-summary h3 { margin-bottom: 20px; }
.results-summary li { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; border-radius: 8px; margin-bottom: 15px; background-color: var(--secondary-color); border-left: 5px solid; }
.module-details { flex: 1; }
.module-details .module-info { font-size: 18px; font-weight: 600; display: flex; align-items: center; margin-bottom: 10px; }
.module-details .module-info i { margin-right: 15px; font-size: 20px; width: 25px; }
.module-advice { font-size: 15px; color: var(--muted-color); padding-top: 10px; border-top: 1px solid var(--border-color); margin-top: 10px; }
.results-summary .module-final-score { font-size: 28px; font-weight: 700; }

#result-module1 { border-color: var(--module-color-1); } #result-module1 i, #result-module1 .module-final-score { color: var(--module-color-1); }
#result-module2 { border-color: var(--module-color-2); } #result-module2 i, #result-module2 .module-final-score { color: var(--module-color-2); }
#result-module3 { border-color: var(--module-color-3); } #result-module3 i, #result-module3 .module-final-score { color: var(--module-color-3); }
#result-module4 { border-color: var(--module-color-4); } #result-module4 i, #result-module4 .module-final-score { color: var(--module-color-4); }
#result-module5 { border-color: var(--module-color-5); } #result-module5 i, #result-module5 .module-final-score { color: var(--module-color-5); }

/* --- FOOTER EK STİLLERİ --- */
.footer { 
    background-color: var(--dark-color); 
    color: #ced4da; 
    padding: 30px 0; 
    font-size: 14px; 
    text-align: center; 
}
.footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer .footer-info {
    text-align: left;
    margin-right: 20px;
    line-height: 1.5;
}
.footer .footer-info p {
    margin: 5px 0;
}
.footer .version-text {
    opacity: 0.7;
    font-size: 13px;
}
.footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.footer .contact-item {
    display: flex;
    align-items: center;
    color: #ced4da;
}
.footer .contact-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}
.footer .contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.footer .contact-item a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .social-icons {
    margin-top: 0;
    display: flex;
    gap: 15px;
}
.footer .social-link {
    width: 35px;
    height: 35px;
    background-color: #495057; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}
.footer .social-link:hover {
    transform: translateY(-3px);
}
.footer .social-link.linkedin:hover { background-color: #0077b5; }
.footer .social-link.instagram:hover { background-color: #e4405f; }
.footer .social-link.facebook:hover { background-color: #3b5998; }
.footer .social-link.youtube:hover { background-color: #ff0000; }

/* --- Modal Stilleri (EK OLAN BLOK) --- */
.modal-backdrop { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
    padding: 20px; 
    box-sizing: border-box; 
}
#kvkk-modal { z-index: 2001; }
.modal-content { 
    background-color: var(--light-color); 
    padding: 40px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    max-width: 550px; 
    width: 100%; 
    position: relative; 
    animation: fadeIn 0.4s; 
    max-height: 90vh; 
    overflow-y: auto; 
}
.modal-content.modal-lg { max-width: 800px; }
.modal-content h2 { margin-top: 0; color: var(--primary-color); }
.modal-intro { font-size: 15px; color: var(--muted-color); margin-bottom: 25px; line-height: 1.6; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; }
.close-modal:hover { color: var(--dark-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.form-group input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 16px; box-sizing: border-box; }
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 8px rgba(13, 110, 253, 0.25); outline: none; }
.form-group-checkbox { display: flex; align-items: center; margin-top: 20px; }
.form-group-checkbox input[type="checkbox"] { width: 1.2em; height: 1.2em; margin-right: 10px; }
.form-group-checkbox label { margin-bottom: 0; font-size: 14px; }
.form-group-checkbox a { color: var(--primary-color); text-decoration: underline; font-weight: 600; }
.kvkk-text { text-align: left; font-size: 14px; }
.kvkk-text h4 { margin-top: 20px; margin-bottom: 5px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- YENİ TABLET UYUMLULUK (768px altı) --- */
@media (max-width: 768px) {
    /* Genel Bölümler */
    .steps-container, .purpose-container, .resources-container {
        /* Tabletlerde de alt alta dizilmeyi sağlar */
        grid-template-columns: 1fr;
        display: block;
    }
    .step-item, .purpose-card, .resource-card {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .purpose-container {
        gap: 20px;
    }
    
    /* Header (Daha küçük logo ve başlık) */
    .header .brand .logo-img { height: 50px; }
    .header .brand .logo-text, .header .brand .version-text { font-size: 18px; }
    .header nav { display: none; /* Tabletlerde menüyü gizleyebiliriz */ }
    
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
}


/* --- MOBİL UYUMLULUK (600px altı) DEVAMI --- */
@media (max-width: 600px) {
    .module {
        width: 95%; /* Mobil cihazlarda %95 genişlik kullanılsın */
        max-width: 95%;
    }
    .module-header { padding: 15px; }
    .module-body { padding: 20px 10px; }
    
    .module-header h2 { font-size: 18px; }
    .module-header h2 i { margin-right: 10px; }
    .module-progress { font-size: 14px; padding: 4px 8px; }
    .question p { font-size: 15px; }

    .rating {
        flex-wrap: wrap;
        justify-content: space-around; /* Butonları eşit dağıt */
        gap: 15px 0; /* Boşluğu biraz artır */
        margin-top: 20px;
    }
    .rating-item {
        /* 5 butonu 2 satıra sığdırmak için: 30% x 3 ve 45% x 2 */
        flex-basis: 30%; 
        max-width: 30%;
        margin: 0;
        box-sizing: border-box; 
        padding: 5px 2px; 
    }
    
    .rating-item:nth-child(4),
    .rating-item:nth-child(5) {
        /* Son iki butonu yeni satırda ortalamak için */
        flex-basis: 45%; 
        max-width: 45%;
    }
    
    /* Mobil görünümde metin daha da küçültüldü */
    .rating-item span { font-size: 10px; text-align: center; } 
    .rating-item .radio-dot { width: 20px; height: 20px; }
    
    .footer .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer .footer-info, .footer .footer-links {
        text-align: center;
        align-items: center;
        margin-right: 0;
    }
    .footer .social-icons {
        margin-top: 10px;
    }
}