/* ==========================================================================
   BilgiBuldum — genel site stilleri
   ========================================================================== */

/* Yerel fontlar (Google Fonts'a bağımlılık yok: daha hızlı + KVKK dostu) */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url(../fonts/inter-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400 500;src:url(../fonts/jetbrains-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:400 500;src:url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --primary: #6d5efc;
  --primary-600: color-mix(in oklab, var(--primary) 85%, black);
  --primary-soft: color-mix(in oklab, var(--primary) 12%, transparent);
  --primary-softer: color-mix(in oklab, var(--primary) 6%, transparent);
  --accent: #22c1c3;

  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f3f3f8;
  --border: #e7e7ef;
  --border-strong: #d6d6e2;
  --text: #16161f;
  --text-2: #3f3f52;
  --muted: #6c6c80;

  --easy: #16a34a;
  --medium: #d97706;
  --hard: #dc2626;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, .06);
  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 8px 24px -8px rgba(20, 20, 40, .12);
  --shadow-lg: 0 2px 4px rgba(20, 20, 40, .04), 0 24px 48px -12px rgba(20, 20, 40, .22);
  --ring: 0 0 0 4px color-mix(in oklab, var(--primary) 22%, transparent);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0c0c14;
  --bg-soft: #11111b;
  --surface: #151520;
  --surface-2: #1c1c29;
  --border: #262636;
  --border-strong: #34344a;
  --text: #ececf4;
  --text-2: #c4c4d4;
  --muted: #8d8da3;
  --primary-soft: color-mix(in oklab, var(--primary) 22%, transparent);
  --primary-softer: color-mix(in oklab, var(--primary) 10%, transparent);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
kbd {
  font-family: var(--mono); font-size: .72em; padding: .15em .45em; border-radius: 6px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--muted);
}
::selection { background: color-mix(in oklab, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.hide-sm { }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px -6px color-mix(in oklab, var(--primary) 70%, transparent);
}
.btn-primary:hover { background: var(--primary-600); box-shadow: 0 10px 24px -8px color-mix(in oklab, var(--primary) 80%, transparent); }
.btn-ghost { background: var(--surface); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.btn-light { background: #fff; color: #16161f; }
.btn-light:hover { background: #f1f1f7; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 13px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--accent)));
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--primary) 80%, transparent);
}
.brand-logo { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-dd-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 9px;
  color: var(--text-2); font-weight: 500; font-size: .94rem; background: none; border: 0; text-decoration: none !important;
}
.main-nav > a:hover, .nav-dd-btn:hover, .nav-dropdown.open .nav-dd-btn { background: var(--surface-2); color: var(--text); }
.nav-dropdown { position: relative; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 300px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.nav-dropdown.open .nav-dd-menu, .nav-dropdown:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-dropdown:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: none; } }
.nav-dd-menu a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.nav-dd-menu a:hover { background: var(--surface-2); }
.nav-dd-menu strong { display: block; font-weight: 600; font-size: .93rem; }
.nav-dd-menu small { color: var(--muted); font-size: .8rem; }
.dd-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--c); background: color-mix(in oklab, var(--c) 13%, transparent); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; min-width: 210px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--muted); font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.search-trigger span { flex: 1; text-align: left; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch a { padding: 4px 9px; border-radius: 7px; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-decoration: none !important; }
.lang-switch a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: inline; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero, .page-hero, .guide-hero { position: relative; overflow: hidden; isolation: isolate; }
.hero { padding: 96px 0 88px; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; left: 50%; top: -260px; transform: translateX(-80%); background: color-mix(in oklab, var(--c, var(--primary)) 55%, transparent); }
.blob.b2 { width: 440px; height: 440px; right: -120px; top: 40px; background: color-mix(in oklab, var(--accent) 38%, transparent); opacity: .35; }
.hero-bg.soft .blob.b1 { opacity: .28; width: 460px; height: 380px; left: 12%; top: -220px; transform: none; }
.grid-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 22px;
  border-radius: 999px; border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-size: .85rem; font-weight: 500; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--easy); box-shadow: 0 0 0 4px color-mix(in oklab, var(--easy) 20%, transparent); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); margin-bottom: .35em; }
.grad {
  background: linear-gradient(100deg, var(--primary) 10%, color-mix(in oklab, var(--primary) 40%, var(--accent)) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.page-hero .lead, .guide-hero .lead { margin-left: 0; }

.hero-search {
  position: relative; display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 34px auto 0;
  height: 64px; padding: 0 8px 0 20px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within { border-color: color-mix(in oklab, var(--primary) 55%, var(--border)); box-shadow: var(--shadow-lg), var(--ring); }
.hero-search > .icon { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1.08rem; }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search .btn { height: 48px; border-radius: 12px; }
.live-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; max-height: 460px; overflow-y: auto;
}
.popular-terms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.popular-terms a {
  padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  text-decoration: none !important; transition: .2s;
}
.popular-terms a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 36px 0 72px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: .2em; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { justify-content: center; text-align: center; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cat-card {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--c) 45%, var(--border)); }
.cat-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  color: var(--c); background: color-mix(in oklab, var(--c) 13%, transparent);
}
.cat-icon.xl { width: 68px; height: 68px; border-radius: 18px; }
.cat-text { flex: 1; min-width: 0; }
.cat-text strong { display: block; font-weight: 650; }
.cat-text small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.cat-count {
  align-self: flex-start; min-width: 28px; padding: 2px 8px; border-radius: 999px; text-align: center;
  font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2);
}

