/* OkHesap Blog - liste ve yazı sayfaları (okhesap-theme.css ile birlikte yüklenir) */
.okh-blog { max-width: 1240px; margin: 0 auto; padding: 8px 20px 64px; color: var(--text-color); }
.okh-blog a { text-decoration: none; }
.okh-blog .breadcrumb-list { flex-wrap: wrap !important; white-space: normal !important; width: auto !important; min-width: 0 !important; max-width: 100%; }
.okh-blog .breadcrumb-item { flex-shrink: 1 !important; display: flex !important; min-width: 0; max-width: 100%; }
.okh-blog .bc-row { min-width: 0; max-width: 100%; }
.okh-blog .bc-current { white-space: normal; overflow-wrap: anywhere; }
.okh-blog-hero { padding: 18px 0 8px; }
.okh-blog-hero h1 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.01em; margin: 6px 0 10px; }
.okh-blog-hero p { color: var(--text-muted); max-width: 720px; line-height: 1.75; margin: 0; }

/* Kategori filtreleri */
.okh-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.okh-blog-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--surface); color: var(--text-color); font-size: 13.5px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.okh-blog-cats a:hover { border-color: #0ea5e9; color: #38bdf8; }
.okh-blog-cats a[aria-current="page"] { background: var(--primary); border-color: transparent; color: #fff; }
.okh-blog-cats .n { font-size: 11px; opacity: .75; font-weight: 700; }
[data-theme="light"] .okh-blog-cats a:hover { color: #0369a1; }

/* Öne çıkan yazı */
.okh-blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; margin-bottom: 30px; color: var(--text-color); transition: border-color .18s, box-shadow .18s, transform .18s; }
.okh-blog-featured:hover { border-color: #0ea5e9; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.okh-blog-featured .img { aspect-ratio: 1200 / 630; background: var(--surface-2); }
.okh-blog-featured .img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.okh-blog-featured .body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.okh-blog-featured h2 { margin: 0; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; font-weight: 800; }
.okh-blog-featured p { margin: 0; color: var(--text-muted); line-height: 1.7; }
.okh-blog-more { display: inline-flex; align-items: center; gap: 6px; color: #38bdf8; font-weight: 700; font-size: 14px; margin-top: 4px; }
[data-theme="light"] .okh-blog-more { color: #0369a1; }

/* Kart ızgarası */
.okh-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.okh-blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; color: var(--text-color); transition: transform .18s, border-color .18s, box-shadow .18s; }
.okh-blog-card:hover { transform: translateY(-3px); border-color: #0ea5e9; box-shadow: var(--shadow-md); }
.okh-blog-card .img { aspect-ratio: 1200 / 630; background: var(--surface-2); overflow: hidden; }
.okh-blog-card .img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.okh-blog-card:hover .img img { transform: scale(1.03); }
.okh-blog-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.okh-blog-card h2, .okh-blog-card h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 700; }
.okh-blog-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.okh-blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 4px; }
.okh-blog-badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: rgba(14, 165, 233, .14); color: #38bdf8; border: 1px solid rgba(14, 165, 233, .32); }
[data-theme="light"] .okh-blog-badge { color: #0369a1; }
.okh-blog-empty { padding: 48px 20px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-color); border-radius: 16px; }

/* Sayfalama */
.okh-blog-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 0; }
.okh-blog-pager a, .okh-blog-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface); color: var(--text-color); font-weight: 600; font-size: 14px; }
.okh-blog-pager a:hover { border-color: #0ea5e9; }
.okh-blog-pager .cur { background: var(--primary); color: #fff; border-color: transparent; }
.okh-blog-pager .dis { opacity: .4; }

/* Yazı sayfası */
.okh-post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; margin-top: 8px; }
.okh-post-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 14px 0 12px; }
.okh-post-head .lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); margin: 0 0 16px; }
.okh-post-cover { margin: 20px 0 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); background: var(--surface-2); }
.okh-post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

