/* ===========================================================
   OKUR DİŞ · Alt sayfa & blog stilleri (tema-5 altın diliyle)
   tema-5.css'ten SONRA linklenir; değişkenlerini kullanır.
   =========================================================== */

/* ---------- Aktif nav öğesi ---------- */
.mainnav > a.is-current:not(.btn) { color: var(--gold-dark); }
.mainnav > a.is-current:not(.btn)::after { width: 100%; }

/* ---------- Dar içerik sarmalayıcı ---------- */
.wrap--narrow { max-width: 820px; }

/* ---------- Bölüm CTA (ortalı buton) ---------- */
.section__cta { display: flex; justify-content: center; margin-top: 48px; }

/* ===========================================================
   ALT SAYFA HERO (breadcrumb + başlık)
   =========================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Üstte float eden yuvarlak logonun breadcrumb'ı ezmemesi için bol üst boşluk */
  padding: 92px 0 60px;
  background:
    radial-gradient(120% 120% at 85% -10%, var(--gold-tint), transparent 55%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__orb { z-index: -1; }
.page-hero__orb--1 { top: -40px; right: 6%; --wow-c: #e8c987; --wow-o: .30; }
.page-hero__orb--2 { bottom: -60px; left: -30px; --wow-c: #c79a53; --wow-o: .22; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--gold-dark); transition: color var(--t); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-size: .6rem; color: var(--gold-light); }
.crumbs span[aria-current] { color: var(--ink); }

.page-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin: 0;
}
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__lead {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ===========================================================
   PROSE (içerik metni — tedavi detay, blog, gizlilik)
   =========================================================== */
.prose { color: var(--ink); font-size: 1.05rem; line-height: 1.8; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 1.8em 0 .5em;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; color: var(--muted); }
.prose a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose blockquote {
  margin: 1.4em 0; padding: 18px 24px;
  background: var(--gold-tint); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--gold-dark);
}

/* ===========================================================
   TEDAVİ DETAY
   =========================================================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.detail-hero {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.detail-highlights { margin: 0 0 34px; }
.detail-faq { margin-top: 44px; }
.detail-faq > h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 20px;
}

/* Yan panel — sticky */
.detail-aside { position: sticky; top: 108px; display: grid; gap: 22px; }
.detail-cta {
  background: var(--ink);
  color: #f3ead9;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.detail-cta h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 8px; color: #fff; }
.detail-cta p { margin: 0 0 20px; font-size: .96rem; color: #d9cbb6; }
.detail-cta .btn { margin-bottom: 10px; }
.detail-cta .btn--outline { color: var(--gold-pale); border-color: rgba(232,201,135,.55); }
.detail-cta .btn--outline:hover { background: var(--gold-pale); color: var(--ink); border-color: var(--gold-pale); }

.detail-links {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.detail-links h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 14px; }
.detail-links ul { display: grid; gap: 4px; }
.detail-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: background var(--t), color var(--t);
}
.detail-links a:hover { background: var(--gold-tint); color: var(--gold-dark); }
.detail-links i { color: var(--gold); width: 20px; text-align: center; }

/* ===========================================================
   DEĞERLER (klinik sayfası)
   =========================================================== */
.values { background: var(--cream-2); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card__icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--gold-tint); color: var(--gold);
  font-size: 1.4rem; margin-bottom: 18px;
}
.value-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0 0 8px; }
.value-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===========================================================
   GALERİ GRID (galeri sayfası)
   =========================================================== */
/* Masonry — CSS columns; her foto doğal en-boyunda (dikey/yatay karışık) */
.gallery-grid {
  column-count: 3;
  column-gap: 18px;
}
.gallery-grid__item {
  position: relative; margin: 0 0 18px; overflow: hidden;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--sand);
}
.gallery-grid__item img {
  width: 100%; height: auto; display: block;
  transition: transform .6s ease;
}
.gallery-grid__item:hover img { transform: scale(1.06); }

/* ===========================================================
   BLOG
   =========================================================== */
.blog-strip { background: var(--cream-2); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-pale); }
.blog-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__cat {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(42,33,24,.82); color: #fff; backdrop-filter: blur(4px);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.blog-card__date { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 12px; }
.blog-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin: 0 0 12px; }
.blog-card__title a { transition: color var(--t); }
.blog-card__title a:hover { color: var(--gold-dark); }
.blog-card__summary { color: var(--muted); font-size: .96rem; margin: 0 0 20px; }
.blog-card .link-arrow { margin-top: auto; }