/* ---------- Guide cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.guide-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c), color-mix(in oklab, var(--c) 30%, var(--accent)));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--c) 35%, var(--border)); }
.guide-card:hover::before { transform: scaleX(1); }
.card-cover { aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.guide-card:hover .card-cover img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.guide-card p { color: var(--muted); font-size: .93rem; line-height: 1.55; margin-bottom: 16px; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .84rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-go { margin-left: auto; color: var(--c); transition: transform .2s; }
.guide-card:hover .card-go { transform: translateX(4px); }

.cat-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--c, var(--primary));
  background: color-mix(in oklab, var(--c, var(--primary)) 12%, transparent); text-decoration: none !important;
}
.cat-pill.lg { font-size: .85rem; padding: 6px 12px; margin-bottom: 18px; }

/* Zorluk göstergesi (3 çubuk) */
.diff { display: inline-flex; align-items: flex-end; gap: 2px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.diff i { display: inline-block; width: 4px; border-radius: 2px; background: var(--border-strong); }
.diff i:nth-child(1) { height: 6px; } .diff i:nth-child(2) { height: 9px; } .diff i:nth-child(3) { height: 12px; margin-right: 6px; }
.diff-easy { color: var(--easy); } .diff-easy i:nth-child(1) { background: var(--easy); }
.diff-medium { color: var(--medium); } .diff-medium i:nth-child(-n+2) { background: var(--medium); }
.diff-hard { color: var(--hard); } .diff-hard i { background: var(--hard); }

/* ---------- How it works ---------- */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; counter-reset: s; }
.how-steps::before {
  content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
}
.how-steps li { position: relative; text-align: center; padding: 20px 18px; }
.how-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px;
  border-radius: 15px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); box-shadow: var(--shadow);
}
.how-num {
  position: absolute; top: 10px; left: calc(50% + 16px); z-index: 2; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800;
}
.how-steps h3 { margin-bottom: .35em; }
.how-steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Split (latest + popular) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.popular-box { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.popular-box h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.popular-box h3 .icon { color: #f59e0b; }
.popular-box ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.popular-box a { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none !important; transition: background .2s; }
.popular-box a:hover { background: var(--surface); }
.popular-box strong { display: block; font-size: .94rem; font-weight: 600; line-height: 1.35; }
.popular-box small { color: var(--muted); font-size: .8rem; }
.rank { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--primary); background: var(--primary-soft); }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 26px; color: #fff;
  background:
    radial-gradient(600px 200px at 90% 0%, color-mix(in oklab, var(--accent) 55%, transparent), transparent),
    linear-gradient(120deg, var(--primary), color-mix(in oklab, var(--primary) 60%, #1b1440));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { padding: 40px 0 44px; border-bottom: 1px solid var(--border); }
.page-hero.center { text-align: center; padding: 90px 0; border: 0; }
.page-hero h1 { margin-bottom: .25em; }
.page-hero-row { display: flex; gap: 22px; align-items: center; }
.count-badge { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.big-code { display: block; font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.big-code { background: linear-gradient(180deg, var(--text), transparent 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: .87rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); display: inline-flex; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-current] { color: var(--text-2); font-weight: 500; max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.cat-tabs a, .cat-tabs button {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .9rem; font-weight: 500; text-decoration: none !important;
}
.cat-tabs .icon { color: var(--c, var(--muted)); }
.cat-tabs small { color: var(--muted); font-weight: 600; }
.cat-tabs a:hover, .cat-tabs button:hover { border-color: var(--border-strong); }
.cat-tabs .active { background: var(--text); color: var(--bg); border-color: var(--text); }
.cat-tabs .active .icon, .cat-tabs .active small { color: inherit; }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: transparent; font-size: .85rem; font-weight: 500; color: var(--text-2); }
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }
.quick-filter { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.quick-filter:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.quick-filter input { border: 0; outline: 0; background: transparent; width: 200px; }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-state.small { padding: 36px; }
.empty-state .icon { color: var(--primary); margin-bottom: 12px; }
.empty-state h2 { font-size: 1.3rem; }

.notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 18px; border-radius: 11px; font-size: .9rem; background: var(--primary-soft); color: var(--text-2); }
.notice-warn { background: color-mix(in oklab, var(--medium) 15%, transparent); }

/* ---------- Search results ---------- */
.search-hero .hero-search { margin: 20px 0 0; max-width: none; }
.results-count { color: var(--muted); font-size: .92rem; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.result { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.result:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.result-main { display: block; padding: 18px 20px; color: var(--text); text-decoration: none !important; }
.result-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--c); }
.result h2 { font-size: 1.15rem; margin: 6px 0; }
.result p { color: var(--muted); margin: 0; font-size: .93rem; }
.result mark, .live-results mark, .cmdk mark { background: color-mix(in oklab, #facc15 40%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.result-step {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text-2); text-decoration: none !important; font-size: .9rem;
}
.result-step:hover { background: var(--primary-softer); }
.result-step > span:nth-child(2) { flex: 1; min-width: 0; }
.result-step strong { display: block; font-weight: 600; color: var(--text); }
.result-step small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-badge { flex-shrink: 0; padding: 3px 9px; border-radius: 7px; font-size: .75rem; font-weight: 700; background: var(--primary); color: #fff; }
.browse-title { margin-top: 36px; }

/* Live results / cmdk shared */
.sr-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--text); text-decoration: none !important; }
.sr-item:hover, .sr-item.active { background: var(--surface-2); }
.sr-item .sr-dot { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 13%, transparent); }
.sr-item .sr-text { flex: 1; min-width: 0; }
.sr-item strong { display: block; font-weight: 600; font-size: .95rem; }
.sr-item small { display: block; color: var(--muted); font-size: .83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-item .sr-step { display: inline-flex; margin-top: 4px; font-size: .76rem; font-weight: 600; color: var(--primary); }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; margin-top: 4px; border-top: 1px solid var(--border); font-size: .88rem; font-weight: 600; }
.sr-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 20, .45); backdrop-filter: blur(4px); animation: fade .15s ease; }
.cmdk-panel {
  position: relative; width: 100%; max-width: 640px; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45);
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 62px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1.08rem; color: var(--text); }
.cmdk-input kbd { cursor: pointer; }
.cmdk-input input::-webkit-search-cancel-button { display: none; }
.cmdk-results { max-height: min(56vh, 480px); overflow-y: auto; padding: 8px; }
.cmdk-empty { padding: 30px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-soft); font-size: .78rem; color: var(--muted); }
.cmdk-foot kbd { margin-right: 2px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(-8px); } }

