/* Çetin Far — iletişim balonu: açılır menü (WhatsApp, telefon, yol tarifi, e-posta), sempatik yüzlü düğme ve küçük selam balonu.
   Konum yönetim panelinden (sağ/sol × alt/orta, kenar uzaklığı) seçilir; ziyaretçi taşıması açıksa düğme sürüklenerek dört konuma bırakılır.
   Köşeler tema ölçeğinden (--ob_r_*) gelir; panel her tasarım ve modda koyu camdır. Hareket azaltma tercihine uyar. */
.ob_ib { --ob_ib_kenar: var(--ob_ib_kenar_ayar, 20px); --ob_ib_boy: 60px; position: fixed; z-index: 1040; display: flex; flex-direction: column-reverse; gap: 0.7rem; font-family: inherit; }
.ob_ib[data-ob-ib-yatay="sag"] { right: var(--ob_ib_kenar); align-items: flex-end; }
.ob_ib[data-ob-ib-yatay="sol"] { left: var(--ob_ib_kenar); align-items: flex-start; }
.ob_ib[data-ob-ib-dikey="alt"] { bottom: var(--ob_ib_kenar); }
.ob_ib[data-ob-ib-dikey="orta"] { bottom: calc(50% - var(--ob_ib_boy) / 2); }
/* Yönetici oturumunda sol alttaki Stüdyo balonunun üstüne oturur */
body:has(.ob_ts) .ob_ib[data-ob-ib-yatay="sol"][data-ob-ib-dikey="alt"] { bottom: calc(var(--ob_ib_kenar) + 74px); }