.empty-state {
  text-align: center; padding: 80px 20px; color: var(--muted);
  font-size: 1.1rem; background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ===========================================================
   MAKALE (blog detay)
   =========================================================== */
.article__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 0 0 22px; font-size: .9rem; font-weight: 600; color: var(--muted);
}
.article__meta i { color: var(--gold); margin-right: 4px; }
.article__cover {
  margin: 0 0 28px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article__summary {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5;
  color: var(--gold-dark); margin: 0 0 28px; padding-left: 18px; border-left: 3px solid var(--gold-pale);
}
.article__cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-top: 44px; padding: 28px 30px;
  background: var(--gold-tint); border-radius: var(--radius);
}
.article__cta h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 4px; }
.article__cta p { margin: 0; color: var(--muted); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 992px) {
  .detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-aside { position: static; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { column-count: 2; }
}

@media (max-width: 600px) {
  .values__grid, .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .article__cta { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-top: 60px; }
}

/* ===========================================================
   FAQ — yumuşak açılma/kapanma (JS height animasyonu ile)
   =========================================================== */
.faq__body {
  overflow: hidden;
  transition: height .34s cubic-bezier(.16, 1, .3, 1),
              padding-bottom .34s cubic-bezier(.16, 1, .3, 1);
}
.faq__icon i { transition: transform .25s ease; }
.faq__item[open] .faq__icon { transform: rotate(0); }

/* ===========================================================
   GALERİ LIGHTBOX
   =========================================================== */
.gallery-grid__item img,
.gallery__slide img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(20, 15, 9, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  background: var(--ink);
}
.lightbox__cap {
  margin-top: 16px;
  color: #f3ead9;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 135, .4);
  background: rgba(42, 33, 24, .6);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.lightbox__close { top: -8px; right: -8px; width: 46px; height: 46px; }
.lightbox__prev { left: -70px; top: calc(40% ); }
.lightbox__next { right: -70px; top: calc(40% ); }

@media (max-width: 820px) {
  .lightbox__prev { left: 4px; top: auto; bottom: -64px; }
  .lightbox__next { right: 4px; top: auto; bottom: -64px; }
  .lightbox__close { top: -56px; right: 0; }
}

/* ===========================================================
   SOSYAL İKONLAR (header nav · offcanvas · footer)
   =========================================================== */
.socials { display: inline-flex; align-items: center; gap: 10px; }
.social-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-size: 1.05rem;
  transition: background var(--t), color var(--t), transform var(--t);
}
.social-link:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }

/* Header nav içindeki sosyal küme (masaüstü) */
.mainnav .socials { margin-left: 4px; }
.mainnav .social-link { width: 38px; height: 38px; }

/* Footer'da koyu zemine uygun varyant */
.site-footer .socials { margin-top: 22px; }
.site-footer .social-link {
  background: rgba(255, 255, 255, .06);
  color: var(--gold-pale);
  border: 1px solid rgba(232, 201, 135, .18);
}
.site-footer .social-link:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ===========================================================
   "Çok yakında" tooltip
   =========================================================== */
.soon-tip {
  position: fixed;
  z-index: 250;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  margin-top: 6px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: opacity .2s ease, margin-top .2s ease;
}
.soon-tip.is-visible { opacity: 1; margin-top: 0; }
.soon-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ink);
}

/* ===========================================================
   MOBİL OFFCANVAS DÜZELTMELERİ
   (header backdrop-filter fixed menüyü hapsediyordu)
   =========================================================== */
.mainnav__close { display: none; }

@media (max-width: 768px) {
  /* backdrop-filter containing block oluşturuyor → kaldır, menü viewport'a göre tam boy olsun.
     header position:sticky + z-index:100 ile stacking context kuruyor; menü bu context içinde
     olduğundan backdrop'un (z:80) üstünde kalır — backdrop z'sini YÜKSELTMEYİN. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(251, 247, 240, .98); }

  .mainnav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-tint);
    border: 1px solid var(--line);
    color: var(--gold-dark);
    font-size: 1.15rem;
    cursor: pointer;
  }
  .mainnav__close:hover { background: var(--sand); }

  .mainnav .socials {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    width: 100%;
  }
  .mainnav .social-link {
    width: 46px;
    height: 46px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--gold-dark);
  }
}
