:root {
  --red: #E3172F;
  --red-dark: #9B0F22;
  --dark: #0A0A0A;
  --dark2: #131313;
  --card: #1A1A1A;
  --text: #EDEDED;
  --muted: #A3A3A3;
  --line: rgba(255, 255, 255, 0.10);
  --display: 'Nunito', sans-serif;
  --brand: 'Syne', sans-serif;
  --body: 'Nunito', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--red-dark); color: #fff; }

/* header */
.bh { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem clamp(1rem, 4vw, 2.5rem); background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bh-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--brand); font-weight: 800; font-size: 1.05rem; }
.bh-logo em { font-style: normal; color: var(--red); }
.bh-nav { display: flex; align-items: center; gap: 1.2rem; font-weight: 700; font-size: 0.95rem; }
.bh-nav a { text-decoration: none; color: var(--muted); }
.bh-nav a:hover { color: #fff; }
.bh-nav .bh-btn { background: var(--red); color: #fff; padding: 0.45rem 1rem; border-radius: 999px; }
@media (max-width: 640px) { .bh-logo span { display: none; } .bh-nav { gap: 0.8rem; font-size: 0.88rem; } }

/* post */
.post { max-width: 780px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.post-cat { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(227, 23, 47, 0.4); padding: 0.2rem 0.7rem; border-radius: 999px; }
.post-head h1, .index-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0.8rem 0; text-wrap: balance; }
.post-meta { color: var(--muted); font-size: 0.92rem; }

.tldr { margin: 2rem 0; padding: 1.3rem 1.5rem; background: linear-gradient(135deg, rgba(227, 23, 47, 0.14), rgba(155, 15, 34, 0.05)); border: 1px solid rgba(227, 23, 47, 0.35); border-left: 5px solid var(--red); border-radius: 14px; }
.tldr-label, .toc-label { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.tldr p { font-size: 1.08rem; font-weight: 600; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 2.5rem; }
.toc ol { padding-left: 1.2rem; font-size: 0.95rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: #fff; }

.post-body h2, .faq h2, .related h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 1.8rem); line-height: 1.25; margin: 2.8rem 0 1rem; scroll-margin-top: 80px; }
.post-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { margin: 0 0 1.2rem 1.4rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: #fff; }
.post-body a { color: #fff; text-decoration-color: var(--red); text-underline-offset: 3px; }

.formula { font-family: var(--mono); background: var(--dark2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0 1.5rem; font-size: 1rem; line-height: 1.9; overflow-x: auto; white-space: pre-wrap; }
.formula b { color: var(--red); font-weight: 600; }
.note { background: var(--card); border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.note::before { content: "💡 Funda Hoca'dan not"; display: block; font-family: var(--display); font-weight: 700; color: var(--red); margin-bottom: 0.3rem; }
.warn { background: rgba(227, 23, 47, 0.08); border: 1px solid rgba(227, 23, 47, 0.3); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.warn::before { content: "⚠️ Sık yapılan hata"; display: block; font-family: var(--display); font-weight: 700; color: var(--red); margin-bottom: 0.3rem; }
.example { border-left: 3px solid var(--red); padding: 0.4rem 0 0.4rem 1.1rem; margin: 1.5rem 0; }
.example::before { content: "Örnek"; display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.8rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.65rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--card); font-family: var(--display); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* çizimler */
figure { margin: 2rem 0; background: #F6F1E7; border-radius: 18px; padding: 1rem; color: #1A1A1A; }
figure svg { display: block; width: 100%; height: auto; }
figcaption { font-size: 0.9rem; color: #555; text-align: center; margin-top: 0.6rem; font-style: italic; }
figure.chart { background: var(--card); color: var(--text); border: 1px solid var(--line); }
figure.chart figcaption { color: var(--muted); }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.2rem; margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; font-size: 0.95rem; color: var(--muted); }
.author-avatar { font-size: 2.2rem; line-height: 1; background: var(--card); border-radius: 50%; padding: 0.6rem; }
.author-name { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.05rem; }

.cta { margin-top: 1.5rem; padding: 1.6rem; border-radius: 18px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
.cta-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin-bottom: 0.3rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.7rem 1.3rem; border-radius: 999px; background: #fff; color: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.7); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(227, 23, 47, 0.6); transform: translateY(-3px); }
.card-emoji { font-size: 1.8rem; }
.card-cat { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.card-more { font-size: 0.85rem; font-weight: 700; }

/* index */
.blog-index { max-width: 1100px; margin: 0 auto; padding: 2.5rem 16px 4rem; }
.index-head { max-width: 720px; margin-bottom: 1rem; }
.index-head p { color: var(--muted); font-size: 1.1rem; }
.grad { background: linear-gradient(135deg, #E3172F, #FF8A8A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.cat-jump a { text-decoration: none; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; }
.cat-jump a:hover { border-color: var(--red); }
.cat-section { margin-top: 3rem; scroll-margin-top: 80px; }
.cat-section h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.cat-desc { color: var(--muted); margin-bottom: 1.2rem; }

.bf { border-top: 1px solid var(--line); padding: 2rem 16px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.bf a { text-decoration: none; }
.bf a:hover { color: #fff; }
.bf-copy { margin-top: 0.4rem; font-size: 0.8rem; }
