/* ==========================================================================
   Muditap360 — Blog (liste + yazı)
   ========================================================================== */

/* Ortak ------------------------------------------------------------------ */
.post-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); font-size: 12.5px; font-weight: 700; }
.post-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.post-read { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.post-author { display: flex; align-items: center; gap: 12px; }
.post-author strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.post-author small { color: var(--muted); font-size: 13px; }
.post-author--sm strong { font-size: 14px; }
.post-avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--primary)); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 16px; }
.post-author--sm .post-avatar { width: 34px; height: 34px; font-size: 14px; }
.post-avatar--lg { width: 72px; height: 72px; font-size: 28px; }

/* Kapak: kategori tonunda degrade + ürün maketi */
.post-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .9), transparent 40%), linear-gradient(145deg, var(--tone-bg), #fff); }
.post-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(11, 11, 26, .08) 1px, transparent 1.4px); background-size: 16px 16px; }
.post-cover-icon { position: absolute; left: 7%; top: 9%; width: 16%; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center; background: #fff; color: var(--tone); font-size: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); z-index: 2; }
.post-cover-art { position: absolute; right: -4%; bottom: -10%; width: 70%; transform: rotate(-8deg); transition: transform .6s var(--ease); filter: drop-shadow(0 26px 30px rgba(11, 11, 26, .28)); }
.post-cover-art .pv { background: none; aspect-ratio: auto; overflow: visible; display: block; }
.post-cover-art .pv::before { display: none; }
.post-cover-art .pv-card, .post-cover-art .pv-deck { width: 100%; transform: none; }
.post-cover-art .pv-stand { width: 58%; margin-left: 20%; transform: none; }
.post-cover-art .pv-stickers { width: 90%; }
.tone-dark.post-cover { background: var(--ink); }
.post-cover--lg { aspect-ratio: 4 / 3; height: 100%; }
.post-cover--hero { aspect-ratio: 21 / 8; border-radius: var(--r-xl); margin-top: 36px; }
.post-cover--hero .post-cover-art { width: 40%; right: 6%; bottom: -26%; }
.post-cover--hero .post-cover-icon { width: 8%; }

/* Blog listesi ----------------------------------------------------------- */
.blog-hero { padding: 28px 0 8px; background: linear-gradient(180deg, var(--soft), #fff); }
.blog-hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-hero h1 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -.04em; margin: 0; max-width: 14ch; }
.blog-hero h1 .serif { color: var(--primary); }
.blog-hero-head > p { max-width: 400px; color: var(--muted); margin: 0; }

.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--r-xl); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-featured-media { display: block; min-height: 100%; }
.post-featured-media:hover .post-cover-art { transform: rotate(-3deg) scale(1.03); }
.post-featured-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: clamp(28px, 4vw, 52px); }
.post-featured-body .post-meta-top { justify-content: flex-start; }
.post-featured h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin-bottom: 12px; }
.post-featured h2 a:hover { color: var(--primary); }
.post-featured p { color: var(--text); font-size: 16px; }
.post-featured .post-author { margin: 8px 0 22px; }

