/* Tedavi Hero — leodent tedavi sayfaları 2-kolon giriş bloğu.
 * firat ServiceHero deseninin vanilla + leodent-tema portu. Sol: başlık + klinik
 * güven kartı + rozet + CTA. Sağ: chip-filtreli chat (mevcut _chat-widget mount).
 * Avada/Fusion cascade sızmasına karşı .leo-th-* scoped + box-sizing + renk !important.
 * Runtime _tedavi-hero.js enjekte eder; sadece tedavi sayfalarında.
 */

.leo-th-hide-titlebar .fusion-page-title-bar { display: none !important; }

/* Gutter = logo hizası: viewport-oranlı (4.1vw), site header'ı gibi her ekranda kenarla hizalı.
   clamp ile mobilde 16px, ultra-wide'da 110px sınır. */
.leo-th { margin: 28px 0 8px; padding-left: clamp(16px, 4.1vw, 110px); padding-right: clamp(16px, 4.1vw, 110px); box-sizing: border-box; }
.leo-th *, .leo-th *::before, .leo-th *::after { box-sizing: border-box; }
/* minmax(0,..) ŞART (firat dersi): düz 1fr track item min-content'ine şişip mobilde taşar. */
.leo-th-grid { max-width: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.leo-th-left, .leo-th-right { min-width: 0; }
@media (min-width: 1024px) {
  .leo-th-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .leo-th-right { position: sticky; top: 24px; }
}

/* ── Sol kolon ── */
.leo-th-title { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #6f2b20 !important; margin: 0; }
.leo-th-summary { margin: 18px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.65; color: #525252 !important; }

.leo-th-trust { margin-top: 30px; border-top: 1px solid #e7e5e4; padding-top: 28px; }
.leo-th-clinic { display: flex; align-items: center; gap: 16px; }
.leo-th-clinic-logo { height: 42px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
.leo-th-clinic-meta { min-width: 0; }
.leo-th-stars { color: #e6b400; font-size: 16px; letter-spacing: 2px; line-height: 1; }
.leo-th-clinic-name { margin: 5px 0 0; font-size: 18px; font-weight: 700; color: #6f2b20 !important; line-height: 1.1; }
.leo-th-clinic-sub { margin: 2px 0 0; font-size: 13px; color: #737373 !important; }

.leo-th-badges { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.leo-th-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #faf9f7; border: 1px solid #ececea; border-radius: 14px; padding: 16px 8px; text-align: center; }
.leo-th-badge-value { font-size: 15px; font-weight: 700; color: #6f2b20 !important; line-height: 1.15; }
.leo-th-badge-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a8a !important; }

/* 4 istatistik kutusu (firat .dt-svc-stats portu) */
.leo-th-stats { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .leo-th-stats { grid-template-columns: repeat(4, 1fr); } }
.leo-th-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #faf9f7; border: 1px solid #ececea; border-radius: 16px; padding: 18px 8px; text-align: center; min-width: 0; }
.leo-th-stat-value { font-size: clamp(15px, 1.6vw, 20px); font-weight: 800; color: #6f2b20 !important; line-height: 1.05; word-break: break-word; }
.leo-th-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #8a8a8a !important; }
/* Tanıtım videosu (firat .dt-svc-video portu) — tıkla-oynat facade */
.leo-th-video { margin-top: 24px; position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16/9; background: #000; }
.leo-th-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; }
.leo-th-video-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(111,43,32,0.92); color: #fff; transition: transform .15s; }
.leo-th-video-thumb:hover .leo-th-video-play { transform: scale(1.08); }
.leo-th-video-play svg { width: 22px; height: 22px; }
.leo-th-video-iframe { width: 100%; height: 100%; border: 0; display: block; }

.leo-th-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.leo-th-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: opacity .15s, background-color .15s; border: 0; }
.leo-th-btn svg { width: 15px; min-width: 15px; height: 15px; }
.leo-th-btn--wa { background: #25D366; color: #fff !important; }
.leo-th-btn--tel { background: #6f2b20; color: #fff !important; }
.leo-th-btn--map { background: #fff; color: #6f2b20 !important; border: 1px solid #d6dae6; }
.leo-th-btn--wa:hover, .leo-th-btn--tel:hover { opacity: .9; }
.leo-th-btn--map:hover { background: #f7f8fb; }
@media (max-width: 767px) {
  .leo-th-cta { flex-direction: column; align-items: stretch; }
  .leo-th-cta .leo-th-btn { width: 100%; }
}

/* ── Sağ kolon: chip + chat ── */
.leo-th-chat { border: 1px solid #e7e5e4; border-radius: 22px; background: rgba(255,255,255,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 18px; box-shadow: 0 12px 40px -18px rgba(23,23,23,0.18); }
.leo-th-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leo-th-eyebrow-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: #8a8a8a !important; font-style: italic; }
.leo-th-online { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #525252 !important; }
.leo-th-online-dot { width: 7px; height: 7px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: leo-th-pulse 2s infinite; }
@keyframes leo-th-pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5)} 70%{box-shadow:0 0 0 7px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }
.leo-th-chat-heading { margin: 12px 0 0; font-size: 1.4rem; font-weight: 600; font-style: italic; color: #6f2b20 !important; line-height: 1.15; font-family: Georgia, 'Times New Roman', serif; }

.leo-th-axis { margin-top: 16px; }
.leo-th-axis-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #737373 !important; margin: 0 0 8px; }
.leo-th-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.leo-th-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid #e2e0dd; background: #fff; color: #404040 !important; transition: all .14s; line-height: 1; }
.leo-th-chip:hover { border-color: #c9ccd6; }
.leo-th-chip[aria-pressed="true"] { background: #6f2b20; border-color: #6f2b20; color: #fff !important; }
.leo-th-trustnote { margin-top: 12px; font-size: 12.5px; color: #6f2b20 !important; display: none; }
.leo-th-trustnote.is-on { display: block; }

/* Chat mount kabı — mevcut widget buraya render eder. Widget'ın kendi empty-state
 * starter'larını gizle (hero kendi chip-bağlamlı pill'lerini gösteriyor). */
.leo-th-chat-mount { margin-top: 14px; }
.leo-th-chat-mount .leo-chat-card { border: 0 !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important; }
.leo-th-chat-mount .leo-chat-section, .leo-th-chat-mount .leo-chat-section-header { display: none !important; }

/* ── İçindekiler (ServiceToc portu) ── */
.leo-toc { margin: 24px 0; padding-left: clamp(16px, 4.1vw, 110px); padding-right: clamp(16px, 4.1vw, 110px); box-sizing: border-box; }
.leo-toc-inner { max-width: none; margin: 0; border: 1px solid #e7e5e4; border-radius: 20px; background: #faf9f7; padding: 24px 22px; }
.leo-toc-eyebrow { margin: 0 0 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: #8a8a8a !important; font-style: italic; }
.leo-toc-grid { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 640px) { .leo-toc-grid { grid-template-columns: repeat(2, 1fr); column-gap: 28px; } }
@media (min-width: 1024px) { .leo-toc-grid { grid-template-columns: repeat(3, 1fr); } }
.leo-toc-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 8px; border-bottom: 1px solid #efedea; text-decoration: none !important; transition: color .14s; }
.leo-toc-item:hover .leo-toc-text { color: #6f2b20 !important; }
.leo-toc-num { font-size: 12px; font-weight: 700; color: #c0bdb8 !important; line-height: 1.5; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.leo-toc-text { font-size: 14px; line-height: 1.45; color: #404040 !important; }

/* statText büyük stat satırı (sol kolon) */
.leo-th-statline { margin: 16px 0 0; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 700; color: #6f2b20 !important; line-height: 1.2; }
/* Sağ kolon = mevcut advisor chip-chat (_implant-advisor.css'le stillenir).
   Kart zaten kendi arka planını taşıyor; hero gridinde min-width:0 yeter. */
.leo-th-right > .leo-adv-hero-chat-wrapper, .leo-th-right .leo-adv-chat { width: 100%; }
/* Advisor chat accent'lerini tema kahverengisine uydur (tutarlılık) */
.leo-th-right .leo-adv-chat-title { color: #6f2b20 !important; }
.leo-th-right .leo-adv-chat-chip.is-active { background: #6f2b20 !important; border-color: #6f2b20 !important; color: #fff !important; }

/* ── İlgili Videolar (RelatedVideos portu, full-width grid) ── */
.leo-vid { margin: 40px 0; padding-left: clamp(16px, 4.1vw, 110px); padding-right: clamp(16px, 4.1vw, 110px); box-sizing: border-box; }
.leo-vid-inner { max-width: none; margin: 0; }
.leo-vid-eyebrow { margin: 0 0 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: #8a8a8a !important; font-style: italic; }
.leo-vid-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .leo-vid-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.leo-vid-card { min-width: 0; }
/* Dikey Shorts (9:16) — osman tedavi sayfası deseni */
.leo-vid-thumb { position: relative; display: block; width: 100%; aspect-ratio: 9/16; border: 0; border-radius: 16px; background-size: 112%; background-position: center; cursor: pointer; overflow: hidden; padding: 0; box-shadow: 0 12px 32px -16px rgba(23,23,23,0.35); }
.leo-vid-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255,255,255,0.92); color: #6f2b20; transition: transform .15s; }
.leo-vid-thumb:hover .leo-vid-play { transform: scale(1.1); }
.leo-vid-play svg { width: 22px; height: 22px; }
.leo-vid-iframe { width: 100%; aspect-ratio: 9/16; border: 0; border-radius: 16px; display: block; }
.leo-vid-title { margin: 10px 2px 0; font-size: 13px; line-height: 1.4; color: #404040 !important; }

/* ── Tam hizalama: Avada içerik satırlarını hero/toc/video ile aynı gutter'a
   (max 1240px, 16px kenar = logo hizası). Sadece advisor sayfalarında (.leo-th-active). ── */
.leo-th-treatment #main .fusion-fullwidth { padding-left: 0 !important; padding-right: 0 !important; }
.leo-th-treatment #main .fusion-fullwidth > .fusion-builder-row.fusion-row {
  max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;
  padding-left: clamp(16px, 4.1vw, 110px) !important; padding-right: clamp(16px, 4.1vw, 110px) !important; width: auto !important; box-sizing: border-box !important;
}
.leo-th-treatment #main .fusion-fullwidth .fusion-column-wrapper { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
/* İçerik kolonu sidebar için yarım kalmıştı (form gizlendi) → full-width */
.leo-th-treatment #main .post-content .fusion-layout-column { width: 100% !important; max-width: 100% !important; float: none !important; clear: both !important; margin-left: 0 !important; margin-right: 0 !important; }
/* İçerik bölümü kutu (kart) — Selim: "her bölümü kutu içerisinde, logo hizasına kadar" */
.leo-th-treatment #main .post-content .fusion-text { background: #fff; border: 1px solid #ececea; border-radius: 18px; padding: 22px 22px; }
@media (min-width: 768px) { .leo-th-treatment #main .post-content .fusion-text { padding: 30px 32px; } }
