/*
 * Klinik Bursa — bu paketin kendi kuralları. legacy.css eski sistemin
 * derlenmiş stillerinin taşınmış hali (dokunulmuyor); burada yalnızca:
 *   1. eski sistemde Tailwind yardımcı sınıflarıyla çizilen parçaların
 *      (hero, WhatsApp butonu) aynı ölçülerle elle yazılmış karşılıkları —
 *      değerler canlı siteden ölçüldü,
 *   2. müşterinin eski sistemde girdiği kendi CSS'i,
 *   3. Blade'e çevirirken eklenen küçük parçalar (footer iletişim kutusu,
 *      form mesajları, dil menüsü).
 */

/* ===== Müşterinin eski sistemdeki kendi CSS'i (tenant_themes.custom_css) =====
   Anasayfa Hakkımızda bölümündeki sayaçları gizliyordu; Blade'de sayaçlar
   hiç basılmıyor, kural yine de aynı kalsın diye burada. */
.theme-medicax-medical .about4-section-area.sp1 .container .about4-heading.heading4 > .row { display: none !important; }

/* ===== Hero — dtahmetbaskaya-site'taki tasarımın aynısı (kullanıcı kararı,
   2026-10-18): tam ekran fotoğraf + %20 koyu örtü, sol hizalı içerik, iri
   ve kalın başlık, hap biçimli iki buton (marka renginde "Tedavileri İncele"
   -> Tedaviler, beyaz "İletişime Geç" -> İletişim). Değerler o paketin
   .dtab-hero-full kurallarıyla birebir; yalnızca birincil buton rengi bu
   markanınki. ===== */
.kb-hero { --kb-scale: 1.05; --kb-translate: 1%; }
/* Yan kaydırma düzeltmesi (eski temanın da hatası, canlıda vardı): paylaşılan
   HeroSlider'ın CSS'i genişliği 100vw/100dvw veriyordu; viewport birimleri
   dikey kaydırma çubuğunu da kapsadığı için çubuğu görünen tarayıcılarda
   (Windows, fareli Mac) sayfa ~8-15px yana taşıyordu. Hero zaten tam
   genişlikteki <main>'in doğrudan çocuğu, %100 yeterli. */
.kb-hero.hero-slider-wrapper--fullscreen { width: 100%; margin-left: 0; margin-right: 0; }
/* Emniyet: ileride başka bir öğe taşsa da sayfa yana kaymasın. "clip"
   (hidden değil) — kaydırma kabı oluşturmuyor, sticky/fixed davranışını
   bozmuyor. */
html, body { overflow-x: clip; }
.kb-hero .kb-hero__swiper { height: 100%; overflow: hidden; }
.kb-hero__slide { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0f172a; color: #fff; }
.kb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kb-hero__overlay { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: .2; }
.kb-hero__center { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0 24px; overflow: hidden; }
.kb-hero__box { width: 100%; max-width: 1200px; padding: 28px 0; text-align: start; color: #fff; }
.kb-hero__badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, .15);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.kb-hero .kb-hero__title {
    margin: 0 0 20px;
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: #fff;
    text-shadow: 2px 2px 16px rgba(0, 0, 0, .6);
}
.kb-hero__desc {
    max-width: 640px;
    margin: 0 0 28px;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .95);
    text-shadow: 2px 2px 16px rgba(0, 0, 0, .6);
}
.kb-hero__desc p { margin: 0; color: inherit; }
.kb-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.kb-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease;
}
.kb-hero__btn:hover { transform: translateY(-2px); }
/* "a" ile: temanın a:hover renk kuralı (!important) tek sınıflı seçiciyi
   eziyordu — dtahmetbaskaya-site'ta da aynı sorun, aynı çözüm. */
