/* ==========================================================
   Derlenmiş tema (style.css) dışındaki ek bileşenler:
   çerez onayı, blog kartları / sayfalama, sağlık beyanı
   ========================================================== */

/* ---------- Çerez onayı (KVKK): kabul ve ret eşit ağırlıkta ---------- */
.cc-bar[hidden], .cc-fab[hidden], .cc-embed-ph[hidden] { display: none !important; }
.cc-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 1080px; margin: 0 auto;
  border-radius: 20px; background: #fff; color: #0f172a; border: 1px solid #e2e8f0;
  box-shadow: 0 30px 70px -20px rgba(6,10,20,.45);
  animation: cc-up .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cc-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cc-inner { display: flex; align-items: center; gap: 24px; padding: 20px 22px; }
.cc-text { flex: 1; min-width: 0; }
.cc-text strong { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 800; }
.cc-text strong svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #103b82; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-text p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #475569; }
.cc-text a, .cc-m-lead a { color: #103b82; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cc-btns { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn {
  height: 44px; min-width: 150px; padding: 0 18px; border-radius: 12px; border: 1px solid #103b82; background: #103b82; color: #fff;
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background-color .2s, transform .15s;
}
.cc-btn:hover { background: #0c2e66; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible, .cc-link:focus-visible, .footer-cc:focus-visible, .cc-fab:focus-visible { outline: 3px solid rgba(16,59,130,.45); outline-offset: 2px; }
.cc-link { background: none; border: 0; padding: 6px 4px; font: inherit; font-weight: 700; font-size: 14.5px; color: #103b82; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cc-modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #0f172a; box-shadow: 0 40px 100px -20px rgba(6,10,20,.6); }
.cc-modal::backdrop { background: rgba(6,10,20,.55); backdrop-filter: blur(3px); }
.cc-m-box { padding: 24px; margin: 0; }
.cc-m-head { display: flex; justify-content: space-between; align-items: center; }
.cc-m-head strong { font-size: 20px; font-weight: 800; }
.cc-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: #475569; }
.cc-m-lead { margin: 10px 0 0; font-size: 14.5px; color: #475569; line-height: 1.6; }
.cc-cats { display: grid; gap: 10px; margin-top: 18px; }
.cc-cat { display: block; padding: 0; overflow: hidden; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; }
.cc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.cc-cat-t b { display: block; font-size: 15.5px; }
.cc-cat-t small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: #64748b; }
.cc-sw { position: relative; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cc-sw input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.cc-sw i { display: block; width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background-color .2s; }
.cc-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.cc-sw input:checked + i { background: #103b82; }
.cc-sw input:checked + i::after { transform: translateX(20px); }
.cc-sw input:focus-visible + i { outline: 3px solid rgba(16,59,130,.45); outline-offset: 2px; }
.cc-sw.is-locked i { background: #8fa8d3; }
.cc-sw em { font-style: normal; font-size: 11.5px; font-weight: 700; color: #64748b; }
.cc-svcs { padding: 0 16px; }
.cc-svcs:not(:empty) { padding-bottom: 12px; }
.cc-svc { border-top: 1px dashed #d5deea; }
.cc-svc summary { display: flex; align-items: center; gap: 8px; padding: 9px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.cc-svc summary::-webkit-details-marker { display: none; }
.cc-svc summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(-45deg); transition: transform .2s; flex: none; margin-right: 2px; }
.cc-svc[open] summary::before { transform: rotate(45deg); }
.cc-svc summary small { margin-left: auto; font-weight: 600; color: #64748b; font-size: 12.5px; text-align: right; }
.cc-svc dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; }
.cc-svc dt { font-weight: 700; color: #64748b; }
.cc-svc dd { margin: 0; color: #1e293b; }
.cc-svc dd ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.cc-svc code, .cookie-table code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: #eef2f8; color: #0f172a; }
.cc-svc a { color: #103b82; font-weight: 700; text-decoration: underline; }
.cc-m-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.cc-m-foot .cc-btn { min-width: 0; }
.cc-m-id { margin: 12px 0 0; font-size: 12.5px; color: #64748b; text-align: center; }
.cc-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e2e8f0;
  display: grid; place-items: center; background: #fff; color: #103b82; cursor: pointer; padding: 0;
  box-shadow: 0 12px 28px -10px rgba(6,10,20,.45); transition: transform .2s, box-shadow .2s;
}
.cc-fab:hover { transform: translateY(-2px) rotate(-8deg); box-shadow: 0 16px 32px -10px rgba(16,59,130,.5); }
.cc-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-fab svg circle { fill: currentColor; stroke: none; }
.footer-cc { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color .15s; }
.footer-cc:hover { color: #fff; }

/* Onaysız yüklenmeyen gömülü içerik (harita) */
.cc-embed { position: relative; width: 100%; height: 100%; }
.cc-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.cc-embed iframe[hidden] { display: none; }
.cc-embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #f1f5f9; color: #475569; font-size: 14px; line-height: 1.55; }
.cc-embed-ph p { margin: 0; max-width: 420px; }
.cc-embed-ph a { color: #103b82; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cc-embed-ph .cc-btn { min-width: 0; }

/* Çerez Politikası tablosu */
.cookie-table-wrap { overflow-x: auto; }
.cookie-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; margin: 14px 0 6px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.cookie-table th { font-size: 12.5px; color: #64748b; }
.cookie-table small { color: #64748b; }
.legal-body h2 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 1.75rem 0 .5rem; }
.legal-body h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 1.25rem 0 .4rem; }
.legal-body p, .legal-body li { line-height: 1.7; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; }
.legal-body a { color: #103b82; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .cc-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .cc-btns { justify-content: stretch; }
  .cc-btns .cc-btn { flex: 1; min-width: 0; }
  .cc-link { width: 100%; text-align: center; }
}
@media (max-width: 520px) {
  .cc-bar { left: 8px; right: 8px; bottom: 8px; }
  .cc-m-foot { grid-template-columns: 1fr; }
  .cc-text p { font-size: 13.5px; }
  .cc-svc dl { grid-template-columns: 1fr; gap: 2px; }
  .cc-fab { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cc-bar { animation: none; } }

/* ---------- Blog kartı görseli: kapaklar 3:2 (1536x1024), kırpılmadan tam görünür ---------- */
.blog-card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #f1f5f9; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ---------- Blog sayfalama ---------- */
.blog-pager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #e5e7eb; }
.blog-pager-info { margin: 0; font-size: 13px; color: #64748b; }
.blog-pager-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.blog-pager-list a, .blog-pager-list span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; color: #334155; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.blog-pager-list a:hover { border-color: #103b82; color: #103b82; }
.blog-pager-list a:focus-visible { outline: 3px solid rgba(16,59,130,.45); outline-offset: 2px; }
.blog-pager-list .is-current { background: #103b82; border-color: #103b82; color: #fff; }
.blog-pager-list .is-disabled { color: #cbd5e1; background: #f8fafc; }
.blog-pager-list .is-gap { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }

/* ---------- Sağlık beyanı (footer'ın hemen üstü, tüm sayfalar) ---------- */
.health-note { background: #f1f5f9; border-top: 1px solid #e2e8f0; color: #475569; }
.health-note-inner { display: flex; gap: 14px; align-items: flex-start; max-width: 1100px; margin: 0 auto; padding: 22px 16px; }
.health-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #103b82; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.health-note p { margin: 0; font-size: 13px; line-height: 1.65; }
.health-note strong { color: #0f172a; }
@media (min-width: 768px) { .health-note-inner { padding: 26px 24px; } .health-note p { font-size: 13.5px; } }