/* ---------- Guide page ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .1s linear; }

.guide-hero { padding: 36px 0 44px; border-bottom: 1px solid var(--border); }
.guide-head { max-width: 820px; }
.guide-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.guide-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 26px; }
.guide-meta li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: .86rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.guide-meta li .icon { color: var(--muted); }
.guide-meta li.diff i:nth-child(3) { margin-right: 4px; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.guide-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.guide-layout > .guide-main:only-child { grid-column: 1 / -1; max-width: 820px; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }

.progress-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.progress-card strong { display: block; font-size: 1.05rem; }
.progress-card small { color: var(--muted); font-size: .8rem; }
.progress-card > div { flex: 1; }
.ring { width: 46px; height: 46px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dasharray .5s ease; }
.guide.all-done .ring-fg { stroke: var(--easy); }

.mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.mode-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; font-size: .84rem; font-weight: 600; color: var(--muted); }
.mode-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.step-nav-wrap summary { display: none; }
.step-nav { list-style: none; margin: 0; padding: 0; position: relative; }
.step-nav::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border); }
.step-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; color: var(--text-2); font-size: .9rem; text-decoration: none !important; transition: background .2s; }
.step-nav a:hover { background: var(--surface-2); }
.step-nav .num {
  position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-strong); font-size: .7rem; font-weight: 700; color: var(--muted); transition: .25s;
}
.step-nav .num .icon { display: none; }
.step-nav .txt { line-height: 1.35; }
.step-nav a.active { background: var(--primary-soft); color: var(--text); font-weight: 600; }
.step-nav a.active .num { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step-nav a.done .num { background: var(--easy); border-color: var(--easy); color: #fff; }
.step-nav a.done .num span { display: none; }
.step-nav a.done .num .icon { display: block; }
.step-nav a.done .txt { color: var(--muted); }
.step-nav .finish-link .num .icon { display: block; }

.requirements { padding: 22px 24px; margin-bottom: 30px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--border); }
.requirements h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.requirements h2 .icon { color: var(--easy); }
.requirements .prose > :last-child { margin-bottom: 0; }
.intro { margin-bottom: 36px; }

.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 28px; }
.step-rail { position: relative; display: flex; justify-content: center; }
.step-rail::after { content: ""; position: absolute; top: 52px; bottom: -28px; width: 2px; background: linear-gradient(var(--border-strong), var(--border)); }
.step:last-child .step-rail::after { display: none; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-top: 18px;
  background: var(--surface); border: 2px solid var(--border-strong); font-weight: 800; color: var(--text-2); transition: .3s;
}
.step-num .icon { display: none; }
.step.is-done .step-num { background: var(--easy); border-color: var(--easy); color: #fff; }
.step.is-done .step-num span { display: none; }
.step.is-done .step-num .icon { display: block; }
.step.is-active .step-num { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.step-card { padding: 24px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.step.is-active .step-card { border-color: color-mix(in oklab, var(--primary) 35%, var(--border)); box-shadow: var(--shadow); }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.step-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.step-head h2 { font-size: 1.4rem; margin: 0; }
.step-check {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--muted); transition: .2s;
}
.step-check:hover { border-color: var(--easy); color: var(--easy); }
.step-check[aria-pressed="true"] { background: color-mix(in oklab, var(--easy) 14%, transparent); border-color: transparent; color: var(--easy); }
.step-pager { display: none; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Adım adım modu */
.guide.mode-step .step { display: none; padding-bottom: 0; }
.guide.mode-step .step.is-active { display: grid; animation: stepIn .35s ease; }
.guide.mode-step .step-rail::after { display: none; }
.guide.mode-step .step-pager { display: flex; }
.guide.mode-step .finish { display: none; }
.guide.mode-step .finish.is-active { display: block; animation: stepIn .35s ease; }
.guide.mode-step .step-card { min-height: 280px; display: flex; flex-direction: column; }
.guide.mode-step .step-body { flex: 1; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.guide.dir-back.mode-step .step.is-active { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateY(-10px); } }

.finish { margin-top: 12px; }
.finish-card {
  position: relative; overflow: hidden; text-align: center; padding: 44px 32px; border-radius: 24px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--easy) 10%, var(--surface)), var(--surface) 60%);
  border: 1px solid color-mix(in oklab, var(--easy) 30%, var(--border));
}
.finish-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; margin-bottom: 16px; color: #fff; background: var(--easy); box-shadow: 0 12px 30px -10px var(--easy); }
.finish-card .prose { max-width: 560px; margin: 0 auto; text-align: left; }
.finish-card > p { color: var(--muted); }
.feedback { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--border-strong); font-weight: 600; }
.feedback > div { display: flex; gap: 10px; }
.feedback.voted > div { display: none; }
.flip { display: inline-flex; transform: rotate(180deg); }
.restart { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confetti 1.8s ease-out forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(720deg); } }

