/* ==========================================================================
   Bulutix B3 — blog (style.css üzerine)
   ========================================================================== */

/* Blog sayfalarında ana sayfanın ağır efektleri yok */
.blog-page .cursor, .blog-page .grain { display: none; }

/* Koyu başlık alanı */
.b-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff;
  padding: 150px 0 90px;
}
.b-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 85% 30%, rgba(2, 173, 238, .22), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(0, 119, 168, .25), transparent 70%);
}
.b-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 80% at 70% 40%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 15%, transparent 75%);
}
.b-hero-logo { position: absolute; z-index: -1; right: -4%; top: 50%; width: min(46vw, 620px); transform: translateY(-50%) rotate(-6deg); opacity: .07; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); margin-bottom: 28px; }
.crumbs a { color: rgba(255, 255, 255, .75); transition: color .3s; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span[aria-hidden] { opacity: .5; }
.b-hero h1 { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; max-width: 980px; }
.b-hero h1 .accent { color: var(--cyan); }
.b-hero-sub { margin-top: 26px; max-width: 680px; font-size: clamp(18px, 1.5vw, 21px); color: #A9BED1; font-weight: 300; }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.b-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.b-meta svg { color: var(--cyan); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(2, 173, 238, .16); color: var(--cyan-m); box-shadow: inset 0 0 0 1px rgba(2, 173, 238, .35); }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Makale
   ========================================================================== */
.post { padding: 80px 0 40px; }
.post-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.toc { position: sticky; top: 110px; font-size: 14px; }
.toc-title { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; display: block; }
.toc ol { counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: block; padding: 8px 0 8px 18px; color: var(--muted); line-height: 1.4; transition: color .3s; }
.toc a::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--cyan); transform: scaleY(0); transition: transform .4s var(--ease); }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); font-weight: 600; }
.toc a.is-active::before { transform: scaleY(1); }
.toc-cta { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--navy); color: #fff; }
.toc-cta img { width: 40px; height: auto; margin-bottom: 12px; }
.toc-cta p { font-size: 14px; color: #C3D4E3; margin-bottom: 14px; }
.toc-cta a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan); }
.toc-cta a:hover { color: #fff; }

.prose { max-width: 740px; font-size: 18px; line-height: 1.78; color: #26405A; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--navy); scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.8em; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); scroll-margin-top: 100px; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { color: var(--cyan-d); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .3s; }
.prose a:hover { color: var(--navy); }
.prose code { font-family: 'IBM Plex Mono', monospace; font-size: .86em; padding: 2px 7px; border-radius: 6px; background: var(--cyan-l); color: var(--cyan-d); }
.prose ul, .prose ol { padding: 0; }
.prose li { position: relative; padding-left: 30px; }
.prose li + li { margin-top: .5em; }
.prose ul li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-l); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 11px; line-height: 22px; text-align: center; }
.prose .lead { font-size: 21px; line-height: 1.6; color: var(--navy); font-weight: 400; }
.note { padding: 20px 24px; border-radius: 18px; background: var(--soft); box-shadow: inset 3px 0 0 var(--cyan), inset 0 0 0 1px var(--line-c); font-size: 17px; }
.b3-box { position: relative; overflow: hidden; isolation: isolate; padding: 28px 30px 26px; border-radius: 24px; background: var(--navy); color: #C3D4E3; font-size: 17px; line-height: 1.7; margin-top: 1.8em !important; margin-bottom: .6em; }
.b3-box::after { content: ''; position: absolute; z-index: -1; right: -120px; top: -140px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(2, 173, 238, .35), transparent 65%); }
.b3-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-m); }
.b3-box-head img { width: 34px; height: auto; }
.b3-box strong { color: #fff; }
.b3-box a { color: var(--cyan); }
.b3-box a:hover { color: #fff; }
.b3-box-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--cyan) !important; text-decoration: none !important; }
.b3-box-link svg { transition: transform .4s var(--ease); }
.b3-box-link:hover svg { transform: translateX(4px); }

