/* Tüm sayfalar: sabit arama düğmesi, yardım penceresi, bildirim, üyelik/favori, başlık sosyal simgeleri, blog.
   Ana sayfa (style.css) ve alt sayfalar (pages.css) aynı değişken adlarını kullanır; yoksa yedek renkler devreye girer. */
.eng-call, .eng-help, .eng-toast { --e-bg: var(--surface, #fff); --e-ink: var(--ink, #15141a); --e-line: var(--line, #e3e1db); font-family: var(--f, "Geist", system-ui, sans-serif); }

/* ---------- çevrimiçi işareti ---------- */
.eng-dot { position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: #1fc35f; box-shadow: 0 0 0 2px var(--e-bg, #fff); }
.eng-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: engPing 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.is-off .eng-dot { background: #a3a2ab; }
.is-off .eng-dot::after { animation: none; }
@keyframes engPing { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* ---------- sabit "Hemen ara" (sol alt) ---------- */
.eng-call { position: fixed; z-index: 59; left: max(14px, env(safe-area-inset-left)); bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; text-decoration: none !important; color: var(--e-ink) !important;
  background: color-mix(in srgb, var(--e-bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 34px -14px rgba(0,0,0,.45), inset 0 0 0 1px var(--e-line);
  transition: transform .25s, box-shadow .25s; animation: engUp .6s .8s both cubic-bezier(.2,.7,.1,1); }
.eng-call:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(0,0,0,.55), inset 0 0 0 1px var(--e-line); }
.eng-call__ico { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #2fe377, #12a84e); color: #fff; flex: none; }
.eng-call.is-off .eng-call__ico { background: linear-gradient(160deg, #8b8a94, #5d5c66); }
.eng-call__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; animation: engRing 4s 3s ease-in-out infinite; }
.eng-call.is-off .eng-call__ico svg { animation: none; }
.eng-call__txt { display: grid; line-height: 1.15; }
.eng-call__txt b { font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eng-call__txt small { font-size: 11.5px; color: #138a4b; font-weight: 600; white-space: nowrap; }
[data-theme="dark"] .eng-call__txt small { color: #3fdc82; }
.eng-call.is-off .eng-call__txt small { color: var(--ink-3, #8a8990); }
@keyframes engRing { 0%, 86%, 100% { transform: rotate(0); } 88%, 92%, 96% { transform: rotate(-14deg); } 90%, 94%, 98% { transform: rotate(14deg); } }
@keyframes engUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* alt sayfalarda dar ekranda alttaki Ara / WhatsApp çubuğu var → sabit düğme gizlenir */
@media (max-width: 920px) { body:has(.sticky-cta) .eng-call { display: none; } }
@media (max-width: 640px) {
  .eng-call { padding: 6px; bottom: 26px; }
  .eng-call__txt { display: none; }
  .eng-call__ico { width: 50px; height: 50px; }
}
/* ana sayfa yüklenirken gösterme */
body.is-loading .eng-call, body.is-loading .eng-help { display: none; }

/* ---------- yardım penceresi ---------- */
.eng-help { position: fixed; z-index: 95; left: max(14px, env(safe-area-inset-left)); bottom: 92px; width: min(360px, calc(100vw - 28px)); padding: 20px 20px 16px; border-radius: 20px; color: var(--e-ink); background: var(--e-bg);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.5), inset 0 0 0 1px var(--e-line); opacity: 0; transform: translateY(18px) scale(.97); transform-origin: bottom left; transition: opacity .4s, transform .45s cubic-bezier(.2,.7,.1,1); }
.eng-help.is-on { opacity: 1; transform: none; }
.eng-help__x { position: absolute; right: 10px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .6; }
.eng-help__x:hover { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.eng-help__ava { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; background: color-mix(in srgb, var(--accent, #6d5dfc) 14%, transparent); margin-bottom: 10px; }
.eng-help #engHelpT { display: block; font-size: 18px; line-height: 1.25; margin-bottom: 6px; padding-right: 26px; }
.eng-help p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; opacity: .85; }
.eng-help__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eng-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none !important; }
.eng-btn--wa { background: #1faf5a; color: #fff !important; }
.eng-btn--wa:hover { background: #178a47; }
.eng-btn--tel { color: var(--e-ink) !important; box-shadow: inset 0 0 0 1.5px var(--e-line); }
.eng-btn--tel:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.eng-help small { display: block; margin-top: 10px; font-size: 12px; opacity: .65; }
@media (max-width: 640px) { .eng-help { bottom: 96px; } }

/* ---------- kısa bildirim ---------- */
.eng-toast { position: fixed; z-index: 120; left: 50%; bottom: 96px; transform: translate(-50%, 12px); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #fff; background: #17161e; box-shadow: 0 14px 34px -10px rgba(0,0,0,.5); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.eng-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- başlık: hesap bağlantısı + sosyal simgeler ---------- */
.ph__acc, .hud__acc { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none !important; font-size: 14px; font-weight: 600; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); flex: none; white-space: nowrap; }
.ph__acc svg, .hud__acc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ph__acc.is-in, .hud__acc.is-in { box-shadow: inset 0 0 0 1.5px var(--accent, #6d5dfc); }
.ph__acc:hover, .hud__acc:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.hud__acc { font-size: 13px; letter-spacing: .02em; }
.ph__social { margin: 0; gap: 6px; flex: none; }
.ph__social a { width: 34px; height: 34px; }
.hud__social { margin-left: 4px; gap: 6px; }
.hud__social a { width: 34px; height: 34px; }
.hud__social .ico { width: 16px; height: 16px; }
.menu__social { margin-top: 18px; justify-content: center; }
@media (max-width: 1180px) { .ph__social { display: none; } .ph__acc span { display: none; } .ph__acc { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 1280px) { .hud__acc span { display: none; } .hud__acc { padding: 0; width: 40px; justify-content: center; } }
@media (max-width: 920px) { .ph__acc span, .hud__acc span { display: none; } .ph__acc, .hud__acc { padding: 0; width: 40px; justify-content: center; } }

/* ---------- favori kalpleri ---------- */
.pcard { position: relative; }
.pcard__fav { position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); color: var(--ink-2, #4b4a52); transition: transform .2s, color .2s; }
.pcard__fav:hover { transform: scale(1.1); color: #e0245e; }
.pcard__fav svg, .pd__fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.pcard__fav.is-on, .pd__fav.is-on { color: #e0245e; }
.pcard__fav.is-on svg, .pd__fav.is-on svg { fill: currentColor; }
.pd__fav { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.pd__fav:hover { color: #e0245e; border-color: currentColor; }
.pd__fav.is-on { border-color: currentColor; }

/* ---------- giriş / üye ol / hesabım ---------- */
.acc { padding-top: 28px; padding-bottom: 40px; }
.acc__card { max-width: 460px; margin: 0 auto; padding: 32px 28px; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 60px -30px rgba(0,0,0,.35), inset 0 0 0 1px var(--line); }
.acc__title { margin: 0 0 6px; font-size: 28px; }
.acc__lead { margin: 0 0 18px; color: var(--ink-3); font-size: 14.5px; }
.acc__alert { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #d92d20 10%, transparent); color: #b42318; font-size: 14px; }
.acc__social { display: grid; gap: 10px; }
.acc__sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none !important; color: var(--ink) !important; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .15s; }
.acc__sbtn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.acc__sbtn:active { transform: scale(.99); }
.acc__sbtn svg { width: 20px; height: 20px; }
.acc__sbtn--apple { background: #000; color: #fff !important; box-shadow: none; }
[data-theme="dark"] .acc__sbtn--apple { background: #fff; color: #000 !important; }
.acc__sbtn--facebook { background: #1877f2; color: #fff !important; box-shadow: none; }
.acc__sbtn--facebook svg path { fill: #fff; }
.acc__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--ink-3); font-size: 13px; }
.acc__or::before, .acc__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0 16px; border-radius: 12px; background: var(--soft); }
.acc__tabs button { height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.acc__tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.acc__form { display: grid; gap: 12px; }
.acc__form[hidden] { display: none; }
.acc__form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.acc__form label small { font-weight: 400; color: var(--ink-3); }
.acc__form input:not([type=checkbox]):not([type=hidden]) { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.acc__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.acc__form input.is-err { border-color: #d92d20; }
.acc__form .check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.acc__form .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.acc__form .btn { height: 50px; justify-content: center; font-size: 15px; }
.acc__form .form-msg { margin: 0; min-height: 1em; font-size: 14px; color: var(--ink-2); }
.acc__form--grid { grid-template-columns: 1fr 1fr; max-width: 720px; }
.acc__form--grid .span-2 { grid-column: span 2; }
.acc__link { font-size: 14px; justify-self: center; }
.acc__guest { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; }
.acc--dash .lhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.acc--dash .lhead p { margin: 0; flex: 1; }
.acc__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.acc__nav a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink) !important; font-weight: 600; font-size: 14px; }
.acc__nav a span { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--soft); }
.acc__danger { margin-top: 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, #d92d20 30%, var(--line)); }
.acc__danger summary { cursor: pointer; font-weight: 600; color: #b42318; }
.acc__danger form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.acc__danger form p { flex-basis: 100%; margin: 0; font-size: 14px; }
.acc__danger input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; width: 120px; }
.badge--quote { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-2); }
.tblwrap { overflow-x: auto; }
@media (max-width: 560px) { .acc__card { padding: 24px 18px; } .acc__form--grid { grid-template-columns: 1fr; } .acc__form--grid .span-2 { grid-column: auto; } }

/* ---------- blog ---------- */
.bloglist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.bcard { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bcard time { font-size: 12.5px; color: var(--ink-3); }
.bcard h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.bcard h2 a { color: var(--ink); text-decoration: none; }
.bcard h2 a:hover { text-decoration: underline; }
.bcard p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.bcard__more { font-weight: 600; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .eng-call, .eng-call__ico svg, .eng-dot::after { animation: none !important; } }
@media print { .eng-call, .eng-help, .eng-toast { display: none !important; } }