.related { margin-top: 56px; }

.step-dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; display: none; align-items: center; gap: 10px;
  width: min(560px, calc(100% - 24px)); padding: 8px; transform: translateX(-50%);
  border-radius: 16px; background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.dock-progress { flex: 1; display: grid; gap: 6px; }
.dock-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; }
.dock-bar { display: block; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dock-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .4s ease; }
.step-dock .btn { height: 40px; }

/* ---------- Prose (Markdown içerik) ---------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; color: var(--text); }
.prose h2 { font-size: 1.45rem; } .prose h3 { font-size: 1.2rem; } .prose h4 { font-size: 1.05rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .table-wrap, .prose .code-block, .prose .callout { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--primary) 35%, transparent); text-underline-offset: 3px; }
.prose a .ext { font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.prose img { border-radius: 12px; border: 1px solid var(--border); display: block; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 8px; text-align: center; font-size: .86rem; color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
.prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--border-strong); color: var(--muted); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.prose mark { background: color-mix(in oklab, #facc15 40%, transparent); color: inherit; padding: 0 3px; border-radius: 3px; }
.prose kbd { font-size: .8em; color: var(--text); }
.kbd-plus { margin: 0 3px; color: var(--muted); font-size: .85em; }
.code-block { position: relative; border-radius: 12px; background: #0f0f19; border: 1px solid #23233a; overflow: hidden; }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code-block code { background: none; border: 0; padding: 0; color: #e6e6f5; font-size: .87rem; line-height: 1.65; }
.code-lang { position: absolute; top: 8px; right: 48px; font-family: var(--mono); font-size: .72rem; color: #8a8aa8; text-transform: uppercase; }
.copy-btn { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #2a2a44; background: #1a1a2b; color: #a5a5c5; opacity: .7; transition: .2s; }
.copy-btn:hover { opacity: 1; color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-soft); color: var(--text); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-style: normal; }
.callout-icon { flex-shrink: 0; margin-top: 3px; }
.callout-body { flex: 1; min-width: 0; }
.callout-body > :last-child { margin-bottom: 0; }
.callout-note { --cc: #3b82f6; }
.callout-tip { --cc: var(--easy); }
.callout-warning { --cc: var(--medium); }
.callout-danger { --cc: var(--hard); }
.callout { background: color-mix(in oklab, var(--cc) 8%, transparent); border-color: color-mix(in oklab, var(--cc) 28%, transparent); }
.callout-icon { color: var(--cc); }
.task-list { list-style: none; padding-left: .2em !important; }
.task-list label { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.task-list input { margin-top: .45em; width: 17px; height: 17px; accent-color: var(--easy); flex-shrink: 0; }
.task-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.video { position: relative; aspect-ratio: 16/9; margin: 0 0 1.1em; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Adım görseli + lightbox ---------- */
.step-figure { margin: 4px 0 18px; }
.step-figure a { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); cursor: zoom-in; }
.step-figure img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: var(--surface-2); transition: transform .4s ease; }
.step-figure a:hover img { transform: scale(1.015); }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; color: #fff; background: rgba(15, 15, 25, .6); backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: .2s; }
.step-figure a:hover .zoom-hint, .step-figure a:focus-visible .zoom-hint { opacity: 1; transform: none; }
.step-figure figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); text-align: center; }
.prose img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; background: rgba(8, 8, 14, .88); backdrop-filter: blur(4px); animation: fade .15s ease; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.5); cursor: default; }
.lightbox figcaption { margin-top: 12px; color: #d4d4e4; font-size: .92rem; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; }
.lb-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Reklam alanları ---------- */
.ad-slot { position: relative; margin: 24px 0; padding: 10px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--border); text-align: center; overflow: hidden; min-height: 60px; }
.ad-label { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad-body { display: flex; justify-content: center; }
.ad-body > * { max-width: 100%; }
.ad-wrap .ad-slot { margin: 20px 0; }
.ad-slot.in-step { margin: 20px 0 0; }
.guide-sidebar .ad-slot { margin: 6px 0 0; }
.ad-li { list-style: none; }
.ad-li .ad-slot { margin: 0; }
.bb-test-ad { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 3px 14px; width: min(100%, 728px); min-height: 90px; padding: 16px 22px; border: 1px solid color-mix(in oklab, var(--primary) 28%, var(--border)); border-radius: 12px; background: linear-gradient(135deg, var(--primary-softer), var(--surface)); color: var(--text); }
.bb-test-ad span { grid-row: 1 / 3; padding: 6px 9px; border-radius: 7px; color: #fff; background: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.bb-test-ad strong { align-self: end; text-align: left; font-size: 1.05rem; }
.bb-test-ad small { align-self: start; color: var(--muted); text-align: left; font-size: .74rem; }
@media (max-width: 860px) { .ad-only-desktop, .ad-slot.hide-mobile { display: none; } }
@media (max-width: 520px) { .bb-test-ad { grid-template-columns: 1fr; justify-items: center; min-height: 110px; } .bb-test-ad span { grid-row: auto; } .bb-test-ad strong, .bb-test-ad small { text-align: center; } }
@media (min-width: 861px) { .ad-only-mobile { display: none; } }
@media print { .ad-slot { display: none !important; } }

/* ==========================================================================
   Ana sayfa temaları
   ========================================================================== */
.theme-preview-bar { position: fixed; left: 50%; bottom: 18px; z-index: 90; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: .88rem; box-shadow: var(--shadow-lg); white-space: nowrap; }
.theme-preview-bar a { color: inherit; font-weight: 700; margin-left: 6px; text-decoration: underline; }

/* --- Vitrin --- */
.sc-hero { text-align: left; padding: 72px 0 64px; }
.sc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.sc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.sc-hero .lead { margin-left: 0; }
.sc-hero .hero-search { margin-left: 0; margin-top: 28px; }
.sc-hero .popular-terms { justify-content: flex-start; }
.spotlight {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; color: var(--text); text-decoration: none !important;
  background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg); transition: transform .35s ease, box-shadow .35s ease;
}
.spotlight::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--c), transparent 40%, color-mix(in oklab, var(--accent) 60%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.spotlight:hover { transform: rotate(0) translateY(-4px); }
.spot-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spot-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #b45309; background: color-mix(in oklab, #f59e0b 18%, transparent); }
.spot-cover { aspect-ratio: 16/8; border-radius: 14px; overflow: hidden; }
.spot-cover img { width: 100%; height: 100%; object-fit: cover; }
.spotlight h2 { font-size: 1.45rem; margin: 0; }
.spotlight p { margin: 0; color: var(--muted); font-size: .95rem; }
.spot-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.spot-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: .9rem; font-weight: 500; }
.spot-steps li span { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; font-size: .74rem; font-weight: 800; color: #fff; background: var(--c); }
.spot-steps li.more { color: var(--muted); background: transparent; border: 1px dashed var(--border-strong); }
.spot-steps li.more span { background: var(--border-strong); }
.spot-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--c); }
.sc-cats { padding: 8px 0 0; }
.chip-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.cat-chip { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: .2s; }
.cat-chip:hover { border-color: color-mix(in oklab, var(--c) 50%, var(--border)); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-chip strong, .cat-chip small { display: block; line-height: 1.25; }
.cat-chip small { color: var(--muted); font-size: .78rem; }
.cat-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 18px; }
.bento-item { display: flex; }
.bento-item > .guide-card { flex: 1; }
.bento-item.big { grid-row: span 2; }
.bento-item.big .guide-card h3 { font-size: 1.5rem; }
.bento-item.big .guide-card p { font-size: 1rem; }
.bento-item.big .guide-card { background: linear-gradient(160deg, color-mix(in oklab, var(--c) 9%, var(--surface)), var(--surface) 55%); }

