/* ============================================
 * PREMIUM BLOG CSS
 * Apple/Stripe/Linear/GitHub Docs/Notion inspired
 * ============================================ */

/* Reading Progress Bar */
.reading-progress{position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,#1d4ed8,#3b82f6,#7cd7ff);z-index:200;width:0;transition:width .1s ease-out;box-shadow:0 1px 6px rgba(29,78,216,.4)}

/* Article container - 840-880px genişlik */
.blog-detail{max-width:880px;margin:0 auto;background:transparent}
.blog-detail article,.blog-detail{padding:0}

/* Blog head */
.bd-head{padding:32px 0 20px}
.bd-head h1{font-family:'Sora',-apple-system,sans-serif;font-size:44px;font-weight:800;line-height:1.15;letter-spacing:-.5px;color:#0e1b33;margin:12px 0 16px}
.bd-cat{display:inline-flex;padding:5px 12px;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#1e40af;font-size:12px;font-weight:700;border-radius:100px;letter-spacing:.4px;text-transform:uppercase;border:1px solid #bfdbfe}
.bd-lead{font-size:19px;line-height:1.6;color:#475569;font-weight:400;margin:8px 0 20px}

/* Meta Bar */
.blog-meta-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:16px 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;font-size:13px;color:#64748b;margin-top:12px}
.bmb-item{display:inline-flex;align-items:center;gap:6px;color:#475569}
.bmb-item b{color:#0e1b33;font-weight:700}
.bmb-item svg{width:14px;height:14px;color:#94a3b8}
.bmb-dot{color:#cbd5e1}
.bmb-update{color:#059669}
.bmb-update svg{color:#10b981}

/* Cover */
.bd-cover{max-width:720px;margin:20px auto 0;padding:0;border-radius:16px;overflow:hidden;aspect-ratio:1/1;background:#f1f5f9}
.bd-cover img{width:100%;height:100%;object-fit:cover;display:block}

/* AI Summary (GEO) */
.ai-summary{margin:28px 0 20px;padding:22px 26px;background:linear-gradient(135deg,#fef3c7 0%,#fef9e7 100%);border:1px solid #fde68a;border-left:5px solid #d97706;border-radius:12px}
.ais-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ais-icon{width:32px;height:32px;background:linear-gradient(135deg,#d97706,#f59e0b);color:#fff;border-radius:8px;display:grid;place-items:center;box-shadow:0 4px 10px -3px rgba(217,119,6,.4)}
.ais-icon svg{width:16px;height:16px}
.ais-head b{font-family:'Sora',sans-serif;font-size:15px;color:#78350f;font-weight:800}
.ais-head small{color:#92400e;font-size:11.5px;margin-left:auto}
.ais-text{font-size:14.5px;line-height:1.7;color:#451a03;margin:0;font-weight:500}

/* Table of Contents */
.blog-toc{margin:24px 0 32px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.toc-summary{list-style:none;display:flex;align-items:center;gap:12px;padding:14px 20px;cursor:pointer;user-select:none;background:#fff;border-bottom:1px solid transparent;transition:.2s}
.toc-summary::-webkit-details-marker{display:none}
.toc-summary:hover{background:#f8fafc}
.toc-icon{width:28px;height:28px;background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border-radius:8px;display:grid;place-items:center;flex:none}
.toc-icon svg{width:14px;height:14px}
.toc-title{font-weight:800;font-size:14px;color:#0e1b33;flex:1;font-family:'Sora',sans-serif}
.toc-caret{color:#94a3b8;transition:transform .2s}
.blog-toc[open] .toc-caret{transform:rotate(180deg)}
.blog-toc[open] .toc-summary{border-bottom-color:#e2e8f0}
.toc-nav{padding:12px 20px 16px;max-height:400px;overflow-y:auto}
.toc-list{list-style:none;padding:0;margin:0;counter-reset:tc}
.toc-list li{padding:0}
.toc-list li a{display:block;padding:7px 10px 7px 30px;color:#475569;text-decoration:none;font-size:13.5px;line-height:1.4;border-radius:6px;position:relative;transition:.2s;border-left:2px solid transparent;margin-left:-2px}
.toc-list li.toc-h3 a{padding-left:44px;font-size:13px;color:#64748b}
.toc-list li a::before{counter-increment:tc;content:counter(tc);position:absolute;left:8px;top:8px;font-size:11px;font-weight:700;color:#94a3b8;font-family:'Sora',sans-serif}
.toc-list li.toc-h3 a::before{left:24px}
.toc-list li a:hover{background:#eff6ff;color:#1d4ed8}
.toc-list li a.active{background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8;font-weight:700;border-left-color:#1d4ed8}
.toc-list li a.active::before{color:#1d4ed8}

/* Blog content - premium typography */
.blog-content{font-size:17px;line-height:1.9;color:#334155;padding:8px 0 32px;font-weight:400}
.blog-content > *:first-child{margin-top:0}
.blog-content p{margin:0 0 24px;line-height:1.9;color:#334155}
.blog-content h2{font-family:'Sora',sans-serif;font-size:32px;font-weight:800;line-height:1.25;color:#0e1b33;margin:56px 0 20px;letter-spacing:-.4px;scroll-margin-top:80px}
.blog-content h3{font-family:'Sora',sans-serif;font-size:24px;font-weight:700;line-height:1.3;color:#0e1b33;margin:44px 0 16px;letter-spacing:-.2px;scroll-margin-top:80px}
.blog-content h4{font-family:'Sora',sans-serif;font-size:20px;font-weight:700;line-height:1.35;color:#0e1b33;margin:32px 0 14px;scroll-margin-top:80px}
.blog-content ul,.blog-content ol{margin:0 0 24px;padding-left:28px}
.blog-content li{margin:0 0 10px;line-height:1.85}
.blog-content li::marker{color:#1d4ed8;font-weight:700}
.blog-content a:not(.internal-link):not(.brg-list a){color:#1d4ed8;text-decoration:underline;text-decoration-color:rgba(29,78,216,.3);text-underline-offset:3px;transition:.2s}
.blog-content a:not(.internal-link):not(.brg-list a):hover{color:#1e40af;text-decoration-color:#1d4ed8}
.blog-content strong{color:#0e1b33;font-weight:700}
.blog-content em{font-style:italic;color:#334155}

/* Blockquote - premium */
.blog-content blockquote{margin:32px 0;padding:24px 28px 24px 32px;background:linear-gradient(135deg,#f8fafc,#f1f5f9);border-left:4px solid #1d4ed8;border-radius:0 12px 12px 0;font-size:18px;line-height:1.7;color:#334155;font-style:italic;position:relative}
.blog-content blockquote::before{content:'"';position:absolute;top:-8px;left:16px;font-size:64px;color:#1d4ed8;font-family:Georgia,serif;line-height:1;opacity:.3}
.blog-content blockquote p:last-child{margin-bottom:0}

/* Code blocks - premium */
.blog-content code:not(pre code){background:#f1f5f9;color:#c026d3;padding:2px 8px;border-radius:5px;font-size:.9em;font-family:'JetBrains Mono','Fira Code',Consolas,monospace;font-weight:500;border:1px solid #e2e8f0}
.blog-content pre{margin:24px 0;padding:20px 24px;background:#0f172a;color:#e2e8f0;border-radius:12px;overflow-x:auto;font-family:'JetBrains Mono','Fira Code',Consolas,monospace;font-size:14px;line-height:1.7;box-shadow:0 8px 24px -8px rgba(15,23,42,.4);border:1px solid #1e293b}
.blog-content pre code{background:none;color:inherit;padding:0;border:none;font-size:inherit;font-weight:400}

/* Tables - responsive */
.blog-content .table-responsive,.blog-content table{width:100%;margin:28px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.blog-content table{border-collapse:collapse;font-size:14.5px;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04);border:1px solid #e2e8f0}
.blog-content th{background:linear-gradient(135deg,#f8fafc,#f1f5f9);color:#0e1b33;padding:12px 16px;text-align:left;font-weight:700;font-size:13px;letter-spacing:.3px;border-bottom:2px solid #e2e8f0}
.blog-content td{padding:12px 16px;border-top:1px solid #f1f5f9;color:#334155}
.blog-content tr:nth-child(even) td{background:#fafbfc}

/* Images inside content */
.blog-content img{max-width:100%;height:auto;border-radius:12px;margin:24px 0;box-shadow:0 8px 24px -8px rgba(15,23,42,.15)}

/* HR */
.blog-content hr{margin:40px 0;border:none;border-top:1px solid #e2e8f0}

/* Internal Link */
.blog-content .internal-link{color:#1d4ed8;text-decoration:underline;text-decoration-color:rgba(29,78,216,.35);text-decoration-thickness:1.5px;text-underline-offset:3px;font-weight:600;transition:.2s}
.blog-content .internal-link:hover{color:#1e40af;text-decoration-color:#1d4ed8;background:rgba(29,78,216,.06);border-radius:3px;padding:0 2px;margin:0 -2px}

/* Series Block */
.blog-series{margin:40px 0 32px;padding:28px 32px;background:linear-gradient(135deg,#f0fdf4 0%,#ecfdf5 100%);border:1px solid #bbf7d0;border-left:5px solid #059669;border-radius:14px}
.bs-head{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.bs-icon{width:36px;height:36px;background:linear-gradient(135deg,#059669,#10b981);color:#fff;border-radius:9px;display:grid;place-items:center;flex:none}
.bs-icon svg{width:18px;height:18px}
.bs-title{font-family:'Sora',sans-serif;font-size:19px;font-weight:800;color:#065f46;margin:0}
.bs-cluster{padding:4px 10px;background:#fff;color:#059669;font-size:11px;font-weight:700;border-radius:100px;border:1px solid #bbf7d0;margin-left:auto}
.bs-list{list-style:none;padding:0;margin:0;counter-reset:bs;display:grid;gap:8px}
.bs-list li{padding:0}
.bs-list li a{display:flex;align-items:center;gap:14px;padding:12px 18px;background:#fff;border:1px solid #bbf7d0;border-radius:10px;text-decoration:none;color:#0e1b33;font-weight:600;font-size:14.5px;transition:.25s}
.bs-list li a:hover{background:linear-gradient(135deg,#059669,#10b981);color:#fff;border-color:#059669;transform:translateX(4px);box-shadow:0 8px 20px -6px rgba(5,150,105,.4)}
.bs-num{width:28px;height:28px;background:#f0fdf4;color:#059669;border-radius:8px;display:grid;place-items:center;font-family:'Sora',sans-serif;font-weight:800;font-size:13px;flex:none;transition:.25s}
.bs-list li a:hover .bs-num{background:rgba(255,255,255,.2);color:#fff}
.bs-item.active{display:flex;align-items:center;gap:14px;padding:12px 18px;background:linear-gradient(135deg,#059669,#10b981);color:#fff;border-radius:10px;font-weight:700;font-size:14.5px}
.bs-current{width:28px;height:28px;background:rgba(255,255,255,.25);border-radius:8px;display:grid;place-items:center;font-family:'Sora',sans-serif;font-weight:800;font-size:13px;flex:none}
.bs-title-cur{flex:1}
.bs-tag{background:rgba(255,255,255,.25);padding:3px 8px;border-radius:100px;font-size:11px;font-weight:700}

/* CTA Card - Aydınlık premium tasarım (koyu değil, kontrast yüksek) */
.blog-cta{margin:40px 0 32px;background:linear-gradient(135deg,#eff6ff 0%,#faf5ff 100%);border:1px solid #dbeafe;border-radius:18px;overflow:hidden;position:relative;box-shadow:0 12px 40px -16px rgba(29,78,216,.2)}
.blog-cta::before{content:'';position:absolute;top:-80px;right:-80px;width:280px;height:280px;background:radial-gradient(circle,rgba(29,78,216,.08) 0%,transparent 70%);pointer-events:none}
.blog-cta::after{content:'';position:absolute;bottom:-100px;left:-100px;width:300px;height:300px;background:radial-gradient(circle,rgba(167,139,250,.08) 0%,transparent 70%);pointer-events:none}
.bcta-inner{position:relative;padding:40px 44px;text-align:center;z-index:1}
.bcta-icon{width:64px;height:64px;background:linear-gradient(135deg,#1d4ed8,#7c3aed);border-radius:18px;display:grid;place-items:center;margin:0 auto 20px;color:#fff;box-shadow:0 12px 30px -8px rgba(29,78,216,.4)}
.bcta-icon svg{width:30px;height:30px}
.bcta-title{font-family:'Sora',sans-serif;font-size:26px;font-weight:800;color:#0e1b33;margin:0 0 12px;letter-spacing:-.4px;line-height:1.2}
.bcta-desc{font-size:16px;color:#475569;margin:0 0 26px;line-height:1.6;max-width:520px;margin-left:auto;margin-right:auto}
.bcta-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.bcta-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:100px;font-weight:700;font-size:14.5px;text-decoration:none;transition:.25s;border:2px solid transparent;white-space:nowrap}
.bcta-btn svg{width:16px;height:16px}
.bcta-wa{background:#25d366;color:#fff;box-shadow:0 6px 16px -4px rgba(37,211,102,.4)}
.bcta-wa:hover{background:#128c7e;transform:translateY(-2px);box-shadow:0 12px 28px -8px rgba(37,211,102,.5)}
.bcta-quote{background:#fff;color:#0e1b33;border-color:#e2e8f0;box-shadow:0 4px 12px -4px rgba(15,23,42,.08)}
.bcta-quote:hover{background:#f8fafc;border-color:#1d4ed8;color:#1d4ed8;transform:translateY(-2px);box-shadow:0 12px 28px -8px rgba(29,78,216,.2)}
.bcta-analysis{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;box-shadow:0 8px 20px -6px rgba(29,78,216,.4)}
.bcta-analysis:hover{background:linear-gradient(135deg,#1e40af,#2563eb);transform:translateY(-2px);box-shadow:0 12px 28px -8px rgba(29,78,216,.5)}

/* Author Box */
.author-box{margin:40px 0 32px;padding:26px 30px;background:linear-gradient(135deg,#fafbfc,#f8fafc);border:1px solid #e2e8f0;border-radius:14px;display:flex;gap:20px;align-items:flex-start;box-shadow:0 4px 12px -4px rgba(15,23,42,.05)}
.ab-avatar{flex:none}
.ab-avatar img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.ab-avatar-fallback{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#1d4ed8,#7c3aed);color:#fff;display:grid;place-items:center;font-family:'Sora',sans-serif;font-weight:800;font-size:28px;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.ab-body{flex:1;min-width:0}
.ab-name{font-family:'Sora',sans-serif;font-size:17px;font-weight:800;color:#0e1b33;margin-bottom:2px}
.ab-role{font-size:13px;color:#1d4ed8;font-weight:600;margin-bottom:8px}
.ab-bio{font-size:14px;color:#475569;line-height:1.65;margin:0 0 12px}
.ab-social{display:flex;gap:8px}
.ab-social a{width:34px;height:34px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;display:grid;place-items:center;color:#475569;transition:.2s;text-decoration:none}
.ab-social a:hover{background:#0e1b33;color:#fff;border-color:#0e1b33;transform:translateY(-2px)}
.ab-social a svg{width:15px;height:15px}

/* Social Share */
.social-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:20px 0;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;margin:32px 0 24px}
.ss-label{font-size:13px;color:#64748b;font-weight:700;margin-right:6px}
.ss-btn{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;text-decoration:none;transition:.25s;cursor:pointer;border:1px solid #e2e8f0;background:#fff;color:#475569}
.ss-btn svg{width:16px;height:16px}
.ss-btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px -4px rgba(0,0,0,.15)}
.ss-fb:hover{background:#1877f2;color:#fff;border-color:#1877f2}
.ss-li:hover{background:#0a66c2;color:#fff;border-color:#0a66c2}
.ss-x:hover{background:#0e1b33;color:#fff;border-color:#0e1b33}
.ss-wa:hover{background:#25d366;color:#fff;border-color:#25d366}
.ss-copy:hover{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.ss-copy.copied{background:#059669!important;color:#fff!important;border-color:#059669!important}

/* Rating */
.blog-rating{margin:24px 0 20px;padding:26px 30px;background:#fafbfc;border:1px solid #e2e8f0;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:20px 24px;align-items:center}
.br-stars-wrap{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.br-stars{display:flex;gap:4px}
.br-star{width:36px;height:36px;background:none;border:none;color:#e2e8f0;cursor:pointer;padding:0;transition:.2s;border-radius:6px;display:grid;place-items:center}
.br-star svg{width:22px;height:22px;fill:currentColor;stroke:none}
.br-star:hover,.br-star.active{color:#f59e0b;transform:scale(1.15)}
.br-avg{display:flex;align-items:baseline;gap:6px;padding-left:14px;border-left:2px solid #e2e8f0}
.br-avg-num{font-family:'Sora',sans-serif;font-size:24px;font-weight:800;color:#0e1b33;line-height:1}
.br-avg-count{font-size:12.5px;color:#64748b;font-weight:600}
.br-avg-count .br-count-num{font-weight:800;color:#0e1b33}
.br-vote{display:flex;align-items:center;gap:10px;font-size:14px;color:#475569;font-weight:600;justify-content:flex-end}
.br-vote-label{margin-right:4px}
.br-thumb{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;background:#fff;border:1px solid #e2e8f0;border-radius:100px;cursor:pointer;transition:.2s;color:#475569;font-weight:700;font-size:13px}
.br-thumb svg{width:16px;height:16px;stroke:currentColor;fill:none}
.br-thumb-count{font-family:'Sora',sans-serif;font-weight:800;font-size:13px;min-width:14px;text-align:center}
.br-thumb:hover{transform:translateY(-2px);box-shadow:0 6px 16px -4px rgba(0,0,0,.15)}
.br-up:hover,.br-up.active{background:#059669;color:#fff;border-color:#059669}
.br-down:hover,.br-down.active{background:#dc2626;color:#fff;border-color:#dc2626}
.br-result{grid-column:1/-1;padding:12px 16px;background:#d1fae5;color:#065f46;border-radius:8px;font-size:13.5px;font-weight:700;text-align:center}
@media(max-width:640px){
  .blog-rating{grid-template-columns:1fr;padding:20px}
  .br-stars-wrap{justify-content:center}
  .br-vote{justify-content:center;flex-wrap:wrap}
}

/* Related Guides (updated for consistency) */
.blog-related-guides{margin:40px 0 32px;padding:28px 32px;background:linear-gradient(135deg,#eff6ff 0%,#f0f9ff 100%);border:1px solid #dbeafe;border-radius:14px;border-left:5px solid #1d4ed8;box-shadow:0 8px 24px -12px rgba(29,78,216,.15)}
.brg-title{font-family:'Sora',sans-serif;font-size:20px;font-weight:800;color:#0e1b33;margin:0 0 16px;display:flex;align-items:center;gap:10px;letter-spacing:-.3px}
.brg-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.brg-list li{padding:0}
.brg-list li::before{content:none}
.brg-list a{display:flex;align-items:center;gap:10px;padding:11px 16px;background:#fff;border:1px solid #dbeafe;border-radius:8px;color:#0e1b33;font-weight:600;font-size:14.5px;text-decoration:none;transition:.25s;line-height:1.4}
.brg-list a::before{content:"→";color:#1d4ed8;font-weight:800;transition:transform .25s;flex:none}
.brg-list a:hover{background:linear-gradient(135deg,#1d4ed8,#3b82f6);color:#fff;border-color:#1d4ed8;transform:translateX(4px);box-shadow:0 8px 20px -6px rgba(29,78,216,.4)}
.brg-list a:hover::before{color:#fff;transform:translateX(2px)}

/* Mobile responsive */
@media(max-width:768px){
  .blog-detail{padding:0 4px}
  .bd-head h1{font-size:30px}
  .bd-lead{font-size:16px}
  .blog-content{font-size:16px;line-height:1.85}
  .blog-content h2{font-size:24px;margin:40px 0 16px}
  .blog-content h3{font-size:20px;margin:32px 0 12px}
  .blog-content h4{font-size:17px;margin:24px 0 10px}
  .blog-content p,.blog-content li{line-height:1.8}
  .blog-content blockquote{padding:18px 20px 18px 24px;font-size:16px;margin:24px 0}
  .blog-content pre{padding:14px 16px;font-size:13px;margin:20px 0;border-radius:8px}
  .blog-content table{font-size:13px}
  .blog-content th,.blog-content td{padding:8px 10px}
  .bd-cover{border-radius:10px;margin:16px 0}
  .ai-summary,.blog-toc,.blog-cta,.author-box,.blog-series,.blog-related-guides,.blog-rating{padding:18px 20px;margin:24px 0;border-radius:12px}
  .bcta-title{font-size:19px}
  .bcta-actions{flex-direction:column}
  .bcta-btn{width:100%;justify-content:center}
  .author-box{flex-direction:column;text-align:center;align-items:center}
  .ab-social{justify-content:center}
  .blog-rating{flex-direction:column;gap:14px;text-align:center;padding:20px}
  .br-vote{width:100%;justify-content:center}
  .blog-meta-bar{font-size:12px;gap:6px 8px}
  .bmb-item svg{width:12px;height:12px}
}