.post-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 12px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.share { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; transition: background-color .3s, color .3s; }
.share:hover { background: var(--cyan-d); }
.share.is-copied { background: var(--cyan); color: #04223A; }

/* Makale sonu CTA */
.b-cta { padding: 40px 0 120px; }
.b-cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: clamp(36px, 6vw, 72px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 40px; }
.b-cta-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 90% at 90% 20%, rgba(2, 173, 238, .3), transparent 60%); }
.b-cta-card .bg-logo { position: absolute; z-index: -1; right: -60px; bottom: -80px; width: 380px; opacity: .08; }
.b-cta-card h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.b-cta-card p { margin-top: 16px; color: #A9BED1; max-width: 560px; }
.b-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* İlgili yazılar & liste kartları */
.related { padding: 0 0 120px; }
.related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.related-head h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.see-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan-d); white-space: nowrap; }
.see-all svg { transition: transform .4s var(--ease); }
.see-all:hover svg { transform: translateX(4px); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-c), 0 30px 60px -40px rgba(11, 37, 64, .35); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(2, 173, 238, .45), 0 40px 80px -40px rgba(2, 173, 238, .5); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: var(--navy); display: grid; place-items: center; color: var(--cyan); }
.thumb::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.thumb::after { content: ''; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow, rgba(2, 173, 238, .45)), transparent 65%); transition: transform .8s var(--ease-out); }
.card:hover .thumb::after { transform: scale(1.25); }
.thumb svg { width: 30%; max-width: 92px; height: auto; transition: transform .8s var(--ease-out); filter: drop-shadow(0 10px 30px rgba(2, 173, 238, .5)); }
.card:hover .thumb svg { transform: scale(1.08) rotate(-4deg); }
.thumb-num { position: absolute; left: 18px; top: 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255, 255, 255, .45); }
.thumb[data-cat="veritabani"] { --glow: rgba(111, 208, 245, .5); background: #0A2A47; }
.thumb[data-cat="veri-guvenligi"] { --glow: rgba(2, 173, 238, .55); background: #071E33; }
.thumb[data-cat="ag-guvenligi"] { --glow: rgba(0, 119, 168, .7); background: #0C2238; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.card-cat { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-d); }
.card h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted-c); }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted-2); }
.card-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease); }
.card:hover .card-arrow { background: var(--cyan); color: #04223A; box-shadow: none; transform: rotate(-45deg); }
.card a.card-link::after { content: ''; position: absolute; inset: 0; }

/* Blog ana sayfası */
.blog-list { padding: 70px 0 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .35s, color .35s, box-shadow .35s; }
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.filters .count { opacity: .55; margin-left: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.card.is-featured .thumb { aspect-ratio: auto; min-height: 340px; }
.card.is-featured .card-body { padding: 44px; justify-content: center; }
.card.is-featured h3 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.12; }
.card.is-featured p { font-size: 17px; }
.card.is-hidden { display: none; }

/* Ana sayfa blog bölümü */
.home-blog { padding: 140px 0 40px; }
.home-blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.home-blog-head .h2 { max-width: 760px; }
.home-blog .cards { grid-template-columns: repeat(4, 1fr); }
.home-blog .card h3 { font-size: 19px; }
.home-blog .card p { display: none; }

/* Görünürlük animasyonu (blog sayfaları, IntersectionObserver) */
.blog-page [data-reveal] { transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.blog-page [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .home-blog .cards { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .b-hero { padding: 120px 0 64px; }
  .post { padding: 48px 0 24px; }
  .prose { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .card.is-featured { grid-template-columns: 1fr; }
  .card.is-featured .thumb { min-height: 220px; }
  .card.is-featured .card-body { padding: 26px; }
  .b-cta-card { grid-template-columns: 1fr; border-radius: 28px; }
  .home-blog { padding: 96px 0 24px; }
  .home-blog .cards { grid-template-columns: 1fr; }
  .related-head { flex-direction: column; align-items: flex-start; }
}