/* --- Arama odaklı --- */
.sr-hero { min-height: calc(78vh - var(--header-h)); display: flex; align-items: center; padding: 60px 0; }
.sr-hero .hero-inner { max-width: 820px; }
.sr-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 22px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--accent))); box-shadow: 0 18px 40px -14px color-mix(in oklab, var(--primary) 80%, transparent); }
.sr-hero .hero-search { max-width: 760px; height: 72px; border-radius: 22px; }
.sr-hero .hero-search input { font-size: 1.2rem; }
.sr-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.sr-cats a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .9rem; font-weight: 500; text-decoration: none !important; transition: .2s; }
.sr-cats a .icon { color: var(--c); }
.sr-cats a:hover { border-color: var(--c); color: var(--text); }
.narrow-wide { max-width: 1080px; }
.sr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.sr-h { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 14px; }
.sr-h .icon { color: var(--muted); }
.row-list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.row-list li + li { border-top: 1px solid var(--border); }
.row-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); text-decoration: none !important; transition: background .15s; }
.row-list a:hover { background: var(--bg-soft); }
.row-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; color: var(--c); background: color-mix(in oklab, var(--c) 12%, transparent); }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { color: var(--muted); font-size: .83rem; }
.row-go { color: var(--muted); transition: transform .2s; }
.row-list a:hover .row-go { transform: translateX(3px); color: var(--c); }

