/* ═══════════════════════════════════════════════
   DoğruOkul Asistan — asistan.css v3.0
   ═══════════════════════════════════════════════ */

/* ── 1. PROFİL MENÜSÜ ─────────────────────────── */
.do-profil-wrap {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Avatar — <a> tag, Breakdance engelleyemez */
.do-profil-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #f97316;
    color: #fff !important;
    font-size: 15px; font-weight: 700;
    display: flex !important;
    align-items: center; justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(249,115,22,0.35);
    user-select: none;
    text-decoration: none !important;
    transition: transform 0.2s;
}
.do-profil-avatar:hover { transform: scale(1.08); color: #fff !important; }

/* Dropdown — varsayılan gizli */
.do-profil-dropdown {
    display: none;
    position: fixed;
    right: 20px;
    top: 70px;
    width: 215px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    z-index: 2147483647;
    font-family: sans-serif;
}

/* :target ile aç — anchor trick, JS gereksiz */
.do-profil-dropdown:target {
    display: block;
}

/* Kapatma overlay — tüm ekranı kaplar, #_ hash'e gider */
.do-profil-kapat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
}
.do-profil-dropdown:target .do-profil-kapat-overlay {
    display: block;
}

.do-dropdown-header {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 15px;
    background: #fff7ed;
    border-bottom: 1px solid #f3f4f6;
}
.do-dropdown-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #f97316; color: #fff;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.do-dropdown-isim {
    font-size: 13px; font-weight: 700; color: #1f2937;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.do-dropdown-link {
    display: flex !important;
    align-items: center; gap: 10px;
    padding: 13px 15px;
    text-decoration: none !important;
    font-size: 14px; font-weight: 600;
    color: #1f2937 !important;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}
.do-dropdown-link:last-child { border-bottom: none; }
.do-dropdown-link:hover { background: #fff7ed; color: #f97316 !important; }
.do-dropdown-cikis { color: #dc2626 !important; }
.do-dropdown-cikis:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* ── 2. HERO FİLTRE ───────────────────────────── */
.do-hero-filtre {
    display: flex; flex-wrap: wrap; gap: 10px;
    background: #fff; padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    align-items: center;
}
.do-hero-filtre select {
    flex: 1; min-width: 140px;
    padding: 11px 14px;
    border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; color: #374151; background: #f9fafb;
    cursor: pointer; outline: none; transition: border-color 0.2s;
}
.do-hero-filtre select:focus { border-color: #f97316; }
#heroAraBtn {
    background: #f97316; color: #fff;
    border: none; padding: 11px 24px;
    border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
#heroAraBtn:hover { background: #ea580c; }
@media (max-width: 600px) {
    .do-hero-filtre { flex-direction: column; }
    .do-hero-filtre select, #heroAraBtn { width: 100%; }
}

/* ── 3. SOHBET BOTU ───────────────────────────── */

/* Tetikleyici */
#doBotTetikleyici {
    position: fixed;
    bottom: 24px; right: 20px;
    display: flex; align-items: flex-end; gap: 10px;
    z-index: 99999;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Balon */
.do-bot-bubble {
    background: #f97316;
    color: #fff;
    font-family: sans-serif;
    font-size: 14px; font-weight: 600;
    padding: 12px 18px;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
    max-width: 220px;
    line-height: 1.4;
    animation: doBalonSallan 3s ease-in-out infinite;
}
@keyframes doBalonSallan {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* Danışman avatarı */
#doBotAvatar {
    width: 62px; height: 62px;
    border-radius: 50%;
    border: 3px solid #f97316;
    object-fit: cover;
    object-position: top;
    background: #f97316;
    box-shadow: 0 4px 16px rgba(249,115,22,0.4);
    transition: transform 0.2s;
    flex-shrink: 0;
}
#doBotTetikleyici:hover #doBotAvatar { transform: scale(1.06); }

/* Pencere */
#doBotPencere {
    display: none;
    position: fixed;
    bottom: 100px; right: 20px;
    width: 360px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    z-index: 99998;
    font-family: sans-serif;
    flex-direction: column;
}
#doBotPencere.acik { display: flex; }

/* Başlık */
.do-bot-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #fff;
    flex-shrink: 0;
}
.do-bot-header-sol { display: flex; align-items: center; gap: 10px; }
.do-bot-header-avatar {
    width: 42px; height: 42px;
    border-radius: 50%; object-fit: cover; object-position: top;
    border: 2px solid rgba(255,255,255,0.6);
    background: #f97316;
}
.do-bot-header-isim { font-size: 14px; font-weight: 700; }
.do-bot-header-durum { font-size: 11px; opacity: 0.85; margin-top: 2px; }
#doBotKapat {
    background: none; border: none;
    color: #fff; font-size: 24px;
    cursor: pointer; line-height: 1; padding: 0;
    opacity: 0.8; transition: opacity 0.2s;
}
#doBotKapat:hover { opacity: 1; }

