/* Sedef — üst bar, tam ekran menü, alt bilgi, yüzen düğmeler (spec: bulgari.v1.json).
   tema.css'ten sonra yüklenir; eski üst bar kurallarını burada eziyoruz. */

/* ---------- Üst bar ---------- */
body .ustbar {
  --ub-yuk: 64px;
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 1000;
  padding: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: none;
  isolation: isolate;
}

.ustbar-ust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--ub-yuk);
  transition: height 320ms ease;
}

.ustbar-sol { display: none; grid-column: 1; }
.ustbar-sag { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; }
.ustbar-orta { text-align: center; grid-column: 2; }

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--yazi-logo);
  color: var(--renk-murekkep);
  line-height: 1.15;
  text-decoration: none;
}
.logo-1 { font-size: 22px; letter-spacing: 0.06em; transition: font-size 320ms ease; }
.logo-2 { font-size: 10px; letter-spacing: 0.22em; transition: font-size 320ms ease; }
.logo-img { max-height: 40px; width: auto; }

.menu-ac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--renk-murekkep);
  font-family: var(--yazi-govde);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-ac-metin { display: none; }
.menu-ac-cizgiler { display: inline-flex; flex-direction: column; gap: 5px; width: 22px; }
.menu-ac-cizgiler i { display: block; height: 2px; background: var(--renk-murekkep); }
.gorunmez {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.ustbar-ikonlar { display: flex; align-items: center; gap: 2px; }
.ustbar-ikonlar a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 44px; color: #5c5c5c; transition: color 0.2s ease;
}
.ustbar-ikonlar a:hover, .ustbar-ikonlar a:focus-visible { color: #000000; }
.ustbar-sol .dugme {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  min-height: 44px; margin-right: 12px; white-space: nowrap;
}

.ustbar-menu { display: none; }

@media (min-width: 1024px) {
  body .ustbar { --ub-yuk: 96px; }
  body .ustbar.ustbar--kucuk { --ub-yuk: 64px; }
  .ustbar-sol { display: flex; align-items: center; }
  .menu-ac-metin { display: inline; }
  .logo-1 { font-size: 28px; }
  .logo-2 { font-size: 13px; }
  .ustbar--kucuk .logo-1 { font-size: 24px; }
  .ustbar--kucuk .logo-2 { font-size: 11px; }

  .ustbar-menu { display: block; padding-bottom: 6px; }
  .um-liste {
    display: flex; justify-content: center; align-items: center; gap: 28px;
    margin: 0; padding: 0; list-style: none;
  }
  .um-oge { position: relative; }
  .um-baglanti {
    display: inline-flex; align-items: center; min-height: 44px;
    font-family: var(--yazi-govde); font-size: 12px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: #5c5c5c;
    position: relative; transition: color 0.2s ease;
  }
  .um-baglanti::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--renk-vurgu); transform: scaleX(0); transform-origin: left center;
    transition: transform 0.3s var(--gecis-yumusak, ease);
  }
  .um-oge--aktif > .um-baglanti { color: #000000; }
  .um-baglanti:hover, .um-oge:focus-within > .um-baglanti { color: #000000; }
  .um-baglanti:hover::after,
  .um-oge:focus-within > .um-baglanti::after { transform: scaleX(1); }
  .um-alt {
    position: absolute; top: 100%; left: 50%; min-width: 220px; margin: 0; padding: 8px 0;
    list-style: none; background: #ffffff; border: 1px solid #eeeeee;
    transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; z-index: 5;
  }
  .um-oge:hover > .um-alt, .um-oge:focus-within > .um-alt {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .um-alt a {
    display: block; padding: 10px 20px; font-size: 13px; font-weight: 400;
    text-transform: none; letter-spacing: 0; color: #444444;
  }
  .um-alt a:hover, .um-alt a:focus-visible { background: #f7f7f7; color: #000000; }
}

/* ---- Akan üst bar (K25e): sol logo, sağ menü; tema.json baslik_cubugu.tur ---- */
.ustbar--akan .ustbar-ust {
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 24px;
}
.ustbar--akan .ustbar-orta { grid-column: 1; text-align: left; }
.ustbar--akan .ustbar-sag { grid-column: 3; gap: 4px; }
.ustbar--akan .logo { flex-direction: row; align-items: baseline; gap: 8px; text-align: left; }
.ustbar--akan .logo-1 { font-size: 22px; letter-spacing: 0.04em; }
.ustbar--akan .logo-2 { font-size: 12px; letter-spacing: 0.18em; }
.ustbar--akan .logo-img { max-height: 44px; }
.ustbar--akan .ustbar-menu { display: none; grid-column: 2; }
.ustbar--akan .ustbar-sag .ustbar-ikonlar,
.ustbar--akan .ustbar-sag .dugme { display: none; }

@media (min-width: 1024px) {
  body .ustbar--akan { --ub-yuk: 88px; }
  body .ustbar--akan.ustbar--kucuk { --ub-yuk: 64px; }
  .ustbar--akan .ustbar-menu { display: block; padding-bottom: 0; }
  .ustbar--akan .um-liste { justify-content: flex-end; gap: 24px; }
  .ustbar--akan .um-alt { left: 0; transform: translate(0, 8px); }
  .ustbar--akan .um-oge:last-child > .um-alt { left: auto; right: 0; }
  .ustbar--akan .um-oge:hover > .um-alt,
  .ustbar--akan .um-oge:focus-within > .um-alt { transform: translate(0, 0); }
  .ustbar--akan .menu-ac { display: none; }
  .ustbar--akan .ustbar-sag .ustbar-ikonlar { display: flex; }
  .ustbar--akan .ustbar-sag .dugme {
    display: inline-flex; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
    min-height: 44px; margin-left: 12px; white-space: nowrap;
  }
  .ustbar--akan .logo-img { max-height: 56px; }
  .ustbar--akan.ustbar--kucuk .logo-img { max-height: 40px; }
  .ustbar--akan .logo-1 { font-size: 26px; }
  .ustbar--akan .logo-2 { font-size: 12px; }
  .ustbar--akan.ustbar--kucuk .logo-1 { font-size: 22px; }
}

/* ---------- Tam ekran menü ---------- */
.tam-menu {
  position: fixed; inset: 0; z-index: 1200; background: #ffffff;
  overflow-y: auto; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.tam-menu.ac { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
.tam-menu:focus { outline: none; }
.tam-menu-kapat {
  position: absolute; top: 10px; right: 16px; width: 44px; height: 44px;
  background: none; border: 0; font-size: 36px; line-height: 1; color: #000000; cursor: pointer;
}
.tam-menu-ic {
  width: 100%;
  max-width: 640px;
  padding: 72px 24px 40px;
  text-align: center;
  margin: auto;
}
.tm-liste, .tm-alt { list-style: none; margin: 0; padding: 0; }
.tm-oge { margin-bottom: 14px; }
.tm-baglanti {
  display: inline-block; padding: 4px 8px; font-family: var(--yazi-bolum-baslik);
  font-weight: 300; font-size: 24px; line-height: 1.3; color: #000000;
}
.tm-baglanti:hover { color: var(--renk-vurgu-koyu); }
.tm-alt a {
  display: inline-block; padding: 6px 8px; font-size: 13px; color: #5c5c5c; min-height: 32px;
}
.tm-alt a:hover { color: #000000; }
.tm-alt-eylem {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tm-alt-eylem .ustbar-ikonlar { justify-content: center; }
.tm-alt-eylem .dugme { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
@media (min-width: 640px) { .tm-baglanti { font-size: 28px; } }
body.tam-menu-acik { overflow: hidden; }

/* ---------- Alt bilgi ---------- */
body .altbilgi {
  background: var(--renk-altbilgi); color: var(--renk-altbilgi-metin);
  padding: 0; border-top: 0; text-align: center;
}
.altbilgi-ana { padding-top: 56px; padding-bottom: 40px; }
.altbilgi .altbilgi-baslik { color: #ffffff; font-size: 20px; margin: 0 0 24px; letter-spacing: 0; }
.altbilgi-satirlar { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }
.altbilgi-satir {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 8px;
  list-style: none; margin: 0; padding: 0;
}
.altbilgi-satir a {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 12px 8px; font-size: 12px; color: var(--renk-altbilgi-metin);
  text-transform: none; transition: color 0.2s ease;
}
.altbilgi-satir a:hover, .altbilgi-satir a:focus-visible { color: #ffffff; }
.altbilgi-satir .altbilgi-ust-baglanti { font-weight: 600; color: #ffffff; }
.altbilgi-logo .logo-1, .altbilgi-logo .logo-2 {
  display: block; color: #ffffff; font-family: var(--yazi-logo); text-transform: uppercase;
}
.altbilgi-logo a { display: inline-block; text-align: center; }
.altbilgi-logo .logo-1 { font-size: 28px; letter-spacing: 0.06em; }
.altbilgi-logo .logo-2 { font-size: 13px; letter-spacing: 0.22em; margin-top: 4px; }
.altbilgi-logo img { max-height: 40px; width: auto; }
body .altbilgi-telif-bandi {
  margin: 0; padding: 24px 0; background: var(--renk-telif); border-top: 0; text-align: center;
}
.altbilgi-sosyal { display: flex; justify-content: center; gap: 12px; margin: 0 0 16px; }
.altbilgi-sosyal a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid #444444; border-radius: 50%;
  color: #cccccc; transition: color 0.2s ease, border-color 0.2s ease;
}
.altbilgi-sosyal a:hover, .altbilgi-sosyal a:focus-visible {
  color: #ffffff;
  border-color: #ffffff;
}
.altbilgi .telif-metin { font-size: 11px; color: #8a8a8a; margin: 0; }

@media (min-width: 1024px) {
  .altbilgi-ana { padding-top: 64px; }
  .altbilgi .altbilgi-baslik { font-size: 24px; }
  .altbilgi-satir { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
  .altbilgi-logo .logo-1 { font-size: 40px; }
  .altbilgi-logo .logo-2 { font-size: 18px; }
}

/* ---------- Yüzen düğmeler ---------- */
body .sabit-whatsapp-kapsayici { position: static; }
.yuzen-whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--renk-whatsapp-yuzen); color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); transition: transform 0.2s ease;
}
.yuzen-whatsapp:hover { transform: scale(1.06); }
.yuzen-whatsapp svg { width: 24px; height: 24px; }
.yukari-cik {
  position: fixed; right: 28px; bottom: 84px; z-index: 999;
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; color: #333333; border: 1px solid #dddddd; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--gecis-yumusak, ease),
              visibility 0s linear 0.25s;
}
.yukari-cik[hidden] { display: flex; }
.yukari-cik.gorunur {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.25s ease, transform 0.25s var(--gecis-yumusak, ease), visibility 0s;
}
@media (max-width: 1023px) { body .altbilgi-telif-bandi { padding-bottom: 104px; } }
@media (min-width: 1024px) {
  .yuzen-whatsapp { width: 48px; height: 48px; }
  .yuzen-whatsapp svg { width: 26px; height: 26px; }
  .yukari-cik { right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .ustbar-ust, .logo-1, .logo-2, .tam-menu, .um-alt, .um-baglanti::after, .yukari-cik,
  .yuzen-whatsapp {
    transition: none;
  }
}
