/* Çerez bandı ve ayarlar penceresi (views/partials/cookie-banner.ejs). Kendi kendine yeterli: herkese açık sayfalarda da panelde de aynı görünür.
   Karanlık desen yok: "Reddet", "Kabul et" ve "Ayarla" aynı sınıf (.cc-btn), aynı boyut ve aynı renk. */
.cc-root { --cc-bg: #1A1F2B; --cc-raised: #232A39; --cc-tx: #E5E7EB; --cc-mu: #A6AEBD; --cc-line: rgba(229,231,235,.2); --cc-acc: #00E5A8; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.cc-root [hidden] { display: none !important; }
.cc-root *, .cc-root *::before, .cc-root *::after { box-sizing: border-box; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cc-bar {
  position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px; max-width: 920px; margin-inline: auto;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 20px; border-radius: 16px; border: 1px solid var(--cc-line); background: var(--cc-bg); color: var(--cc-tx);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); font-size: 14px; line-height: 1.55;
}
.cc-bar-text { flex: 1 1 380px; min-width: 0; }
.cc-bar p { margin: 0; color: var(--cc-mu); }
.cc-bar a, .cc-panel a { color: var(--cc-acc); text-decoration: underline; text-underline-offset: 2px; }
.cc-title { margin: 0 0 4px; font-size: 16px; font-weight: 650; color: #F5F7FA; letter-spacing: -.01em; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

.cc-btn {
  min-width: 112px; height: 44px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--cc-line); background: var(--cc-raised); color: var(--cc-tx); font: 600 14px/1 'Inter', system-ui, sans-serif;
  transition: background .15s, border-color .15s;
}
.cc-btn:hover { background: #2C3548; border-color: rgba(229,231,235,.4); }
.cc-btn:focus-visible, .cc-x:focus-visible, .cc-list summary:focus-visible, .cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--cc-acc); outline-offset: 2px; }

.cc-dlg { position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 16px; background: rgba(7,9,13,.72); }
.cc-panel {
  width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 18px;
  border: 1px solid var(--cc-line); background: var(--cc-bg); color: var(--cc-tx); font-size: 14px; line-height: 1.55;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.cc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cc-panel-head .cc-title { margin: 0; font-size: 19px; }
.cc-x { width: 40px; height: 40px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--cc-mu); font-size: 26px; line-height: 1; cursor: pointer; }
.cc-x:hover { background: rgba(229,231,235,.08); color: var(--cc-tx); }
.cc-intro { margin: 0 0 14px; color: var(--cc-mu); }
.cc-cat { padding: 14px 0; border-top: 1px solid rgba(229,231,235,.1); }
.cc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-desc { margin: 4px 0 8px; color: var(--cc-mu); }
.cc-always { font-size: 13px; color: var(--cc-acc); font-weight: 600; }
.cc-list summary { cursor: pointer; color: var(--cc-mu); font-size: 13px; width: fit-content; border-radius: 6px; }
.cc-list ul { margin: 8px 0 0; padding-left: 18px; color: var(--cc-mu); font-size: 13px; }
.cc-list li { margin-bottom: 8px; overflow-wrap: anywhere; }
.cc-list code { color: var(--cc-tx); font-size: 12px; }
.cc-li-dur { color: #8590A3; font-size: 12px; }
.cc-actions-dlg { margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(229,231,235,.1); justify-content: flex-end; }

.cc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-slider { position: absolute; inset: 0; border-radius: 26px; background: #3A4458; transition: background .15s; }
.cc-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cc-switch input:checked + .cc-slider { background: #00A97C; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }

html.cc-modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .cc-bar { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cc-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .cc-actions .cc-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 13px; }
  .cc-actions-dlg { flex-wrap: wrap; }
  .cc-actions-dlg .cc-btn { flex: 1 1 100%; }
  .cc-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .cc-btn, .cc-slider, .cc-slider::before { transition: none; } }

/* giriş/kayıt kartlarının altındaki yasal bağlantılar */
.cc-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 18px; font-size: 12.5px; }
.cc-legal-links a { color: #9AA3B5; text-decoration: none; padding: 4px 2px; }
.cc-legal-links a:hover { color: #E5E7EB; text-decoration: underline; }

/* tek seferlik yapay zeka bilgilendirmesi (views/privacy/_ai-notice.ejs) */
.ai-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(79,124,255,.35); background: rgba(79,124,255,.1); color: #E5E7EB; font-size: 13.5px; line-height: 1.5; }
.ai-notice[hidden] { display: none; }
.ai-notice .bi { color: #7C9DFF; font-size: 16px; }
.ai-notice-text { flex: 1 1 320px; min-width: 0; }
.ai-notice a { color: #7C9DFF; text-decoration: underline; text-underline-offset: 2px; }
.ai-notice-ok { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(229,231,235,.25); background: rgba(229,231,235,.08); color: #E5E7EB; font: 600 13px/1 inherit; cursor: pointer; }
.ai-notice-ok:hover { background: rgba(229,231,235,.16); }
