/**
 * Digi Teşvik Robotu - Public CSS Stilleri
 *
 * @package DigiTesvikRobotu
 * @version 1.1.6 - <br> etiketli listeler için CSS düzeltmesi
 */

/* Ana Kapsayıcı */
.digi-robot-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}
.digi-robot-wrapper *, .digi-robot-wrapper *::before, .digi-robot-wrapper *::after {
    box-sizing: border-box; 
}

/* Başlık Alanı */
.digi-robot-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.digi-robot-header h2 { color: #004a99; margin: 0 0 10px 0; font-size: 26px; font-weight: 700; }
.digi-robot-header p { font-size: 16px; color: #555; margin: 0; }

/* Form Satırları (Grid Yapısı) */
.digi-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.digi-form-row:has(.digi-form-group:only-child) { grid-template-columns: 1fr; }

/* Form Eleman Grubu */
.digi-form-group { display: flex; flex-direction: column; width: 100%; }
.digi-form-group label { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.digi-form-group label .required { color: #d9534f; margin-left: 3px; }

/* Input Alanları */
.digi-robot-wrapper input[type="text"],
.digi-robot-wrapper input[type="email"],
.digi-robot-wrapper input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #f9f9f9;
    height: 50px; /* Select2 ile aynı yükseklik için */
}

/* ===== v1.1.3 (TEMA ÇAKIŞMASI GİDERME) ===== */
.digi-robot-wrapper .digi-form-group select[data-placeholder] {
    display: none !important;
    opacity: 0;
    position: absolute !important;
    left: -9999px !important;
}
.digi-robot-wrapper .select2-container {
    width: 100% !important; 
    box-sizing: border-box;
    max-width: 100% !important;
}
.digi-robot-wrapper .select2-container--default .select2-selection--single {
    width: 100%;
    height: 50px !important; 
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    background-color: #f9f9f9;
    display: flex !important;
    align-items: center !important;
}
.digi-robot-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.2 !important; 
    padding-left: 0 !important;
    color: #444;
}
.digi-robot-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important; 
    top: 1px !important;
    right: 15px !important;
}
.digi-robot-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #004a99 !important;
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.1) !important;
}
.select2-dropdown {
    z-index: 99999 !important; 
    border: 1px solid #004a99 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}
.select2-results__option {
    display: block !important; 
    width: 100% !important; 
    white-space: normal !important; 
    padding: 10px 12px !important; 
}
.select2-search--dropdown .select2-search__field {
    width: 100% !important; 
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 10px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #004a99 !important;
    color: white !important;
}
/* ===== TEMA ÇAKIŞMA SORUNU BİTİŞİ ===== */


.digi-robot-wrapper select[disabled],
.digi-robot-wrapper .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #ececec !important;
    cursor: not-allowed;
}

.digi-robot-wrapper input[type="text"]:focus,
.digi-robot-wrapper input[type="email"]:focus,
.digi-robot-wrapper input[type="tel"]:focus {
    border-color: #004a99;
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.1);
    outline: none;
    background-color: #fff;
}

/* Hatalı input */
.digi-robot-wrapper input.digi-input-error,
.digi-robot-wrapper .select2-container.digi-input-error .select2-selection--single {
    border-color: #d9534f !important; /* Hata durumunda kırmızı çerçeve */
}

