/* Ajans Feedback — site geneli sabit öğeler (v1, 2026-10-31): WhatsApp düğmesi, "Sektörünüzü seçin" düğmesi ve sektör penceresi.
   app.css üzerine yüklenir; kurallar .af- önekiyle kapsüllenmiştir. */

:root { --af-float-offset: 0px; --af-wa: #25d366; --af-wa-deep: #128c4a; }
.af-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.af-ico { width: 20px; height: 20px; flex: 0 0 auto; }

/* Alt boşluk: sabit düğmeler footer içeriğini örtmesin */
.af-float-spacer { height: 0; background: #171a1f; }
.af-float-spacer--bar { height: 88px; }

/* WhatsApp — sağ alt yuvarlak düğme */
.af-wa-float { position: fixed; z-index: 450; right: 22px; bottom: calc(22px + var(--af-float-offset)); display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--af-wa); color: #fff; box-shadow: 0 14px 30px rgba(18, 140, 74, .34); transition: transform .22s ease, box-shadow .22s ease, bottom .25s ease; -webkit-tap-highlight-color: transparent; }
.af-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--af-wa); opacity: .5; animation: af-wa-pulse 2.8s ease-out 1.5s 3; z-index: -1; }
.af-wa-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 38px rgba(18, 140, 74, .4); }
.af-wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
.af-wa-float__icon { width: 31px; height: 31px; }
.af-wa-float__label { position: absolute; right: calc(100% + 12px); top: 50%; padding: 9px 13px; border-radius: 12px; background: #1f2227; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.af-wa-float:hover .af-wa-float__label, .af-wa-float:focus-visible .af-wa-float__label { opacity: 1; transform: translate(0, -50%); }
@keyframes af-wa-pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Sektörünüzü seçin — alt orta sabit düğme */
.af-sector-bar { position: fixed; z-index: 440; left: 50%; bottom: calc(22px + var(--af-float-offset)); display: inline-flex; align-items: center; gap: 12px; min-height: 58px; max-width: calc(100vw - 200px); padding: 7px 8px 7px 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; background: rgba(31, 34, 39, .96); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 16px 40px rgba(24, 27, 32, .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateX(-50%); transition: transform .22s ease, box-shadow .22s ease, bottom .25s ease, background .2s ease; -webkit-tap-highlight-color: transparent; }
.af-sector-bar:hover { transform: translate(-50%, -2px); box-shadow: 0 20px 44px rgba(24, 27, 32, .3); background: #1f2227; }
.af-sector-bar:focus-visible { outline: 3px solid rgba(255, 77, 87, .5); outline-offset: 3px; }
.af-sector-bar__icons { display: flex; align-items: center; padding-left: 2px; }
.af-sector-bar__icons i { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -10px; border: 2px solid #23262b; border-radius: 50%; background: #2f343b; color: #fff; }
.af-sector-bar__icons i:first-child { margin-left: 0; background: var(--brand-red); }
.af-sector-bar__icons i:nth-child(2) { background: #3a4048; }
.af-sector-bar__icons .af-ico { width: 18px; height: 18px; }
.af-sector-bar__text { display: grid; gap: 1px; min-width: 0; padding-right: 2px; }
.af-sector-bar__text strong { font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.af-sector-bar__text small { overflow: hidden; color: rgba(255, 255, 255, .58); font-size: 11.5px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.af-sector-bar__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s ease; }
.af-sector-bar__arrow .af-ico { width: 18px; height: 18px; transform: rotate(-90deg); }
.af-sector-bar:hover .af-sector-bar__arrow { background: var(--brand-red); }
html.af-dialog-open .af-sector-bar, html.af-dialog-open .af-wa-float { opacity: 0; pointer-events: none; }

/* Sektör penceresi */
html.af-dialog-open, html.af-dialog-open body { overflow: hidden; }
.af-sector-dialog { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px; }
.af-sector-dialog[hidden] { display: none; }
.af-sector-dialog__backdrop { position: absolute; inset: 0; background: rgba(20, 22, 26, .52); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: af-fade .2s ease; }
.af-sector-dialog__panel { position: relative; display: flex; flex-direction: column; width: min(860px, 100%); max-height: min(780px, calc(100vh - 48px)); padding: 26px 26px 18px; border-radius: 28px; background: #fff; color: var(--ink, #23262b); box-shadow: 0 30px 80px rgba(0, 0, 0, .28); animation: af-rise .24s cubic-bezier(.2, .7, .2, 1); }
.af-sector-dialog__panel > * { flex-shrink: 0; }
.af-sector-dialog__panel > .af-sector-options { flex: 0 1 auto; min-height: 0; }
.af-sector-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.af-sector-dialog__eyebrow { color: var(--brand-red, #ff4d57); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.af-sector-dialog__head h2 { margin: 6px 0 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.af-sector-dialog__head p { margin-top: 8px; max-width: 560px; color: var(--muted, #5e6772); font-size: 14px; line-height: 1.6; }
.af-sector-dialog__close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgba(35, 38, 43, .1); border-radius: 50%; background: #fff; color: var(--ink, #23262b); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.af-sector-dialog__close:hover { background: #f5f6f8; border-color: rgba(35, 38, 43, .18); }
.af-sector-search { display: flex; align-items: center; gap: 12px; height: 58px; margin-top: 20px; padding: 0 18px; border: 1.5px solid #dfe3e8; border-radius: 18px; background: #fff; cursor: text; transition: border-color .2s ease, box-shadow .2s ease; }
.af-sector-search:focus-within { border-color: rgba(255, 77, 87, .7); box-shadow: 0 0 0 4px rgba(255, 77, 87, .09); }
.af-sector-search .af-ico { width: 21px; height: 21px; color: var(--brand-red, #ff4d57); }
.af-sector-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink, #23262b); font: inherit; font-size: 16px; }
.af-sector-search input::placeholder { color: #9aa3ad; }
.af-sector-search input::-webkit-search-cancel-button { cursor: pointer; }
.af-sector-dialog__status { min-height: 18px; margin: 10px 2px 0; color: var(--muted-2, #7d8793); font-size: 12px; }
.af-sector-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding: 2px 2px 6px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.af-sector-option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border: 1px solid rgba(35, 38, 43, .07); border-radius: 16px; background: #fafbfc; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.af-sector-option[hidden] { display: none; }
.af-sector-option:hover, .af-sector-option:focus-visible { border-color: rgba(255, 77, 87, .4); background: #fff; transform: translateY(-1px); outline: 0; }
.af-sector-option:focus-visible { box-shadow: 0 0 0 3px rgba(255, 77, 87, .16); }
.af-sector-option__icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: #fff1f2; color: var(--brand-red, #ff4d57); transition: background .18s ease, color .18s ease; }
.af-sector-option:hover .af-sector-option__icon, .af-sector-option:focus-visible .af-sector-option__icon { background: var(--brand-red, #ff4d57); color: #fff; }
.af-sector-option__text { display: grid; gap: 2px; min-width: 0; }
.af-sector-option__text strong { color: var(--ink, #23262b); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.af-sector-option__text small { color: var(--muted-2, #7d8793); font-size: 11.5px; line-height: 1.3; }
.af-sector-option--alias .af-sector-option__icon { background: #f1f3f5; color: var(--muted, #5e6772); }
.af-sector-option mark { padding: 0; background: transparent; color: var(--brand-red, #ff4d57); }
.af-sector-empty { margin: 8px 0 14px; padding: 22px; border-radius: 18px; background: #f6f7f9; text-align: center; }
.af-sector-empty[hidden] { display: none; }
.af-sector-empty strong { display: block; font-size: 16px; font-weight: 600; }
.af-sector-empty p { margin-top: 6px; color: var(--muted, #5e6772); font-size: 13.5px; line-height: 1.6; }
.af-sector-empty__wa { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 18px; border-radius: 999px; background: var(--af-wa); color: #fff; font-size: 14px; font-weight: 500; }
.af-sector-empty__wa .af-ico { width: 19px; height: 19px; }
.af-sector-dialog__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(35, 38, 43, .07); font-size: 13px; font-weight: 500; }
.af-sector-dialog__foot a { color: var(--ink, #23262b); }
.af-sector-dialog__foot a span { color: var(--brand-red, #ff4d57); }
.af-sector-dialog__foot a:hover { color: var(--brand-red, #ff4d57); }
@keyframes af-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes af-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .af-sector-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .af-float-spacer--bar { height: 82px; }
    .af-wa-float { right: 14px; bottom: calc(14px + var(--af-float-offset)); width: 56px; height: 56px; }
    .af-wa-float__icon { width: 29px; height: 29px; }
    .af-wa-float__label { display: none; }
    .af-sector-bar { left: 14px; right: 84px; bottom: calc(14px + var(--af-float-offset)); max-width: none; min-height: 56px; transform: none; }
    .af-sector-bar:hover { transform: translateY(-1px); }
    .af-sector-bar__icons i { width: 34px; height: 34px; }
    .af-sector-bar__icons i:nth-child(3) { display: none; }
    .af-sector-bar__text { flex: 1; }
    .af-sector-bar__text strong { font-size: 14px; }
    .af-sector-bar__arrow { width: 36px; height: 36px; }
    .af-sector-dialog { align-items: flex-end; padding: 0; }
    .af-sector-dialog__panel { width: 100%; max-height: calc(100% - 28px); height: calc(100% - 28px); padding: 20px 16px 12px; border-radius: 24px 24px 0 0; animation: af-sheet .26s cubic-bezier(.2, .7, .2, 1); }
    .af-sector-dialog__head p { font-size: 13px; }
    .af-sector-search { height: 54px; margin-top: 16px; }
    .af-sector-options { grid-template-columns: 1fr; gap: 6px; }
    .af-sector-option { min-height: 58px; }
    .af-sector-dialog__foot { padding-bottom: env(safe-area-inset-bottom, 0); }
}
@media (max-width: 360px) {
    .af-sector-bar__text small { display: none; }
}
@keyframes af-sheet { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .af-wa-float::before { animation: none; display: none; }
    .af-sector-dialog__panel, .af-sector-dialog__backdrop { animation: none; }
}
@media print {
    .af-wa-float, .af-sector-bar, .af-sector-dialog, .af-float-spacer { display: none !important; }
}