/* ---------- Ana düğme ---------- */
.ob_ib_ana { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-width: var(--ob_ib_boy); height: var(--ob_ib_boy); padding: 0 1.25rem 0 1rem; border: 0; border-radius: var(--ob_r_daire, 999px); background: linear-gradient(145deg, #ffcf33, #ffb703); color: #111; font-size: 0.95rem; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; cursor: pointer; touch-action: manipulation; transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.3s ease; }
.ob_ib[data-ob-ib-tasima="1"] .ob_ib_ana { touch-action: none; }
.ob_ib_ana_wa { background: linear-gradient(145deg, #12853f, #0b6b32); color: #fff; box-shadow: 0 14px 30px -12px rgba(22, 163, 74, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
.ob_ib_ana:hover { transform: translateY(-2px); }
.ob_ib_ana:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.55); }
.ob_ib_ana::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; opacity: 0; z-index: -1; animation: ob_ib_halka 2.8s ease-out infinite; }
@keyframes ob_ib_halka { 0% { transform: scale(1); opacity: 0.45; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.ob_ib_acik .ob_ib_ana::before, .ob_ib_sakin .ob_ib_ana::before { animation: none; }
.ob_ib_ikon { display: grid; place-items: center; transition: transform 0.3s ease, opacity 0.2s ease; }
.ob_ib_ikon_kapat { position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(0.6); }
.ob_ib_etiket { max-width: 9rem; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease; }
.ob_ib_acik .ob_ib_ana { padding: 0; width: var(--ob_ib_boy); }
.ob_ib_acik .ob_ib_ikon_ac { opacity: 0; transform: rotate(90deg) scale(0.6); }
.ob_ib_acik .ob_ib_ikon_kapat { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
.ob_ib_acik .ob_ib_etiket { max-width: 0; opacity: 0; margin-left: -0.6rem; }
/* Sempatik yüz: göz kırpar, ara sıra başını sallar (ilk etkileşime kadar) */
.ob_ib_goz { transform-box: fill-box; transform-origin: center; animation: ob_ib_goz 5s ease-in-out infinite; }
@keyframes ob_ib_goz { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.ob_ib_yuz { transform-origin: 50% 80%; animation: ob_ib_sallan 7s ease-in-out 3s infinite; }
@keyframes ob_ib_sallan { 0%, 8%, 100% { transform: rotate(0); } 2% { transform: rotate(-9deg); } 4% { transform: rotate(8deg); } 6% { transform: rotate(-5deg); } }
.ob_ib_sakin .ob_ib_yuz, .ob_ib_acik .ob_ib_yuz { animation: none; }
.ob_ib_ana:hover .ob_ib_gulus { d: path("M8.2 13.2c1 1.8 2.3 2.7 3.8 2.7s2.8-.9 3.8-2.7"); }
.ob_ib_gulus { transition: d 0.25s ease; }

/* ---------- Selam balonu ---------- */
.ob_ib_selam { position: relative; display: flex; align-items: center; gap: 0.5rem; max-width: min(260px, calc(100vw - 2.5rem)); padding: 0.6rem 0.5rem 0.6rem 0.95rem; border-radius: var(--ob_r_lg, 16px); background: #fff; color: #17181b; font-size: 0.9rem; font-weight: 600; line-height: 1.3; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06); animation: ob_ib_selam_gir 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.ob_ib_selam[hidden] { display: none; }
.ob_ib_selam::after { content: ""; position: absolute; bottom: -6px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); box-shadow: 3px 3px 5px -3px rgba(0, 0, 0, 0.18); }
.ob_ib[data-ob-ib-yatay="sag"] .ob_ib_selam::after { right: 22px; }
.ob_ib[data-ob-ib-yatay="sol"] .ob_ib_selam::after { left: 22px; }
.ob_ib_selam button { display: grid; flex: none; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--ob_r_daire, 50%); background: transparent; color: #6b6e75; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ob_ib_selam button:hover { background: rgba(0, 0, 0, 0.07); color: #17181b; }
@keyframes ob_ib_selam_gir { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }
.ob_ib_acik .ob_ib_selam { display: none; }

/* ---------- Açılır panel ---------- */
.ob_ib_panel { width: min(320px, calc(100vw - 2.5rem)); max-height: calc(100vh - var(--ob_ib_boy) - var(--ob_ib_kenar) * 2 - 1rem); overflow-y: auto; padding: 0.9rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--ob_r_lg, 18px); background: linear-gradient(180deg, rgba(26, 27, 31, 0.97), rgba(14, 15, 18, 0.97)); color: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform-origin: bottom right; visibility: hidden; opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0s linear 0.28s; }
.ob_ib[data-ob-ib-yatay="sol"] .ob_ib_panel { transform-origin: bottom left; }
.ob_ib[data-ob-ib-dikey="orta"] .ob_ib_panel { max-height: calc(50vh - var(--ob_ib_boy) / 2 - 1.5rem); }
.ob_ib_acik .ob_ib_panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.ob_ib_baslik { display: grid; gap: 0.3rem; padding: 0.15rem 0.2rem 0.75rem; }
.ob_ib_baslik strong { font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; }
.ob_ib_saat { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; }
.ob_ib_durum { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.05rem 0.55rem; border-radius: var(--ob_r_hap, 999px); font-size: 0.68rem; font-style: normal; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ob_ib_durum[hidden] { display: none; }
.ob_ib_durum::before { content: ""; width: 6px; height: 6px; border-radius: var(--ob_r_daire, 50%); background: currentColor; }
.ob_ib_acik_durum { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.ob_ib_kapali_durum { background: rgba(251, 113, 133, 0.15); color: #fb7185; }
.ob_ib_liste { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.ob_ib_liste li { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.3s ease; }
.ob_ib_acik .ob_ib_liste li { opacity: 1; transform: none; transition-delay: calc(var(--ob_ib_i, 0) * 45ms + 60ms); }
.ob_ib_oge { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.75rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--ob_r_md, 12px); background: rgba(255, 255, 255, 0.04); color: #fff !important; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.ob_ib_oge:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); transform: translateX(-3px); }
.ob_ib[data-ob-ib-yatay="sol"] .ob_ib_oge:hover { transform: translateX(3px); }
.ob_ib_oge:focus-visible { outline: 2px solid #ffb703; outline-offset: 2px; }
.ob_ib_simge { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--ob_r_daire, 50%); color: #fff; }
.ob_ib_wa .ob_ib_simge { background: linear-gradient(145deg, #34e17f, #16a34a); }
.ob_ib_tel .ob_ib_simge { background: linear-gradient(145deg, #ffcf33, #ff9f0a); color: #111; }
.ob_ib_harita .ob_ib_simge { background: linear-gradient(145deg, #5aa2ff, #2f6fed); }
.ob_ib_mail .ob_ib_simge { background: linear-gradient(145deg, #b79cff, #7c5cf0); }
.ob_ib_metin { display: grid; min-width: 0; line-height: 1.25; }
.ob_ib_metin b { font-size: 0.93rem; font-weight: 700; }
.ob_ib_metin small { overflow: hidden; color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.ob_ib_ok { margin-left: auto; flex: none; color: rgba(255, 255, 255, 0.4); transition: transform 0.2s ease, color 0.2s ease; }
.ob_ib_oge:hover .ob_ib_ok { color: #ffb703; transform: translate(2px, -2px); }
.ob_ib_ipucu { margin: 0.7rem 0.2rem 0; color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; line-height: 1.4; }
.ob_ib_ipucu button { padding: 0; border: 0; background: none; color: #ffb703; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ob_ib_ipucu button[hidden] { display: none; }

/* ---------- Sürükleme (taşıma açıkken) ---------- */
.ob_ib_surukle { transition: none !important; cursor: grabbing; }
.ob_ib_surukle .ob_ib_ana { cursor: grabbing; transform: scale(1.06); }
.ob_ib_surukle .ob_ib_panel, .ob_ib_surukle .ob_ib_selam { display: none; }
.ob_ib[data-ob-ib-tasima="1"] .ob_ib_ana { cursor: grab; }

@media (max-width: 575.98px) {
    .ob_ib { --ob_ib_boy: 56px; --ob_ib_kenar: min(var(--ob_ib_kenar_ayar, 20px), 16px); }
    .ob_ib_ana { padding: 0; width: 56px; }
    .ob_ib_etiket { display: none; }
    .ob_ib_acik .ob_ib_ana { width: 56px; }
    body:has(.ob_ts) .ob_ib[data-ob-ib-yatay="sol"][data-ob-ib-dikey="alt"] { bottom: calc(var(--ob_ib_kenar) + 70px); }
}
@media (prefers-reduced-motion: reduce) {
    .ob_ib_ana::before, .ob_ib_yuz, .ob_ib_goz, .ob_ib_selam { animation: none; }
    .ob_ib_panel, .ob_ib_liste li, .ob_ib_ikon, .ob_ib_etiket, .ob_ib_gulus { transition: none; }
}

/* Başa dön düğmesi: iletişim balonu sağ altta ise onun soluna, hizasında durur (üst üste binip tıklamayı engellemesin) */
body:has(.ob_ib[data-ob-ib-yatay="sag"][data-ob-ib-dikey="alt"]) .ob_yukari { right: calc(var(--ob_ib_kenar_g, 20px) + var(--ob_ib_yan, 156px)); bottom: calc(var(--ob_ib_kenar_g, 20px) + 6px); }
.ob_ib_ana::before { pointer-events: none; }
/* Balonun görünmez kutusu (kapalı panel yeri) altındaki sayfa öğelerinin tıklamasını yutmasın */
.ob_ib { pointer-events: none; }
.ob_ib > * { pointer-events: auto; }
