/* Polpo Desk — Yardım Merkezi (site-src/docs → scripts/lib/docs.mjs). site.css değişkenlerini kullanır. */
.docs-body { background: var(--bg); }

/* Bilgi kutusu renkleri: her tür ayrı renk ailesi (tema renginden bağımsız, kolay ayırt edilir) */
:root { --dc-note: #1D4ED8; --dc-note-bg: #EFF5FF; --dc-tip: #15803D; --dc-tip-bg: #EEFBF2;
  --dc-warn: #B45309; --dc-warn-bg: #FFF8E6; --dc-imp: #B91C1C; --dc-imp-bg: #FFF1F1; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --dc-note: #93C5FD; --dc-note-bg: rgba(59,130,246,.12);
  --dc-tip: #86EFAC; --dc-tip-bg: rgba(34,197,94,.10); --dc-warn: #FCD34D; --dc-warn-bg: rgba(245,158,11,.12); --dc-imp: #FCA5A5; --dc-imp-bg: rgba(239,68,68,.12); } }
:root[data-theme="dark"] { --dc-note: #93C5FD; --dc-note-bg: rgba(59,130,246,.12);
  --dc-tip: #86EFAC; --dc-tip-bg: rgba(34,197,94,.10); --dc-warn: #FCD34D; --dc-warn-bg: rgba(245,158,11,.12); --dc-imp: #FCA5A5; --dc-imp-bg: rgba(239,68,68,.12); }

/* ---------- Arama ---------- */
.dc-search { position: relative; display: flex; align-items: center; max-width: 640px; }
.dc-search > svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--text-mut); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.dc-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.dc-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.dc-search.big { margin: 26px auto 0; }
.dc-search.big input { height: 56px; font-size: 17px; border-radius: 14px; box-shadow: var(--shadow-md); }
.dc-search.big > svg { left: 18px; width: 20px; height: 20px; }
.dc-search.big input { padding-left: 48px; }
.dc-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; max-height: 60vh; overflow: auto; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.dc-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.dc-results a:hover, .dc-results a.on { background: var(--bg-alt); }
.dc-results b { display: block; font-size: 14.5px; }
.dc-results small { display: block; color: var(--text-mut); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.dc-results mark { background: color-mix(in srgb, var(--primary) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.dc-results .empty { padding: 14px 12px; color: var(--text-mut); font-size: 14px; }

/* ---------- Ana sayfa ---------- */
.dc-hero { background: var(--hero-grad); padding: 56px 0 44px; text-align: center; border-bottom: 1px solid var(--border); }
.dc-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.dc-hero h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; margin: 0 0 12px; }
.dc-lead { color: var(--text-soft); font-size: 17px; max-width: 640px; margin: 0 auto; line-height: 1.6; }
.dc-cats { padding: 40px 0 64px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dc-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.dc-cat-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.dc-cat-h h2 { font-size: 18px; margin: 2px 0 4px; }
.dc-cat-h p { margin: 0; color: var(--text-mut); font-size: 14px; line-height: 1.5; }
.dc-cat-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.dc-cat-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-cat ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.dc-cat li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; color: var(--text); text-decoration: none; font-size: 14.5px;
  border-bottom: 1px solid var(--border); }
.dc-cat li:last-child a { border-bottom: 0; padding-bottom: 0; }
.dc-cat li a::after { content: "→"; color: var(--text-mut); transition: transform .15s; }
.dc-cat li a:hover { color: var(--primary); } .dc-cat li a:hover::after { transform: translateX(3px); color: var(--primary); }

/* ---------- Makale düzeni: sol menü | makale | içindekiler ---------- */
.dc-page { padding: 28px 0 64px; }
.dc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 36px; max-width: 1240px; align-items: start; }
.dc-side { position: sticky; top: 86px; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; padding-right: 4px; }
.dc-side-toggle { display: none; }
.dc-side-g { margin-bottom: 16px; }
.dc-side-h { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); margin: 0 0 6px; }
.dc-side ul { list-style: none; margin: 0; padding: 0; }
.dc-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-soft); text-decoration: none; line-height: 1.35; border-left: 2px solid transparent; }
.dc-side a:hover { background: var(--bg-alt); color: var(--text); }
.dc-side a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; border-left-color: var(--primary); border-radius: 0 8px 8px 0; }
.dc-toc { position: sticky; top: 86px; font-size: 13.5px; }
.dc-toc p { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); margin: 0 0 8px; }
.dc-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.dc-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; color: var(--text-soft); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.dc-toc a:hover { color: var(--text); } .dc-toc a.on { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

.dc-article { min-width: 0; }
.dc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; color: var(--text-mut); margin-bottom: 14px; }
.dc-crumbs a { color: var(--text-mut); text-decoration: none; } .dc-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.dc-article > .dc-search { margin-bottom: 22px; max-width: none; }
.dc-article h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; margin: 0 0 10px; }
.dc-desc { font-size: 17px; color: var(--text-soft); line-height: 1.6; margin: 0 0 8px; }
.dc-updated { font-size: 13px; color: var(--text-mut); margin: 0 0 18px; }
.dc-content { font-size: 16px; line-height: 1.72; color: var(--text); border-top: 1px solid var(--border); padding-top: 8px; }
.dc-content h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 10px; scroll-margin-top: 86px; }
.dc-content h3 { font-size: 18px; margin: 26px 0 8px; scroll-margin-top: 86px; }
.dc-content h4 { font-size: 16px; margin: 20px 0 6px; }
.dc-content p { margin: 0 0 14px; }
.dc-content ul, .dc-content ol { margin: 0 0 16px; padding-left: 24px; }
.dc-content li { margin: 4px 0; } .dc-content li > ul { margin: 4px 0; }
.dc-content ol > li::marker { font-weight: 700; color: var(--primary); }
.dc-content a { color: var(--primary); text-underline-offset: 2px; }
.dc-content code { font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; }
.dc-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow: auto; margin: 0 0 16px; }
.dc-content pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.dc-content kbd { display: inline-block; font: 600 12.5px/1 var(--font-mono, ui-monospace, Consolas, monospace); padding: 4px 7px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; color: var(--text); }
.dc-content img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin: 6px 0 16px; }
.dc-content blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 4px solid var(--border-strong); color: var(--text-soft); }
.dc-content blockquote p { margin: 0; }
.dc-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.dc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dc-table th { text-align: left; background: var(--bg-alt); font-weight: 700; }
.dc-table th, .dc-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.dc-table tr:last-child td { border-bottom: 0; }

