/* Okufit blog: static article pages. Shares the brand tokens of the home page. */
:root {
  --ink: #141938;
  --ink-70: rgba(20, 25, 56, 0.72);
  --ink-50: rgba(20, 25, 56, 0.5);
  --line: rgba(20, 25, 56, 0.1);
  --brand: #5b4cf5;
  --brand-dark: #4536d6;
  --sun: #ffc94a;
  --mist: #f4f3ff;
  --canvas: #f7f7fb;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo span b { color: var(--brand); font-weight: 700; }
.logo:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink-70); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: var(--white); }
.site-nav .hide-sm { display: none; }
@media (min-width: 720px) { .site-nav .hide-sm { display: inline; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 14px; background: var(--brand); color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--brand-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sun); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); }

/* Breadcrumb + hero */
.crumbs { font-size: 14px; color: var(--ink-50); margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-50); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

.post-hero { max-width: 760px; margin: 0 auto; padding: 8px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--brand); font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin: 16px 0 16px; }
.lede { font-size: 20px; line-height: 1.6; color: var(--ink-70); margin: 0 0 20px; }
/* Answer-first summary ("Kısaca") shown directly under the H1 */
.answer { background: var(--mist); border-left: 4px solid var(--brand); border-radius: 0 16px 16px 0; padding: 14px 20px; margin: 0 0 20px; font-size: 18px; line-height: 1.65; }
.answer b:first-child { display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.answer p { margin: 0; }
.meta { font-size: 14px; color: var(--ink-50); display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Article body */
.post { max-width: 760px; margin: 0 auto; padding: 8px 0 48px; }
.post h2 { font-size: clamp(25px, 4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 84px; }
.post h3 { font-size: 22px; line-height: 1.3; margin: 32px 0 8px; scroll-margin-top: 84px; }
.post p, .post ul, .post ol { margin: 0 0 18px; }
.post li { margin-bottom: 8px; }
.post li::marker { color: var(--brand); font-weight: 700; }
.post strong { font-weight: 600; }
.post hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.toc { background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 28px 0; font-size: 16px; }
.toc strong { display: block; margin-bottom: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-50); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); }

.note, .tip, .warn { border-radius: 16px; padding: 16px 20px; margin: 24px 0; font-size: 17px; }
.note { background: var(--mist); }
.tip { background: #fff7e0; }
.warn { background: #fff1f0; }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.note b:first-child, .tip b:first-child, .warn b:first-child { display: block; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--canvas); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
/* Tables with sentence-length cells: allow wrapping instead of horizontal scroll */
.table-wrap.wrap-cells td { white-space: normal; min-width: 120px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 20px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: 16px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--ink-70); }

/* CTA */
.cta { background: var(--ink); color: var(--white); border-radius: 28px; padding: 32px 24px; margin: 48px 0 8px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(91,76,245,.55); filter: blur(50px); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--white); margin: 0 0 8px; font-size: 26px; }
.cta p { color: rgba(255,255,255,.75); margin: 0 0 20px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) { .cta { padding: 40px; } }

/* Cards (index + related) */
.related { max-width: 760px; margin: 0 auto; padding: 0 0 56px; }
.related h2 { font-size: 22px; margin: 0 0 16px; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards.cards-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(20,25,56,.4); color: var(--ink); }
.card .tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(255,201,74,.3); }
.card h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.3; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); font-size: 15px; }

.blog-hero { padding: 48px 0 32px; max-width: 760px; }
.blog-section { padding: 0 0 56px; }
.blog-section h2 { font-size: 24px; margin: 0 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-50); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink-70); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

/* Reading test */
.test-box { border: 1px solid var(--line); border-radius: 24px; padding: 20px; background: var(--canvas); margin: 24px 0; }
@media (min-width: 640px) { .test-box { padding: 28px; } }
.test-text { background: var(--white); border-radius: 16px; padding: 20px 22px; font-size: 19px; line-height: 1.8; }
.test-text[hidden] { display: none; }
.test-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-70); }
.q { background: var(--white); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.q p { margin: 0 0 8px; font-weight: 600; }
.q label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; font-size: 17px; }
.q input { margin-top: 7px; accent-color: var(--brand); }
.result { background: var(--ink); color: var(--white); border-radius: 20px; padding: 24px; margin-top: 16px; }
.result .big { font-size: 44px; font-weight: 700; line-height: 1; color: var(--sun); }
.result p { margin: 8px 0 0; color: rgba(255,255,255,.8); }
.select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); padding: 8px 12px; font: inherit; font-size: 16px; background: var(--white); color: var(--ink); }
