/* ==========================================================
   İçerik sayfaları (page.php) + ortak okuma tipografisi (.cms-prose)
   ========================================================== */
.cms-hero { position: relative; overflow: hidden; }
.cms-hero::after {
    content: ""; position: absolute; right: -80px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(184,51,106,.10), rgba(123,94,167,.06) 55%, transparent 70%);
    pointer-events: none;
}
.cms-hero .container { position: relative; z-index: 1; }
.cms-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }
.cms-meta i { color: var(--brand); margin-right: 5px; }

.cms-page { padding: 32px 0 56px; }
.cms-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 992px) {
    .cms-layout.has-aside { grid-template-columns: 270px minmax(0, 780px); gap: 34px; justify-content: center; }
    .cms-layout:not(.has-aside) { grid-template-columns: minmax(0, 820px); justify-content: center; }
    .cms-aside { position: sticky; top: 110px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; }
}

/* İçindekiler */
.cms-toc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 12px; }
.cms-toc + .cms-toc, .cms-aside .cms-help { margin-top: 14px; }
.cms-toc-title { font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cms-toc ol, .cms-toc ul { list-style: none; margin: 0; padding: 0; }
.cms-toc li a { display: block; padding: 6px 10px; border-radius: 9px; font-size: 13.5px; line-height: 1.35; color: var(--text); text-decoration: none; border-left: 2px solid transparent; }
.cms-toc li a:hover, .cms-toc li a:focus-visible { background: var(--rose-soft); color: var(--brand-dark); }
.cms-toc li a.active { background: var(--lav-soft); color: var(--lavender-dark); font-weight: 600; border-left-color: var(--lavender); }
.cms-toc li a.active[aria-current="page"] { border-left-color: var(--brand); }
@media (max-width: 991px) {
    .cms-toc details summary { cursor: pointer; list-style: none; }
    .cms-toc details summary::-webkit-details-marker { display: none; }
    .cms-toc details[open] summary .fa-chevron-down { transform: rotate(180deg); }
    .cms-toc details ol { margin-top: 6px; }
    .cms-aside .cms-related, .cms-aside .cms-help { display: none; }
}
@media (min-width: 992px) { .cms-toc details summary { pointer-events: none; } .cms-toc details summary .fa-chevron-down { display: none; } }
.cms-toc summary .fa-chevron-down { transition: transform .2s; font-size: 11px; color: var(--text-muted); }

.cms-help { background: linear-gradient(150deg, var(--rose-soft), var(--lav-soft)); border-radius: var(--radius); padding: 18px; }
.cms-help strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.cms-help p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 12px; }
.cms-help .btn { width: 100%; }

/* Gövde */
.cms-article { padding: 34px 40px; }
@media (max-width: 575px) { .cms-article { padding: 22px 18px; } }

.cms-prose { color: var(--text); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.cms-prose > *:first-child { margin-top: 0; }
.cms-prose p { margin: 0 0 16px; }
.cms-prose h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(21px, 2.4vw, 26px); color: var(--ink);
    margin: 34px 0 14px; padding-top: 6px; scroll-margin-top: 120px; line-height: 1.3;
}
.cms-prose h2::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--lavender)); margin-bottom: 12px; }
.cms-prose h3 { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; scroll-margin-top: 120px; line-height: 1.4; }
.cms-prose h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.cms-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cms-prose a:hover { color: var(--brand-dark); }
.cms-prose strong { color: var(--ink); font-weight: 600; }
.cms-prose ul, .cms-prose ol { margin: 0 0 18px; padding-left: 22px; }
.cms-prose li { margin-bottom: 7px; padding-left: 2px; }
.cms-prose li::marker { color: var(--brand); }
.cms-prose ol li::marker { font-weight: 600; }
.cms-prose blockquote {
    margin: 22px 0; padding: 16px 20px 16px 22px; border-left: 3px solid var(--lavender); border-radius: 0 14px 14px 0;
    background: var(--lav-soft); color: var(--ink); font-family: 'Playfair Display', serif; font-size: 18px; line-height: 1.6;
}
.cms-prose blockquote p:last-child { margin: 0; }
.cms-prose hr { border: 0; height: 1px; background: var(--border); margin: 30px 0; opacity: 1; }
.cms-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.cms-prose figure { margin: 22px 0; }
.cms-prose figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.cms-prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.cms-prose th, .cms-prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.cms-prose th { background: var(--cream); color: var(--ink); }
.cms-prose em { color: inherit; }
.cms-pay-list { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.cms-pay-list li { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 10px 40px; position: relative; margin: 0; }
.cms-pay-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 14px; top: 10px; color: var(--brand); }

/* SSS görünümü: H3 soruları kart gibi */
.cms-faq h3 { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px 12px 44px; position: relative; font-size: 16px; margin: 18px 0 10px; }
.cms-faq h3::before { content: "?"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cms-faq h3 + p, .cms-faq h3 + ul, .cms-faq h3 + p + p, .cms-faq h3 + p + ul { padding-left: 16px; }

.cms-foot { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--border); font-size: 13.5px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.cms-foot a { color: var(--brand); }

/* Yazdırma */
@media print {
    .site-header, .site-footer, .mobile-tabbar, .whatsapp-float, .cms-aside, .cookie-bar, .top-bar { display: none !important; }
    .cms-page { padding: 0; } .cms-layout { display: block; }
    .cms-article { border: 0; padding: 0; }
    body { background: #fff !important; }
}

/* ---------- Gece modu ---------- */
html[data-theme="dark"] .cms-hero::after { background: radial-gradient(circle at 30% 30%, rgba(224,103,154,.14), rgba(180,155,224,.08) 55%, transparent 70%); }
html[data-theme="dark"] .cms-toc { background: var(--surface, #211d3b); border-color: var(--border); }
html[data-theme="dark"] .cms-help { background: linear-gradient(150deg, #2e1f3d, #252046); }
html[data-theme="dark"] .cms-faq h3,
html[data-theme="dark"] .cms-pay-list li,
html[data-theme="dark"] .cms-prose th { background: var(--surface-2, #26214a); border-color: var(--border); }
html[data-theme="dark"] .cms-prose blockquote { background: var(--lav-soft); color: var(--text); }
html[data-theme="dark"] .cms-faq h3::before { background: var(--brand-fill, #c4457c); }