/* Sohbet gövdesi */
.do-bot-govde {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    max-height: 420px;
    background: #f8f9fa;
    display: flex; flex-direction: column; gap: 12px;
}

/* Mesaj satırı (avatar + balon) */
.do-bot-mesaj-satir {
    display: flex; align-items: flex-end; gap: 8px;
}
.do-bot-mesaj-avatar {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover; object-position: top;
    flex-shrink: 0;
    border: 2px solid #f97316;
    background: #f97316;
}
.do-bot-mesaj {
    background: #fff;
    border-radius: 18px 18px 18px 4px;
    padding: 12px 15px;
    font-size: 14px; line-height: 1.5; color: #1f2937;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 85%;
}
.do-bot-mesaj-uyari {
    background: #fef2f2; color: #b91c1c;
}

/* Adım alanları */
.bot-adim { display: none; }
.bot-adim.aktif { display: block; }

/* Okul türü butonları */
.do-bot-secenekler {
    display: flex; flex-direction: column; gap: 8px;
    padding: 4px 0 0 40px;
}
.do-bot-tur-btn {
    background: #fff; color: #1f2937;
    border: 1.5px solid #e5e7eb;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.do-bot-tur-btn:hover, .do-bot-tur-btn.secili {
    border-color: #f97316;
    background: #fff7ed; color: #c2410c;
}

/* İl/İlçe */
.do-bot-il-wrap {
    display: flex; flex-direction: column; gap: 8px;
    padding: 8px 0 0 40px;
}
#botIl, #botIlce {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; background: #fff;
    outline: none; transition: border-color 0.2s;
    box-sizing: border-box;
}
#botIl:focus, #botIlce:focus { border-color: #f97316; }
#botGonder {
    width: 100%;
    background: #f97316; color: #fff;
    border: none; padding: 13px;
    border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background 0.2s; margin-top: 4px;
}
#botGonder:hover:not(:disabled) { background: #ea580c; }
#botGonder:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }

/* Yeniden ara butonu */
.do-bot-yeniden-btn {
    display: block;
    margin: 8px 0 0 40px;
    background: #fff7ed; color: #f97316;
    border: 1.5px solid #f97316;
    padding: 10px 20px; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
}
.do-bot-yeniden-btn:hover { background: #f97316; color: #fff; }

/* Alt bilgi çubuğu */
.do-bot-alt {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}
.do-bot-alt-yazi { font-size: 13px; color: #9ca3af; }

/* Mobil */
@media (max-width: 480px) {
    #doBotPencere { width: calc(100vw - 16px); right: 8px; bottom: 95px; }
    .do-bot-govde { max-height: 55vh; }
    .do-bot-bubble { font-size: 13px; padding: 10px 14px; max-width: 170px; }
    #doBotAvatar { width: 54px; height: 54px; }
}
/* Hero uyarı */
#heroUyari {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 600;
    font-family: sans-serif;
    text-align: center;
}
