/* TODI — kategori çekmecesi (todi/kategori_cekmece.php). PRF-27: satır içinden taşındı. */
/* Todi — yumuşak çekmece: sol üstte yuvarlak kapat, hap arama, hap kategori satırları.
   Renkler tema belirteçlerinden (todi.css): --pf-primary* panelden, --el-* nötr tonlar. */
/* modal çekmece en üstte: çerez kartı (basic.css z 999999999) ve push kartı (temaheader z 99999999) perdenin altında kalır */
.pf-cd-perde { position: fixed; inset: 0; z-index: 1000000000; background: rgba(15, 23, 42, .42); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s; }
.pf-cd-perde.acik { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.pf-cd { --cd-ac: var(--pf-primary, #16A34A); --cd-ac-yazi: var(--pf-primary-text, #15803D); --cd-ac-zemin: var(--pf-primary-soft, #E9F7EF);
  --cd-ink: var(--el-ink, #1F2937); --cd-ink2: var(--el-ink-2, #4B5563); --cd-muted: var(--el-ink-2, #4B5563); --cd-line: var(--el-cizgi, #E6E9EF);
  --cd-soft: var(--el-zemin, #F1F3F7); --cd-hap: color-mix(in srgb, var(--el-zemin, #F1F3F7) 62%, #fff);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000000001; display: flex; flex-direction: column; width: min(88vw, 360px);
  background: #fff; border-radius: 0 var(--el-r-xl, 28px) var(--el-r-xl, 28px) 0; box-shadow: 18px 0 48px -24px rgba(15, 23, 42, .35);
  color: var(--cd-ink); font-family: var(--pf-font, "Plus Jakarta Sans", system-ui, sans-serif);
  transform: translateX(-104%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
.pf-cd.acik { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.pf-cd * { box-sizing: border-box; }
.pf-cd a { color: inherit; text-decoration: none; }
.pf-cd ul { list-style: none; margin: 0; padding: 0; }
.pf-cd button { font-family: inherit; }
/* basic.css `* { outline: 0 !important }` odak halkasını siler; klavye odağı görünür kalsın */
.pf-cd :focus-visible { outline: 2px solid var(--cd-ac) !important; outline-offset: 2px; }

/* baş: kapat (sol üst) + logo */
.pf-cd-bas { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 14px; }
.pf-cd-kapat { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--cd-line); border-radius: 50%; background: #fff; color: var(--cd-ink); cursor: pointer; transition: border-color .15s, color .15s; }
.pf-cd-kapat:hover { border-color: var(--pf-primary-line, var(--cd-line)); color: var(--cd-ac-yazi); }
.pf-cd-kapat svg { width: 18px; height: 18px; }
.pf-cd-logo { display: flex; min-width: 0; }
.pf-cd-logo img { display: block; height: 32px; width: auto; max-width: 170px; object-fit: contain; }

/* üye karşılaması */
.pf-cd-uye { display: flex; align-items: center; gap: 12px; margin: 0 14px 12px; padding: 12px 14px; border-radius: var(--el-r-m, 16px); background: var(--cd-soft); }
.pf-cd-av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; color: var(--cd-ac-yazi); font-size: 15px; font-weight: 700; }
.pf-cd-av svg { width: 20px; height: 20px; }
.pf-cd-uye b { display: block; font-size: 14px; font-weight: 600; }
.pf-cd-uye small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cd-muted); }
.pf-cd-uye small a { color: var(--cd-ac-yazi); font-weight: 600; }
.pf-cd-uye small a.pf-cd-cikis { color: #B91C1C; }

/* arama: gri hap */
.pf-cd-ara { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0 14px 14px; padding: 0 8px 0 16px; border: 1px solid transparent; border-radius: 999px; background: var(--cd-soft); transition: background .15s, border-color .15s, box-shadow .15s; }
.pf-cd-ara:focus-within { background: #fff; border-color: var(--pf-primary-line, var(--cd-ac)); box-shadow: 0 0 0 4px var(--pf-primary-tint, transparent); }
.pf-cd-ara svg { width: 18px; height: 18px; flex: none; color: var(--cd-ink2); }
.pf-cd-ara input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 16px; letter-spacing: normal; color: var(--cd-ink); }
.pf-cd-ara input::-webkit-search-cancel-button { display: none; }
.pf-cd-ara input::placeholder { color: var(--el-ink-3, #6B7485); }
.pf-cd-ara input:focus-visible { outline: 0; }
.pf-cd-temizle { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: var(--cd-ink2); font-size: 18px; line-height: 1; cursor: pointer; }
.pf-cd-ara:focus-within .pf-cd-temizle { background: var(--cd-soft); }
.pf-cd-temizle[hidden] { display: none; }
.pf-cd-gizli { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pf-cd-govde { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 14px; scrollbar-width: none; }
.pf-cd-govde::-webkit-scrollbar { display: none; }

/* öne çıkanlar (Hikayeler kısayolları) */
.pf-cd-hizli { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 2px 2px 14px; margin-bottom: 6px; border-bottom: 1px dashed var(--cd-line); }
.pf-cd-hizli a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; border-radius: var(--el-r-s, 12px); font-size: 11.5px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--cd-ink2); }
.pf-cd-yumusak { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; }
.pf-cd-yumusak img { width: 64%; height: 64%; object-fit: contain; }
.pf-cd-hizli .pf-cd-yumusak img { width: 100%; height: 100%; object-fit: cover; }   /* kısayol fotoğrafları daireyi kaplar */
.pf-cd-hizli .pf-cd-yumusak { width: 52px; height: 52px; }
.pf-cd-etk { padding: 12px 6px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cd-muted); }

/* kategori satırları: hap */
.pf-cd-liste { display: flex; flex-direction: column; gap: 6px; }
.pf-cd-sat { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 6px 8px 6px 18px; border: 0; border-radius: 999px; background: var(--cd-hap);
  color: var(--cd-ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.pf-cd-sat:hover { background: var(--cd-soft); }
.pf-cd-sat .ad { flex: 1; min-width: 0; }
.pf-cd-sat .ok { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #fff; color: var(--cd-ink2); transition: transform .2s ease, color .15s; }
.pf-cd-sat .ok svg { width: 16px; height: 16px; }
.pf-cd-sat[aria-expanded="true"] { background: var(--cd-ac-zemin); color: var(--cd-ac-yazi); font-weight: 600; }
.pf-cd-sat[aria-expanded="true"] .ok { transform: rotate(90deg); color: var(--cd-ac-yazi); }
.pf-cd-sat .pf-cd-yumusak { width: 34px; height: 34px; margin-left: -10px; background: #fff; }
.pf-cd-sat .pf-cd-harf { display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-left: -10px; border-radius: 50%; background: #fff; color: var(--cd-muted); font-size: 13px; font-weight: 600; }

/* alt kategoriler (girinti `.pf-cd ul { margin: 0 }` kuralını ezmek için .pf-cd önekli) */
.pf-cd .pf-cd-alt { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 8px 14px; padding: 0; }
.pf-cd-alt a, .pf-cd-alt-sat { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 8px 12px 8px 16px; border: 0; border-radius: 999px; background: none;
  color: var(--cd-ink2); font-size: 14px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.pf-cd-alt a:hover, .pf-cd-alt-sat:hover { background: var(--cd-soft); color: var(--cd-ink); }
.pf-cd-alt .pf-cd-tum { display: inline-flex; width: auto; min-height: 36px; margin: 0 0 4px; padding: 6px 16px; background: var(--pf-primary-tint, var(--cd-soft)); color: var(--cd-ac-yazi); font-weight: 600; }
.pf-cd-alt .pf-cd-tum:hover { background: var(--cd-ac-zemin); color: var(--cd-ac-yazi); }
.pf-cd .ad, .pf-cd-alt a, .pf-cd-bos { overflow-wrap: anywhere; }
.pf-cd-alt-sat .ad { flex: 1; min-width: 0; }
.pf-cd-alt-sat .ok { display: grid; place-items: center; width: 24px; height: 24px; color: var(--el-ink-3, #8A94A6); transition: transform .2s ease; }
.pf-cd-alt-sat .ok svg { width: 14px; height: 14px; }
.pf-cd-alt-sat[aria-expanded="true"] { background: var(--cd-soft); color: var(--cd-ink); font-weight: 600; }
.pf-cd-alt-sat[aria-expanded="true"] .ok { transform: rotate(90deg); color: var(--cd-ac-yazi); }
.pf-cd .pf-cd-alt2 { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px 16px; padding: 0 0 0 4px; border-left: 1px dashed var(--cd-line); }
.pf-cd-alt2 a { min-height: 40px; font-size: 13.5px; font-weight: 400; color: var(--cd-muted); }

.pf-cd-bos { margin: 10px 2px; padding: 22px 16px; border: 1px dashed var(--cd-line); border-radius: var(--el-r-m, 16px); color: var(--cd-muted); font-size: 13.5px; line-height: 1.6; text-align: center; }
.pf-cd-bos a { color: var(--cd-ac-yazi); font-weight: 600; }

/* alt bağlantılar: haplar */
.pf-cd-ayak { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px dashed var(--cd-line); }
.pf-cd-ayak a { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 10px; border-radius: 999px; background: var(--cd-soft);
  color: var(--cd-ink2); font-size: 13px; font-weight: 600; text-align: center; transition: background .15s, color .15s; }
.pf-cd-ayak a:hover { background: var(--cd-ac-zemin); color: var(--cd-ac-yazi); }

@media (prefers-reduced-motion: reduce) { .pf-cd, .pf-cd-perde, .pf-cd .ok, .pf-cd-sat, .pf-cd-ara { transition: none !important; } }
