/* ═══════════ MedyaZirve v2 — tüm sayfalar ═══════════
   Zirve Asistan (yapay zekâ sohbeti) · kurumsal kimlik bandı · mobil footer/çerez düzeltmeleri
   app.css değişkenlerini kullanır (açık/koyu tema otomatik). */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ─────────── Zirve Asistan ─────────── */
.mzai { position: fixed; left: 20px; bottom: 20px; z-index: 66; font-family: var(--font-body); }
.mzai-launch {
  display: inline-flex; align-items: center; gap: .55rem;
  height: 52px; padding: 0 1.15rem 0 1rem; border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; font-weight: 600; font-size: .95rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 28px -8px color-mix(in oklab, var(--brand) 70%, transparent);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.mzai-launch:hover { transform: translateY(-2px); }
.mzai-launch:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 3px; }
.mzai.is-open .mzai-launch { opacity: 0; pointer-events: none; }
body.has-buybar .mzai { bottom: 96px; }

.mzai-panel {
  position: fixed; left: 20px; bottom: 20px;
  width: min(390px, calc(100vw - 40px)); height: min(600px, calc(100vh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 70px -18px oklch(20% .03 290 / .45);
}
.mzai-panel[hidden] { display: none; }

.mzai-head { display: flex; align-items: center; gap: .7rem; padding: .85rem .9rem .85rem 1rem; border-bottom: 1px solid var(--line-soft); }
.mzai-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.mzai-head__t { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.mzai-head__t b { font-size: .98rem; }
.mzai-head__t small { color: var(--ink-3); font-size: .76rem; display: flex; align-items: center; gap: .35rem; }
.mzai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.mzai-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); border-radius: 10px; cursor: pointer; }
.mzai-x:hover { background: var(--surface-2); color: var(--ink); }

.mzai-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.mzai-msg { max-width: 88%; padding: .65rem .85rem; border-radius: 16px; font-size: .93rem; line-height: 1.5; word-wrap: break-word; }
.mzai-msg p { margin: 0 0 .45rem; } .mzai-msg p:last-child { margin: 0; }
.mzai-msg ul { margin: .2rem 0 .45rem; padding-left: 1.1rem; } .mzai-msg li { margin: .15rem 0; }
.mzai-msg a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.mzai-msg--bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.mzai-msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.mzai-msg--err { border: 1px solid color-mix(in oklab, var(--err) 40%, transparent); }
.mzai-wa { display: inline-block; margin-top: .5rem; padding: .35rem .75rem; border-radius: 999px; background: #1faa53; color: #fff !important; text-decoration: none !important; font-size: .85rem; }

.mzai-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.mzai-quick button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: .42rem .75rem; font-size: .84rem; cursor: pointer; text-align: left;
}
.mzai-quick button:hover { border-color: var(--brand); color: var(--brand); }

.mzai-typing { display: inline-flex; gap: 4px; padding: .8rem .9rem; }
.mzai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: mzai-b 1.2s infinite ease-in-out; }
.mzai-typing i:nth-child(2) { animation-delay: .15s; } .mzai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mzai-b { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.mzai-form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem .8rem; border-top: 1px solid var(--line-soft); }
.mzai-form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: .6rem .8rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4;
}
.mzai-form textarea:focus { outline: none; border-color: var(--brand); }
.mzai-send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: var(--brand); }
.mzai-send:disabled { opacity: .5; cursor: default; }
.mzai-foot { padding: .15rem 1rem .8rem; display: grid; gap: .25rem; }
.mzai-foot a { font-size: .82rem; color: var(--ink-2); }
.mzai-foot a b { color: #1a9e4c; }
.mzai-foot small { font-size: .72rem; color: var(--ink-3); line-height: 1.35; }

@media (max-width: 720px) {
  .mzai { left: 14px; bottom: 14px; }
  .mzai-launch { width: 52px; padding: 0; justify-content: center; }
  .mzai-launch__t { display: none; }
  body.has-buybar .mzai { bottom: 86px; }
  .mzai-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
  html.mzai-lock, html.mzai-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .mzai-typing i { animation: none; } .mzai-launch { transition: none; } }

/* ─────────── Kurumsal kimlik bandı (footer) ─────────── */
.corp-band { border-top: 1px solid var(--line-soft); padding: 1.1rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .84rem; color: var(--ink-3); }
.corp-band b { color: var(--ink-2); font-weight: 600; }
.corp-band a { color: var(--ink-2); }

/* ─────────── Mobil footer: 29 ekranlık sayfanın son 1.5 ekranı buydu ─────────── */
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; padding-block: 2.2rem 1.4rem; }
  .footer-brand { grid-column: 1 / -1; }
  .f-col h4 { margin-bottom: .5rem; }
  .f-col a { padding: .22rem 0; font-size: .9rem; }
  .partners__in { gap: .6rem 1rem; padding: .8rem 0; }
}

/* ─────────── Mobil çerez penceresi: ekranın yarısını kaplıyordu ─────────── */
@media (max-width: 639px) {
  .cc-banner { bottom: .6rem; width: calc(100% - 1.2rem); max-height: 46vh; overflow-y: auto; }
  .cc-banner .cc-text { font-size: .84rem; line-height: 1.45; }
  .cc-banner .cc-head { margin-bottom: .35rem; }
}