/* Radio Button Grubu (OSB) */
.digi-radio-group { display: flex; gap: 15px; background-color: #f9f9f9; border: 1px solid #ccc; border-radius: 8px; padding: 12px 15px; }
.digi-radio-group label { font-size: 15px; font-weight: 500; color: #444; margin-bottom: 0; display: flex; align-items: center; cursor: pointer; }
.digi-radio-group input[type="radio"] { margin-right: 8px; accent-color: #004a99; }

/* Checkbox Grubu (KVKK vs) */
.digi-form-group-checkbox { margin-bottom: 15px; display: flex; align-items: center; }
.digi-form-group-checkbox label { font-size: 13px; color: #555; margin-left: 10px; cursor: pointer; margin-bottom: 0; font-weight: 500; }
.digi-form-group-checkbox input[type="checkbox"] { accent-color: #004a99; width: 16px; height: 16px; cursor: pointer; }

/* Buton */
.digi-robot-button { background-color: #004a99; color: #ffffff; font-size: 16px; font-weight: 700; padding: 14px 25px; border: none; border-radius: 8px; cursor: pointer; width: 100%; transition: background-color 0.3s ease, transform 0.1s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.digi-robot-button:hover { background-color: #003a7a; }
.digi-robot-button:active { transform: scale(0.98); }
.digi-robot-button:disabled { background-color: #999; cursor: not-allowed; }
.digi-button-secondary { background-color: #f0f0f0; color: #333; border: 1px solid #ddd; }
.digi-button-secondary:hover { background-color: #e0e0e0; }

/* Ayırıcı Çizgi */
.digi-robot-divider { border: 0; border-top: 1px solid #f0f0f0; margin: 20px 0; }
.digi-form-iletisim-baslik { text-align: center; font-size: 16px; font-weight: 600; color: #004a99; margin-bottom: 20px; }

/* Footer */
.digi-robot-footer { text-align: center; margin-top: 25px; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.digi-robot-footer p { font-size: 12px; color: #888; margin: 0; }
.digi-robot-footer a { color: #004a99; text-decoration: none; font-weight: 600; }
.digi-robot-footer a:hover { text-decoration: underline; }

/* Yükleniyor (Spinner) */
#digi-robot-loader { text-align: center; padding: 40px 0; }
.digi-loader-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #004a99; border-radius: 50%; animation: digi-spin 1s linear infinite; margin: 0 auto 15px auto; }
#digi-robot-loader p { font-size: 16px; color: #555; font-weight: 600; }
@keyframes digi-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Sonuç Ekranı */
#digi-robot-sonuc-wrapper { background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; margin-bottom: 25px; }
#digi-robot-sonuc-icerik { font-size: 15px; line-height: 1.6; color: #333; }

/* ===== YENİ (v1.1.5): Analiz Özeti Kutusu ===== */
.digi-robot-sonuc-ozeti {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.digi-robot-sonuc-ozeti .ozet-baslik {
    font-size: 18px;
    color: #004a99;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
/* ===== YENİ (v1.1.6): <br> Etiketli Listeler için Düzeltme ===== */
.digi-robot-sonuc-ozeti ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.digi-robot-sonuc-ozeti ul li {
    font-size: 15px;
    color: #444;
    padding: 0; /* <br> ile boşluk verileceği için padding'i sıfırla */
    border-bottom: none; /* Kenarlığı kaldır */
    margin: 0; /* Boşluğu kaldır */
    line-height: 1.5; /* Satır yüksekliğini ayarla */
}
/* ========================================================== */
.digi-robot-sonuc-ozeti ul li:last-child { border-bottom: none; }
.digi-robot-sonuc-ozeti ul li strong { color: #111; min-width: 130px; display: inline-block; }
/* ============================================== */

#digi-robot-sonuc-icerik h3 { 
    font-size: 18px; 
    color: #111; 
    border-bottom: 2px solid #004a99; 
    padding-bottom: 8px; 
    margin-top: 25px; 
    margin-bottom: 15px; 
}
/* Hata başlığını kırmızı yap */
#digi-robot-sonuc-icerik h3:contains("Uygun Değildir") {
    color: #d9534f;
    border-bottom-color: #d9534f;
}

/* ===== YENİ (v1.1.6): <br> Etiketli Listeler için Düzeltme ===== */
#digi-robot-sonuc-icerik ul { 
    list-style-type: '✔️ '; 
    padding-left: 25px; 
    margin-bottom: 15px; 
}
#digi-robot-sonuc-icerik ul li { 
    margin-bottom: 0; /* <br> ile boşluk verileceği için sıfırla */
    padding-bottom: 0; /* <br> ile boşluk verileceği için sıfırla */
    line-height: 1.5;
}
/* ========================================================== */
#digi-robot-sonuc-icerik a { color: #004a99; font-weight: 600; text-decoration: none; }
#digi-robot-sonuc-icerik a:hover { text-decoration: underline; }

/* Özel Bilgi Kutuları */
.alert { padding: 15px; margin-top: 15px; border: 1px solid transparent; border-radius: 8px; }
.alert-info { color: #004085; background-color: #cce5ff; border-color: #b8daff; }
.alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

#digi-robot-yeni-analiz { width: auto; padding: 10px 20px; font-size: 15px; margin: 20px auto 0 auto; }

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .digi-robot-wrapper { padding: 20px 15px; }
    .digi-form-row { grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }
    .digi-robot-header h2 { font-size: 22px; }
    .digi-robot-sonuc-ozeti ul li strong { min-width: 110px; }
}