/* --- Bilgi portalı --- */
.pt-band { position: relative; overflow: hidden; color: #fff; padding: 48px 0; background: radial-gradient(700px 260px at 85% 0%, color-mix(in oklab, var(--accent) 55%, transparent), transparent), linear-gradient(120deg, var(--primary), color-mix(in oklab, var(--primary) 55%, #120c3a)); }
.pt-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.pt-band-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.pt-band h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .3em; }
.pt-band h1 .grad { background: none; -webkit-text-fill-color: #fff; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 6px; }
.pt-band p { margin: 0; opacity: .85; font-size: 1.05rem; }
.pt-band .hero-search { margin: 0; max-width: none; border-color: transparent; }
.pt-band .popular-terms { justify-content: flex-start; color: rgba(255,255,255,.8); }
.pt-band .popular-terms a { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.pt-cat { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c); transition: box-shadow .2s; }
.pt-cat:hover { box-shadow: var(--shadow); }
.pt-cat header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.pt-cat h2 { font-size: 1.1rem; margin: 2px 0 2px; }
.pt-cat h2 a { color: var(--text); }
.pt-cat header p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.pt-cat ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; flex: 1; }
.pt-cat li a { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 9px; color: var(--text-2); font-size: .92rem; text-decoration: none !important; }
.pt-cat li a:hover { background: var(--bg-soft); color: var(--text); }
.pt-cat li a .icon { color: var(--c); flex-shrink: 0; }
.pt-cat li a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cat li a small { flex-shrink: 0; color: var(--muted); font-size: .76rem; }
.pt-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--c); }
.pt-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.pt-side .popular-box { position: static; }
.pt-how { padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.pt-how h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.pt-how h3 .icon { color: var(--primary); }
.pt-how ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.pt-how li::marker { color: var(--primary); font-weight: 800; }
.pt-how strong, .pt-how span { display: block; }
.pt-how span { color: var(--muted); font-size: .86rem; }

@media (max-width: 1024px) {
  .sr-cols, .pt-layout { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sc-hero-grid, .pt-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .sc-hero { padding: 48px 0; }
  .spotlight { transform: none; }
  .sr-hero { min-height: 0; padding: 56px 0 40px; }
  .sr-hero .hero-search { height: 60px; }
  .pt-band { padding: 36px 0; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item.big { grid-row: auto; }
  .row-list .diff { display: none; }
}

/* ---------- Paylaş ---------- */
.share { margin-top: 18px; }
.share-compact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--b); font-size: .85rem; font-weight: 600; text-decoration: none !important; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.share-btn:hover { background: var(--b); border-color: var(--b); color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .share-btn[style*="#000000"] { color: #fff; }
.share-compact .share-btn span { display: none; }
.share-full { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--border-strong); }
.share-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-weight: 700; }
.share-full .share-buttons { justify-content: center; }
.share-full .share-btn { padding: 0 14px; }
@media (max-width: 560px) { .share-full .share-btn span { display: none; } .share-full .share-btn { padding: 0 10px; } }

/* ---------- Bülten ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; padding: 28px 30px; border-radius: 22px;
  background: radial-gradient(500px 160px at 100% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent), linear-gradient(135deg, var(--primary-soft), var(--surface) 70%);
  border: 1px solid color-mix(in oklab, var(--primary) 22%, var(--border)); }
.nl-wrap { margin-bottom: 44px; }
.nl-text { display: flex; gap: 16px; align-items: flex-start; }
.nl-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in oklab, var(--primary) 55%, var(--accent))); box-shadow: 0 10px 22px -10px var(--primary); }
.nl h3 { font-size: 1.2rem; margin: 0 0 4px; }
.nl p { margin: 0; color: var(--muted); font-size: .94rem; }
.nl-row { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nl-row:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.nl-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 10px; font-size: 1rem; }
.nl-row .btn { height: 44px; }
.nl-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .8rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.nl-consent input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.nl-msg { min-height: 1.2em; margin: 8px 0 0 !important; font-size: .88rem !important; font-weight: 600; }
.nl-msg.ok { color: var(--easy) !important; } .nl-msg.err { color: var(--hard) !important; }
.nl-form.done .nl-row, .nl-form.done .nl-consent { display: none; }
.nl-form.done .nl-msg { padding: 12px 14px; border-radius: 12px; background: color-mix(in oklab, var(--easy) 12%, var(--surface)); }
.nl-card { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
.nl-page .nl-state-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; margin-bottom: 18px; color: #fff; background: var(--primary); box-shadow: 0 16px 34px -14px var(--primary); }
.nl-state-icon.confirmed, .nl-state-icon.resubscribed { background: var(--easy); box-shadow: 0 16px 34px -14px var(--easy); }
.nl-state-icon.invalid { background: var(--hard); }
.nl-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 860px) { .nl { grid-template-columns: 1fr; padding: 22px 18px; } }
@media (max-width: 420px) { .nl-row { flex-direction: column; } .nl-row input { height: 44px; } }
@media print { .share, .nl { display: none !important; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-top: 56px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 360px; font-size: .93rem; }
.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); font-size: .93rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.to-top { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.guide.mode-step ~ .toast, body:has(.guide.mode-step) .toast { bottom: 90px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .guide-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .popular-box { position: static; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  body.nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > a, .nav-dd-btn { padding: 12px; font-size: 1rem; width: 100%; justify-content: space-between; }
  .nav-dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; display: none; }
  .nav-dropdown.open .nav-dd-menu { display: grid; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-search { height: 58px; padding-left: 16px; }
  .hero-search .btn { display: none; }
  .hide-sm { display: none !important; }
  .section { padding: 52px 0; }
  .how-steps { grid-template-columns: 1fr; gap: 4px; }
  .how-steps::before { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  .guide-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .sidebar-sticky { position: static; max-height: none; overflow: visible; }
  .step-nav-wrap { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 8px; background: var(--surface); }
  .step-nav-wrap summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px; font-weight: 600; cursor: pointer; list-style: none; }
  .step-nav-wrap summary::after { content: "▾"; color: var(--muted); }
  .step-nav-wrap:not([open]) summary::after { content: "▸"; }
  .step { grid-template-columns: 1fr; gap: 0; }
  .step-rail { display: none; }
  .step-card { padding: 20px 18px; }
  .step-head { flex-direction: column; gap: 10px; }
  .guide.mode-step .step-pager { display: none; }
  .guide.mode-step .step-dock { display: flex; }
  .guide.mode-step .guide-layout { padding-bottom: 110px; }
  .quick-filter input { width: 140px; }
}
@media (max-width: 520px) {
  .lang-switch a { padding: 4px 7px; }
  .brand-name { display: none; }
  .card-grid, .card-grid.two, .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .guide-actions .btn { flex: 1; }
  .cmdk { padding-top: 10px; }
  .cmdk-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .guide-sidebar, .guide-actions, .step-check, .step-pager, .feedback, .related, .step-dock, .reading-progress, .hero-bg, .restart, .cmdk { display: none !important; }
  .guide.mode-step .step, .guide.mode-step .finish { display: grid !important; }
  .guide-layout { display: block; padding: 0; }
  .step-card, .requirements, .finish-card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}
/* Bento: az içerikte düzgün görünüm */
.bento:has(> :nth-child(3):last-child) { grid-template-columns: 1.25fr 1fr; }
.bento:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.bento:has(> :nth-child(2):last-child) .bento-item.big, .bento:has(> :only-child) .bento-item.big { grid-row: auto; }
@media (max-width: 560px) { .bento:has(> :nth-child(3):last-child), .bento:has(> :nth-child(2):last-child) { grid-template-columns: 1fr; } }
.pt-cat { min-width: 0; } .pt-cat ul { grid-template-columns: minmax(0, 1fr); }
img.category-icon-img{display:inline-block;object-fit:contain;flex:0 0 auto}

/* ---------- Etiketler ---------- */
.guide-tags { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0 2px }
.guide-tags>span { display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:.86rem;font-weight:650 }
.guide-tags a,.active-search-tag span,.tag-kicker { display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--border));border-radius:999px;color:var(--primary);background:var(--primary-softer);font-size:.84rem;font-weight:700 }
.guide-tags a:hover { transform:translateY(-1px);border-color:var(--primary) }
.tag-hero h1 { margin:12px 0 8px }
.tag-search { display:flex;gap:10px;max-width:680px;margin-top:24px }
.tag-search label { flex:1 }
.tag-search input { width:100%;height:48px;padding:0 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text) }
.active-search-tag { display:flex;align-items:center;gap:4px;margin-bottom:18px }
.active-search-tag a { display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;color:var(--muted);background:var(--surface-2) }