a.kb-hero__btn--primary, a.kb-hero__btn--primary:hover { background: var(--color-primary, #29b093); color: #fff !important; }
a.kb-hero__btn--secondary, a.kb-hero__btn--secondary:hover { background: rgba(255, 255, 255, .92); color: #14183a !important; }
.kb-hero .hero-ken-burns { animation: hero-ken-burns-anim 8s ease-out forwards; }
.kb-hero__dots.swiper-pagination { bottom: 24px; }
.kb-hero__dots .swiper-pagination-bullet { background: #fff; opacity: .5; }
.kb-hero__dots .swiper-pagination-bullet-active { opacity: 1; }

/* ===== Header: sticky (eski Header.vue'nun onScroll'u .header-sticky ekliyordu) ===== */
.vl-main-menu nav ul li.has-dropdown.is-open > ul.sub-menu { display: block; }
.vl-offcanvas-menu .has-dropdown > ul.sub-menu { display: none; }
.vl-offcanvas-menu .has-dropdown.is-open > ul.sub-menu { display: block; }
.vl-offcanvas-menu .arrow-size i { transition: transform .2s; }
.vl-offcanvas-menu .has-dropdown.is-open .arrow-size i { transform: rotate(180deg); }

/* ===== Mobil menü (eski Header.vue'nun scoped stilleri) ===== */
.vl-offcanvas { transform: translateX(100%); transition: transform .3s ease; position: fixed; top: 0; right: 0; height: 100vh; height: 100svh; width: 360px; max-width: 90%; z-index: 9999; background: #fff; padding: 30px; overflow-y: auto; }
.vl-offcanvas.vl-offcanvas-open { transform: translateX(0); }
.vl-offcanvas-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.vl-offcanvas-overlay.vl-offcanvas-open { opacity: 1; pointer-events: auto; }
.vl-offcanvas-info span { display: block; margin-bottom: 10px; }

/* ===== Dil seçici: menü <a> ile çalışıyor (eski bileşen <li> tıklamasıydı) ===== */
.lang-switcher__menu[hidden] { display: none; }
.lang-switcher__menu li { list-style: none; }
/* Eski bileşende madde <li>'nin kendisiydi; burada SEO için <a>. Temanın
   ".btn-area1 a { display: inline-flex !important; gap: 8px }" kuralı (header
   butonları için) bu linkleri de daraltıyordu — aynı !important'la, daha
   özgül seçiciyle eski görünüme döndürülüyor. */
.lang-switcher .lang-switcher__menu a.lang-switcher__item { display: flex !important; gap: 10px; width: 100%; text-decoration: none; color: inherit; }
.lang-switcher .lang-switcher__menu a.lang-switcher__item--active { color: #0d6efd; font-weight: 600; }
.lang-switcher .fi { display: inline-block; background-size: cover; background-position: 50%; background-repeat: no-repeat; }
.lang-switcher__flag.fi { width: 1.4em; height: 1em; }

/* ===== WhatsApp + yukarı çık butonları (sağ alt) =====
   WhatsApp: eski sohbet widget'ının WhatsApp modu (marka renginde, 56px).
   Nabız halkası ve yukarı çık butonu vitadisklinigi-site'taki davranışın
   aynısı (kullanıcı isteği, 2026-10-18): yukarı çık 600px kaydırınca
   beliriyor, o görünürken WhatsApp bir sıra yukarı kayıyor. */
.kb-wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1036;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-primary, #25d366);
    color: #fff;
    font-size: 28px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
    transition: bottom .3s cubic-bezier(.2, .7, .3, 1), transform .25s ease, box-shadow .25s ease;
}
/* Temanın ".theme-medicax-medical a:hover { color: marka rengi !important }"
   kuralı ikonu arka planla aynı renge boyuyordu (üstüne gelince ikon
   kayboluyordu) — daha özgül seçiciyle beyaz kalıyor. */
.theme-medicax-medical a.kb-wa-float,
.theme-medicax-medical a.kb-wa-float:hover,
.theme-medicax-medical a.kb-wa-float:focus-visible { color: #fff !important; }
.kb-wa-float:hover, .kb-wa-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--color-primary, #25d366) 45%, transparent);
}
.kb-wa-float i { position: relative; z-index: 1; line-height: 1; }
/* Nabız halkası */
.kb-wa-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary, #25d366) 45%, transparent);
    animation: kbWaPulse 2.6s ease-out infinite;
    z-index: -1;
}
@keyframes kbWaPulse {
    0% { transform: scale(1); opacity: .6; }
    70% { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .kb-wa-float::before { animation: none; } }
body.kb-has-totop .kb-wa-float { bottom: calc(24px + 64px); }

.kb-to-top {
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 1035;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mx-primary-dark, #0b2b25);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .25s ease;
}
.kb-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.kb-to-top:hover { background: var(--color-primary, #29b093); }

/* ===== Anasayfa: tıklanabilir bölüm rozeti ("Tüm Tedaviler →") =====
   h5 rozetiyle aynı görünüm (main.css .heading4 h5 kuralları <a>'ya da
   uygulansın diye ölçüler burada), üstüne gelince ok ileri kayıyor. */
.heading4 a.kb-subtitle-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--ztc-family-font2, inherit);
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    color: var(--ztc-text-text-11);
    background: var(--mx-primary-tint, rgba(41, 176, 147, .1));
    box-shadow: 0 3px 8px 0 var(--mx-primary-shadow, rgba(41, 176, 147, .05));
    text-decoration: none;
    transition: background-color .2s ease;
}
.heading4 a.kb-subtitle-link svg { transition: transform .2s ease; }
.theme-medicax-medical .heading4 a.kb-subtitle-link:hover { color: var(--ztc-text-text-11) !important; background: color-mix(in srgb, var(--color-primary, #29b093) 18%, transparent); }
.heading4 a.kb-subtitle-link:hover svg { transform: translateX(3px); }

/* Bölüm rozetindeki "|" ayırıcısı: temanın ".heading4 h5 span" kuralının
   link sürümü. */
.heading4 a.kb-subtitle-link span { display: inline-block; margin: 0 6px; color: #C4BAE8; }

/* ===== Footer: özet + slogan. Temanın paragraf stili (alt çizgi + boşluk)
   yalnızca sonda kalan sloganda; özet çizgisiz, sloganla arası dar. ===== */
.vl-footer4-section-area .footer-description-area p.kb-footer-summary { border-bottom: 0; padding-bottom: 0; margin-bottom: 12px; }

/* ===== Formlar ===== */
.kb-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #475569; cursor: pointer; }
.kb-consent input { margin-top: 3px; }
.kb-form-success { color: #15803d; font-size: 14px; font-weight: 600; }
.kb-form-error { color: #b91c1c; font-size: 13px; }
.kb-disabled { opacity: .45; pointer-events: none; }
.kb-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ===== Albüm: büyütme bağlantısı <a> (eski sayfada <button>) ===== */
.album-grid a.album-tile { display: block; }