.section--blog { padding-top: 48px; }
.blog-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: none; }
.blog-cats::-webkit-scrollbar { display: none; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; transition: .2s; }
.blog-cats a i { color: var(--tone, var(--primary)); font-size: 17px; }
.blog-cats a:hover { border-color: var(--ink); }
.blog-cats a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-cats a.is-active i { color: var(--lime); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card:hover .post-cover-art { transform: rotate(-3deg) scale(1.04); }
.post-card-media { display: block; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.post-card h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
.post-card h2 a:hover { color: var(--primary); }
.post-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .post-author { margin-top: auto; }
.blog-empty { color: var(--muted); }

.blog-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.side-card h3 { font-size: 18px; margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.side-card--dark { background: var(--ink); border-color: var(--ink); color: #C9C9DD; }
.side-card--dark h3 { color: #fff; font-size: 22px; }
.side-card--dark p { color: #B8B8CC; }
.side-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 24px; margin-bottom: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a, .post-tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--text); transition: background .2s, color .2s; }
.tag-cloud a:hover, .post-tags a:hover { background: var(--lime); color: var(--ink); }
.side-newsletter { display: flex; flex-direction: column; gap: 8px; }
.side-newsletter input { height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; outline: 0; }
.side-newsletter input:focus { border-color: var(--primary); }

/* Yazı ------------------------------------------------------------------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 110; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--pink), var(--lime)); }

.container--narrow { max-width: 880px; }
.post-head { padding: 28px 0 0; background: linear-gradient(180deg, var(--soft), #fff 70%); }
.post-head h1 { font-size: clamp(32px, 4.8vw, 56px); letter-spacing: -.035em; line-height: 1.05; margin: 16px 0 14px; }
.post-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--text); margin-bottom: 26px; }
.post-byline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.post-facts { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.post-facts li { display: flex; align-items: center; gap: 6px; }

.post-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; gap: 56px; padding-block: 56px 72px; }
.post-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 14px; }
.toc-card { padding: 18px; border-radius: var(--r-lg); background: var(--soft); }
.toc-title { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.toc-card ol { display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc-card a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: var(--muted); border-left: 2px solid transparent; transition: .2s; }
.toc-card a:hover { color: var(--ink); background: #fff; }
.toc-card a.is-active { color: var(--ink); font-weight: 700; background: #fff; border-left-color: var(--primary); }
.share-card { padding: 0 4px; }
.share-card p { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.share-card div { display: flex; gap: 6px; }
.share-card a, .share-card button { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--ink); font-size: 16px; transition: .2s; }
.share-card a:hover, .share-card button:hover { background: var(--ink); color: #fff; }

.prose { font-size: 18px; line-height: 1.75; color: #2E2E44; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose > p:first-child::first-letter { float: left; font-family: var(--f-display); font-weight: 800; font-size: 3.4em; line-height: .9; margin: 6px 12px 0 0; color: var(--primary); }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.025em; margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 21px; margin: 1.5em 0 .4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(91, 75, 255, .35); }
.prose a:hover { text-decoration-color: var(--primary); }
.prose ul, .prose ol { padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 3px #F0FFC2; }
.prose blockquote { margin: 1.6em 0; padding: 24px 28px; border-radius: var(--r-lg); background: var(--ink); color: #fff; font-family: var(--f-serif); font-style: italic; font-size: 26px; line-height: 1.35; position: relative; }
.prose blockquote::before { content: "“"; position: absolute; top: -18px; left: 20px; font-size: 80px; line-height: 1; color: var(--lime); font-family: var(--f-serif); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ink); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) { background: var(--soft); }
.prose td:last-child { color: var(--ink); font-weight: 600; }

.post-cta { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 48px; padding: 24px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--primary-50), #F4FFD6); }
.post-cta-art .pv { border-radius: var(--r); background: #fff; }
.post-cta h2 { font-size: 22px; margin: 10px 0 6px; }
.post-cta p { font-size: 14.5px; color: var(--text); margin-bottom: 14px; }
.post-cta-actions { display: flex; align-items: center; gap: 16px; }
.post-cta-actions strong { font-family: var(--f-display); font-size: 26px; color: var(--ink); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.author-box { display: flex; gap: 20px; margin-top: 32px; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.author-box small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); }
.author-box strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--ink); }
.author-box span { font-size: 14px; color: var(--muted); }
.author-box p { margin: 10px 0 0; font-size: 15px; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
    .post-layout { grid-template-columns: minmax(0, 720px); }
    .post-toc { position: static; }
}
@media (max-width: 900px) {
    .post-featured { grid-template-columns: 1fr; }
    .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .blog-side { grid-template-columns: 1fr; }
    .post-cover--hero { aspect-ratio: 16 / 9; }
    .post-cover--hero .post-cover-art { width: 60%; }
}
@media (max-width: 640px) {
    .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
    .prose { font-size: 17px; }
    .prose blockquote { font-size: 21px; padding: 22px; }
    .post-cta { grid-template-columns: 1fr; }
    .post-cta-art { max-width: 240px; }
    .author-box { flex-direction: column; }
    .post-layout { padding-block: 36px 56px; }
}

/* Yüklenmiş kapak görseli (admin > Blog) */
.post-cover--img::before { display: none; }
.post-cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Yazı içi görseller (admin editöründen eklenen <figure>) */
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose > img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(11, 11, 26, .35); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* Yazı içi "Bu yazıyla ilgili" kutusu (ilgili blog yazıları) */
.prose .post-related { margin: 1.8em 0; padding: 18px 22px; border-radius: 18px; background: #F4F2FF; border-left: 4px solid var(--primary); }
.prose .post-related > strong { display: block; margin-bottom: 6px; font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.prose .post-related ul { margin: 0; padding-left: 18px; }
.prose .post-related li { margin: 4px 0; }
.prose .post-related a { font-weight: 700; }
.prose figure figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 700; }