/* ---------- Hesaplama araçları ---------- */
.calc-kicker { display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;color:var(--c,var(--primary));background:color-mix(in srgb,var(--c,var(--primary)) 11%,transparent);font-size:.84rem;font-weight:750 }
.calculators-hero h1,.calculator-detail-hero h1 { margin:14px 0 10px }
.calc-category-tabs { display:flex;flex-wrap:wrap;gap:9px;margin-bottom:36px }
.calc-category-tabs a { display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--border);border-radius:999px;color:var(--text-2);background:var(--surface);font-size:.88rem;font-weight:700 }
.calc-category-tabs a:hover { color:var(--c);border-color:color-mix(in srgb,var(--c) 48%,var(--border)) }
.calc-category { scroll-margin-top:90px;padding:28px 0 42px;border-top:1px solid var(--border) }
.calc-category>header { display:flex;align-items:center;gap:14px;margin-bottom:18px }
.calc-category>header h2 { margin:0 0 4px;font-size:1.45rem }
.calc-category>header p { margin:0;color:var(--muted) }
.calc-source-link { display:inline-flex;align-items:center;gap:.35rem;margin-top:.45rem;font-size:.78rem;color:var(--c);font-weight:700 }
.calculator-visual figure { margin:0 }
.calculator-visual img,.calculator-diagram-svg { display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:14px;background:linear-gradient(145deg,var(--surface),var(--surface-2));overflow:hidden }
.calculator-visual figcaption { margin-top:10px;color:var(--muted);font-size:.86rem;line-height:1.55 }
.calculator-diagram-svg text { fill:var(--text);font:600 15px/1.2 system-ui,sans-serif;text-anchor:middle }
.calculator-diagram-svg .board { fill:#dbeafe;stroke:#60a5fa;stroke-width:2 }
.calculator-diagram-svg .copper,.calculator-diagram-svg .pad { fill:#f59e0b;stroke:#b45309;stroke-width:2 }
.calculator-diagram-svg .copper.pale { opacity:.6 }
.calculator-diagram-svg .plane { fill:#64748b;stroke:#334155;stroke-width:2 }
.calculator-diagram-svg .hole { fill:var(--surface);stroke:#94a3b8;stroke-width:2 }
.calculator-diagram-svg .measure,.calculator-diagram-svg .leader { fill:none;stroke:#6366f1;stroke-width:2;stroke-dasharray:5 4 }
.calculator-diagram-svg .signal,.calculator-diagram-svg .down { fill:none;stroke:#ef4444;stroke-width:4;marker-end:var(--arrow) }
.calculator-diagram-svg .field { stroke:#8b5cf6;stroke-width:2;stroke-dasharray:5 5;opacity:.55 }
.calculator-diagram-svg .coil,.calculator-diagram-svg .wire,.calculator-diagram-svg .resistor { fill:none;stroke:#f59e0b;stroke-width:9;stroke-linejoin:round;stroke-linecap:round }
.calculator-diagram-svg .terminal { fill:#f59e0b;stroke:#b45309;stroke-width:2 }
.calculator-diagram-svg .component { fill:#e0e7ff;stroke:#6366f1;stroke-width:3 }
.calculator-diagram-svg .crystal,.calculator-diagram-svg .capacitor { stroke:#334155;stroke-width:5 }
.calculator-diagram-svg .heat,.calculator-diagram-svg .heatup { stroke:#ef4444;stroke-width:4;fill:none;marker-end:var(--arrow) }
.calculator-diagram-svg .sink { fill:#94a3b8;stroke:#475569;stroke-width:2 }
.calculator-diagram-svg .sinkline,.calculator-diagram-svg .ground { stroke:#475569;stroke-width:5 }
.calculator-diagram-svg .source { fill:#fee2e2;stroke:#ef4444;stroke-width:3 }
html[data-theme="dark"] .calculator-diagram-svg .board { fill:#172554 }
html[data-theme="dark"] .calculator-diagram-svg .component { fill:#312e81 }
.calc-category-icon,.calculator-card-icon { display:grid;place-items:center;flex:0 0 auto;color:var(--c,var(--primary));background:color-mix(in srgb,var(--c,var(--primary)) 12%,transparent) }
.calc-category-icon { width:48px;height:48px;border-radius:14px }
.calculator-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px }
.calculator-card { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:17px;border:1px solid var(--border);border-radius:16px;color:var(--text);background:var(--surface);box-shadow:var(--shadow-sm) }
.calculator-card:hover { transform:translateY(-2px);border-color:color-mix(in srgb,var(--c,var(--primary)) 36%,var(--border));box-shadow:var(--shadow) }
.calculator-card-icon { width:42px;height:42px;border-radius:12px }
.calculator-card strong,.calculator-card small { display:block }
.calculator-card small { margin-top:4px;color:var(--muted);line-height:1.4 }
.calculator-card>.icon:last-child { color:var(--muted) }
.calculator-layout { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:28px;align-items:start;max-width:1080px }
.calculator-box,.calculator-info>section { border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow) }
.calculator-form { padding:26px }
.calculator-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:22px }
.calc-field { min-width:0 }
.calc-field>span:first-child { display:block;margin-bottom:7px;font-size:.9rem;font-weight:700 }
.calc-input-wrap { display:flex;align-items:center;min-height:48px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg);transition:border-color .2s,box-shadow .2s }
.calc-input-wrap:focus-within { border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-softer) }
.calc-input-wrap input,.calc-input-wrap select { width:100%;min-width:0;height:46px;padding:0 13px;border:0;outline:0;color:var(--text);background:transparent;font:inherit }
.calc-input-wrap em { padding:0 12px;color:var(--muted);font-size:.88rem;font-style:normal;white-space:nowrap }
.calc-error { margin:13px 0 0;color:var(--danger);font-size:.9rem }
.calculator-result { margin:0 26px 26px;padding:20px;border:1px solid color-mix(in srgb,var(--easy) 40%,var(--border));border-radius:16px;background:color-mix(in srgb,var(--easy) 9%,var(--surface)) }
.calculator-result header { display:flex;align-items:center;gap:9px;color:var(--easy) }
.calculator-result h2 { margin:0;font-size:1.1rem }
.calculator-result dl { display:grid;gap:10px;margin:17px 0 0 }
.calculator-result dl>div { display:flex;justify-content:space-between;gap:16px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--easy) 20%,var(--border)) }
.calculator-result dt { color:var(--text-2) }
.calculator-result dd { margin:0;color:var(--text);font-weight:800 }
.calculator-info { display:grid;gap:14px }
.calculator-info>section { padding:20px;box-shadow:var(--shadow-sm) }
.calculator-info h2 { margin:0 0 10px;font-size:1rem }
.calculator-info p { margin:0;color:var(--text-2);font-size:.9rem;line-height:1.6 }
.calculator-info code { display:block;padding:12px;border-radius:10px;white-space:normal;color:var(--text);background:var(--surface-2);line-height:1.55 }
.calculator-info .calc-notice { display:flex;gap:10px;border-color:color-mix(in srgb,#f59e0b 45%,var(--border));background:color-mix(in srgb,#f59e0b 8%,var(--surface)) }
.calc-notice>.icon { flex:0 0 auto;color:#d97706 }
.calc-notice strong { display:block;margin-bottom:5px;color:#b45309 }
@media (max-width:860px) { .calculator-layout{grid-template-columns:1fr} }
@media (max-width:520px) { .calculator-grid,.calculator-fields{grid-template-columns:1fr}.tag-search{flex-direction:column} }

/* ---------- Site içi iletişim ---------- */
.contact-page { min-height: 68vh; }
.contact-shell { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 34px; align-items: start; max-width: 1000px; }
.contact-intro { position: sticky; top: 100px; padding: 24px 6px; }
.contact-intro h1 { margin: 16px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.contact-intro > p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; }
.contact-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: var(--primary); background: var(--primary-softer); }
.contact-security { display: flex; gap: 9px; align-items: flex-start; margin-top: 24px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.contact-security .icon { flex: 0 0 auto; color: var(--easy); }
.contact-form, .contact-success { padding: 26px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 18px; }
.contact-form .form-grid .full { grid-column: 1 / -1; }
.contact-form .field { display: block; margin-bottom: 16px; }
.contact-form .field > span { display: block; margin-bottom: 6px; color: var(--text-2); font-size: .86rem; font-weight: 650; }
.contact-form .field small { display: block; margin-top: 5px; }
.contact-form .req { color: var(--hard); }
.contact-form .field input, .contact-form .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--bg); font: inherit; }
.contact-form .field input:focus, .contact-form .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: var(--ring); }
.contact-form .field textarea { resize: vertical; line-height: 1.55; }
.contact-verify { max-width: 260px; }
.contact-errors { margin-bottom: 18px; padding: 13px 15px; border: 1px solid color-mix(in oklab, var(--hard) 28%, transparent); border-radius: 12px; color: color-mix(in oklab, var(--hard) 78%, var(--text)); background: color-mix(in oklab, var(--hard) 9%, var(--surface)); }
.contact-errors ul { margin: 7px 0 0; padding-left: 20px; }
.contact-success { text-align: center; padding-block: 50px; }
.contact-success > .icon { color: var(--easy); }
.contact-success h2 { margin: 14px 0 8px; }
.contact-success p { margin: 0 0 22px; color: var(--text-2); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 760px) { .contact-shell, .contact-form .form-grid { grid-template-columns: 1fr; } .contact-shell { gap: 8px; } .contact-form .form-grid .full { grid-column: auto; } .contact-intro { position: static; padding-top: 0; } .contact-form { padding: 18px; } }