.okh-prose { font-size: 17px; line-height: 1.85; color: var(--text-color); overflow-wrap: anywhere; }
.okh-prose > *:first-child { margin-top: 0; }
.okh-prose p { margin: 0 0 1.15em; }
.okh-prose h2 { font-size: 26px; line-height: 1.3; font-weight: 800; margin: 2.1em 0 .7em; scroll-margin-top: 90px; display: flex; align-items: center; gap: 12px; }
.okh-prose h2::before { content: ""; flex: 0 0 4px; height: 26px; border-radius: 3px; background: linear-gradient(180deg, #0ea5e9, #22d3ee); }
.okh-prose h3 { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 1.7em 0 .5em; scroll-margin-top: 90px; }
.okh-prose h4 { font-size: 17px; font-weight: 700; margin: 1.4em 0 .4em; }
.okh-prose ul, .okh-prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.okh-prose li { margin: .4em 0; padding-left: .2em; }
.okh-prose li::marker { color: #0ea5e9; font-weight: 700; }
.okh-prose a { color: #38bdf8; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.okh-prose a:hover { text-decoration-thickness: 2px; }
[data-theme="light"] .okh-prose a { color: #0369a1; }
.okh-prose strong { font-weight: 700; }
.okh-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid #0ea5e9; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-muted); }
.okh-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.okh-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.okh-prose th, .okh-prose td { border: 1px solid var(--border-color); padding: 9px 12px; text-align: left; }
.okh-prose th { background: var(--surface); }
.okh-prose code { background: var(--surface); border: 1px solid var(--border-color); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.okh-prose pre { background: var(--surface); border: 1px solid var(--border-color); padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
.okh-prose hr { border: 0; border-top: 1px solid var(--border-color); margin: 2em 0; }

/* Bilgi kutuları */
.okh-prose .okh-tip, .okh-prose .okh-note, .okh-prose .okh-warn, .okh-prose .okh-cta, .okh-prose .okh-callout { margin: 1.5em 0; padding: 16px 20px; border-radius: 14px; border: 1px solid; line-height: 1.7; font-size: 16px; }
.okh-prose .okh-tip { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); }
.okh-prose .okh-note, .okh-prose .okh-callout { background: rgba(14, 165, 233, .1); border-color: rgba(14, 165, 233, .35); }
.okh-prose .okh-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.okh-prose .okh-cta { background: linear-gradient(135deg, rgba(2, 132, 199, .18), rgba(34, 211, 238, .08)); border-color: rgba(14, 165, 233, .4); }
.okh-prose .okh-cta p, .okh-prose .okh-tip p, .okh-prose .okh-note p, .okh-prose .okh-warn p { margin: 0; }

/* Yazı alt bilgi: paylaş + etiketler */
.okh-post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 36px 0 0; padding: 18px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.okh-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.okh-share .lbl { color: var(--text-muted); font-size: 14px; margin-right: 4px; }
.okh-share a, .okh-share button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface); color: var(--text-color); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.okh-share a:hover, .okh-share button:hover { border-color: #0ea5e9; }

/* Yan sütun */
.okh-post-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.okh-aside-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 18px 16px; }
.okh-aside-card h2, .okh-aside-card h3 { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; font-weight: 700; }
.okh-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.okh-toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; line-height: 1.45; color: var(--text-color); border-left: 2px solid transparent; }
.okh-toc a:hover { background: rgba(14, 165, 233, .1); }
.okh-toc a.on { border-left-color: #0ea5e9; background: rgba(14, 165, 233, .12); font-weight: 600; }
.okh-toc .l3 a { padding-left: 22px; font-size: 13.5px; color: var(--text-muted); }
.okh-aside-cta { background: linear-gradient(145deg, #0369a1, #0891b2); border: 0; color: #fff; }
.okh-aside-cta h3 { color: rgba(255, 255, 255, .8); }
.okh-aside-cta p { margin: 0 0 14px; line-height: 1.6; font-size: 14.5px; }
.okh-aside-cta a { display: inline-block; background: #f59e0b; color: #1b1203; font-weight: 800; padding: 9px 16px; border-radius: 10px; font-size: 14px; }
.okh-aside-cta a:hover { filter: brightness(1.06); }

.okh-related { margin-top: 56px; }
.okh-related > h2 { font-size: 22px; font-weight: 800; margin: 0 0 18px; }

.okh-toc-mobile { display: none; }

@media (max-width: 1024px) {
    .okh-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .okh-post-wrap { grid-template-columns: minmax(0, 1fr); }
    .okh-post-aside { position: static; }
    .okh-post-aside .okh-toc-card { display: none; }
    .okh-toc-mobile { display: block; margin: 0 0 22px; }
}
@media (max-width: 720px) {
    .okh-blog { padding: 4px 16px 48px; }
    .okh-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .okh-blog-featured { grid-template-columns: minmax(0, 1fr); }
    .okh-blog-featured .body { padding: 20px 18px 22px; }
    .okh-prose { font-size: 16.5px; line-height: 1.8; }
    .okh-prose h2 { font-size: 22px; }
    .okh-post-head .lead { font-size: 16.5px; }
}
.okh-toc-mobile summary { cursor: pointer; font-weight: 700; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; list-style: none; }
.okh-toc-mobile[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.okh-toc-mobile .okh-toc { padding: 8px; border: 1px solid var(--border-color); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface); }