/* Bilgi kutuları: not (mavi), ipucu (yeşil), uyarı (amber), önemli (kırmızı) — sol şerit + simge */
.dc-callout { display: flex; gap: 12px; padding: 12px 16px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; border-left-width: 4px; font-size: 15px; line-height: 1.6; }
.dc-callout > div > :last-child { margin-bottom: 0; }
.dc-ico { width: 20px; height: 20px; flex: none; margin-top: 2px; background: currentColor;
  -webkit-mask: var(--dc-ico) center / contain no-repeat; mask: var(--dc-ico) center / contain no-repeat; }
.dc-note { color: var(--dc-note); background: var(--dc-note-bg); border-color: color-mix(in srgb, var(--dc-note) 35%, transparent);
  --dc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
.dc-tip { color: var(--dc-tip); background: var(--dc-tip-bg); border-color: color-mix(in srgb, var(--dc-tip) 35%, transparent);
  --dc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.dc-warning { color: var(--dc-warn); background: var(--dc-warn-bg); border-color: color-mix(in srgb, var(--dc-warn) 40%, transparent);
  --dc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17v.01'/%3E%3C/svg%3E"); }
.dc-important { color: var(--dc-imp); background: var(--dc-imp-bg); border-color: color-mix(in srgb, var(--dc-imp) 35%, transparent);
  --dc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.01'/%3E%3C/svg%3E"); }
.dc-callout > div { color: var(--text); }
.dc-callout > div strong:first-child { color: inherit; }

.dc-related { margin-top: 34px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.dc-related h2 { font-size: 16px; margin: 0 0 8px; }
.dc-related ul { margin: 0; padding-left: 18px; } .dc-related li { margin: 4px 0; } .dc-related a { color: var(--primary); }
.dc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.dc-pn a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text);
  text-decoration: none; font-weight: 600; line-height: 1.35; }
.dc-pn a:hover { border-color: var(--primary); color: var(--primary); }
.dc-pn small { display: block; font-size: 12px; font-weight: 600; color: var(--text-mut); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.dc-pn .next { text-align: right; }
.dc-help { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; padding: 20px 22px;
  border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); }
.dc-help b { font-size: 17px; } .dc-help p { margin: 4px 0 0; color: var(--text-soft); font-size: 14.5px; max-width: 520px; }
.dc-help-a { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) { .dc-layout { grid-template-columns: 230px minmax(0, 1fr); } .dc-toc { display: none; } }
@media (max-width: 820px) {
  .dc-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dc-side { position: static; max-height: none; overflow: visible; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .dc-side-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 14px; background: none; border: 0;
    font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
  .dc-side-toggle::after { content: "▾"; transition: transform .15s; }
  .dc-side-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .dc-side-in { display: none; padding: 4px 12px 12px; } .dc-side.open .dc-side-in { display: block; }
  .dc-pn { grid-template-columns: 1fr; } .dc-pn .next { text-align: left; }
  .dc-hero { padding: 40px 0 32px; }
}
