/* ==================== Bilgi sayfaları (pages/page.php) — ADIM 110/N ====================
   Kurallar, Kullanım Koşulları, Gizlilik, İletişim ve adminin eklediği sayfalar.
   Bilgisayar: solda sayfalar menüsü + sağda içerik kartı. Telefon: menü üstte yatay şerit. */

[hidden] { display: none !important; }
body.sp-body { padding: 0; min-height: 100vh; display: flex; flex-direction: column; }
.sp-body > * { position: relative; z-index: 1; }
.sp-body .ok-bg-pattern { position: fixed; z-index: 0; }

/* Üst çubuk */
.sp-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 18px 20px;
}
.sp-brand { display: flex; align-items: center; gap: 12px; color: #f4f1e8; text-decoration: none; min-width: 0; }
.sp-brand .brand-logo.brand-logo-101 { height: 46px; width: auto; margin: 0; }
.sp-brand .brand-logo:not(.brand-logo-101) { width: 44px; height: 44px; margin: 0; }
.sp-brand-name { font-size: 22px; font-weight: 800; white-space: nowrap; }
.sp-back {
  flex-shrink: 0; color: #f4f1e8; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(232,196,106,0.4); background: rgba(0,0,0,0.2);
  transition: background .15s, border-color .15s;
}
.sp-back:hover { background: rgba(232,196,106,0.14); border-color: rgba(232,196,106,0.7); }

/* Yerleşim */
.sp-wrap {
  flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start;
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 8px 20px 32px;
}

/* Sol menü */
.sp-nav {
  position: sticky; top: 18px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 10px;
}
.sp-nav-title { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,241,232,0.55); padding: 2px 10px 8px; }
.sp-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: rgba(244,241,232,0.86); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: background .15s, color .15s;
}
.sp-nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sp-nav-link.active { background: #f7f5ef; color: #0c3d2b; font-weight: 800; }
.sp-nav-icon { width: 22px; text-align: center; font-size: 17px; }

/* İçerik kartı */
.sp-card {
  background: #fbfaf6; color: #1f2a24; border-radius: 18px; padding: 36px 44px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4); min-width: 0;
}
.sp-draft { background: #fff4dc; border: 1px solid #f1d49a; color: #7a4a00; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 20px; }
.sp-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid #e7e3d8; margin-bottom: 24px; }
.sp-head-icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 30px; background: linear-gradient(160deg, #e8f3ed, #d3e8dc); box-shadow: inset 0 0 0 1px rgba(11,110,79,0.12);
}
.sp-head h1 { margin: 2px 0 6px; font-size: 30px; line-height: 1.2; color: #10261c; letter-spacing: -0.01em; }
.sp-summary { margin: 0 0 8px; font-size: 16px; color: #4d5c55; line-height: 1.5; }
.sp-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #7b877f; }
.sp-meta span + span::before { content: "·"; margin-right: 16px; }

/* İçindekiler */
.sp-toc { background: #f1efe7; border-radius: 12px; padding: 16px 20px; margin: 0 0 26px; }
.sp-toc-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b776f; margin-bottom: 8px; }
.sp-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.sp-toc li { margin: 3px 0; font-size: 14.5px; break-inside: avoid; }
.sp-toc a { color: #0b6e4f; text-decoration: none; font-weight: 600; }
.sp-toc a:hover { text-decoration: underline; }

/* Metin */
.sp-content { font-size: 16px; line-height: 1.75; color: #26332c; word-break: break-word; }
.sp-content > :first-child { margin-top: 0; }
.sp-content p { margin: 0 0 14px; }
.sp-content h2 { font-size: 21px; margin: 30px 0 10px; color: #10261c; scroll-margin-top: 16px; padding-top: 4px; }
.sp-content h3 { font-size: 17px; margin: 22px 0 8px; color: #10261c; scroll-margin-top: 16px; }
.sp-content ul, .sp-content ol { margin: 0 0 16px; padding-left: 22px; }
.sp-content li { margin: 5px 0; }
.sp-content ul li::marker { color: #0b6e4f; }
.sp-content strong { color: #10261c; }
.sp-content a { color: #0b6e4f; font-weight: 600; }
.sp-note {
  margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid #d4a537; background: #fbf3dd; border-radius: 0 10px 10px 0;
  font-size: 15px; color: #4a3b12;
}

/* Bulunamadı */
.sp-empty { text-align: center; padding: 30px 10px; }
.sp-empty-icon { font-size: 44px; }
.sp-empty h1 { margin: 10px 0 6px; font-size: 26px; }
.sp-empty p { color: #5b665f; margin: 0 0 20px; }

/* Alt bilgi */
.sp-foot { text-align: center; color: rgba(244,241,232,0.62); font-size: 13px; line-height: 1.9; padding: 8px 20px 28px; }
.sp-age { display: inline-block; border: 1px solid rgba(255,255,255,0.4); border-radius: 6px; padding: 0 6px; margin-right: 4px; font-weight: 800; color: #fff; line-height: 1.5; }
.sp-foot-links a { color: rgba(244,241,232,0.85); text-decoration: none; }
.sp-foot-links a + a::before { content: "·"; margin: 0 8px; color: rgba(244,241,232,0.45); }
.sp-foot-links a:hover { color: #fff; text-decoration: underline; }
.sp-copy { font-size: 12px; opacity: .8; }

/* ---------- İletişim formu ---------- */
.cf { margin-top: 28px; padding-top: 26px; border-top: 1px solid #e7e3d8; }
.cf-title { font-size: 21px; margin: 0 0 16px; color: #10261c; }
.cf-closed { background: #f1efe7; border-radius: 10px; padding: 14px 16px; color: #5b665f; }
.cf-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field label { display: block; font-size: 13.5px; font-weight: 700; color: #2b3a33; margin-bottom: 6px; }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: #1f2a24;
  border: 1.5px solid #d7d2c4; border-radius: 11px; background: #fff; padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.cf-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: #0b6e4f; box-shadow: 0 0 0 3px rgba(11,110,79,0.14); }
.cf-field.has-err input, .cf-field.has-err textarea { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.cf-err { display: block; color: #c0392b; font-size: 12.5px; font-weight: 600; min-height: 0; margin-top: 5px; }
.cf-err:empty { display: none; }
.cf-under { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cf-count { margin-top: 5px; margin-left: auto; font-size: 12px; color: #8a948e; }
.cf-count.near { color: #b3651a; font-weight: 700; }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-privacy { margin: -4px 0 0; font-size: 12.5px; color: #6b776f; }
.cf-privacy a { color: #0b6e4f; font-weight: 600; }
.cf-msg:empty { display: none; }
.cf-msg.err { background: #fdecea; border: 1px solid #f3c1bb; color: #a12f23; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.cf-submit { align-self: flex-start; padding: 13px 30px; font-size: 15.5px; border-radius: 12px; }
.cf-submit.is-busy { opacity: .85; cursor: progress; }
.cf-as { display: flex; align-items: center; gap: 12px; background: #eef6f1; border: 1px solid #cfe5d8; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.4; }
.cf-as small { color: #5b6d63; }
.cf-as-avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #0b6e4f; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cf-done { text-align: center; padding: 26px 16px; background: #eef6f1; border-radius: 14px; border: 1px solid #cfe5d8; }
.cf-done-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: #0b6e4f; color: #fff; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cf-done h3 { margin: 0 0 6px; font-size: 20px; color: #10261c; }
.cf-done p { margin: 0 0 16px; color: #3f4f47; }

/* ---------- Tablet ve telefon ---------- */
@media (max-width: 860px) {
  .sp-wrap { grid-template-columns: 1fr; gap: 14px; }
  .sp-nav {
    position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding: 6px; border-radius: 14px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sp-nav::-webkit-scrollbar { display: none; }
  .sp-nav-title { display: none; }
  .sp-nav-link { flex-shrink: 0; padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
  .sp-card { padding: 26px 22px 30px; }
  .sp-toc ol { columns: 1; }
}
@media (max-width: 520px) {
  .sp-topbar { padding: 14px 16px; }
  .sp-brand .brand-logo.brand-logo-101 { height: 38px; }
  .sp-brand-name { font-size: 18px; }
  .sp-back { padding: 7px 12px; font-size: 13px; }
  .sp-wrap { padding: 4px 12px 24px; }
  .sp-card { padding: 22px 18px 26px; border-radius: 16px; }
  .sp-head { gap: 12px; }
  .sp-head-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 12px; }
  .sp-head h1 { font-size: 23px; }
  .sp-summary { font-size: 14.5px; }
  .sp-content { font-size: 15.5px; }
  .sp-content h2 { font-size: 19px; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-submit { align-self: stretch; }
}
@media (max-width: 360px) {
  .sp-brand-name { display: none; }
}
@media print {
  .sp-nav, .sp-topbar, .sp-foot, .cf, .ok-bg-pattern { display: none !important; }
  .sp-wrap { display: block; }
  .sp-card { box-shadow: none; padding: 0; }
  body.sp-body { background: #fff; }
}

/* ADIM 111/N — kayıt formundaki pencere (page.php?embed=1): yalnızca içerik kartı */
body.sp-embed { background: #fbfaf6; min-height: 0; }
.sp-embed .ok-bg-pattern { display: none; }
.sp-embed .sp-wrap { display: block; padding: 0; max-width: none; }
.sp-embed .sp-card { box-shadow: none; border-radius: 0; padding: 22px 22px 26px; }
.sp-embed .ok-site-footer { display: none; }
