/* yasaluyum.com — site stilleri */
:root {
  --accent: #124777;
  --accent-ink: #0c3357;
  --accent-soft: #e8eff7;
  --ink: #14181f;
  --ink-2: #3c4452;
  --muted: #6b7381;
  --line: #e3e6eb;
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --radius: 10px;
  --wrap: 1200px;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", var(--font-ui);
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-top { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.search { margin-left: auto; display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 16px; width: min(380px, 100%); }
.search:focus-within { border-color: var(--accent); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; padding: 10px 0; color: var(--ink); outline: none; }
.search button { border: 0; background: var(--accent); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search.inline { margin: 24px auto; }
.search.inline button { width: auto; border-radius: 999px; padding: 0 18px; font: 600 14px var(--font-ui); }

.site-nav { background: var(--accent); }
.site-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav .wrap::-webkit-scrollbar { display: none; }
.site-nav a { color: #dce7f3; font: 600 14px var(--font-ui); padding: 12px 14px; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.06); }
.site-nav a.active { color: #fff; border-bottom-color: #fff; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- layout */
main { padding-top: 28px; padding-bottom: 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.primary { min-width: 0; }
.sidebar { position: sticky; top: 140px; display: grid; gap: 24px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .crumb-current { color: var(--ink-2); }

.page-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); }
.page-head p { margin: 6px 0 0; color: var(--muted); }

.tag { display: inline-block; font: 600 11px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 9px; border-radius: 4px; margin-bottom: 10px; }
.tag:hover { text-decoration: none; background: #d9e5f2; }
time, .article-meta { font-size: 13px; color: var(--muted); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.hero-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.hero-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.hero-title a { color: var(--ink); }
.hero p { color: var(--ink-2); margin: 0 0 12px; }

/* ---------- blocks & cards */
.block { margin-top: 40px; }
.block-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.block-title a { font: 600 13px var(--font-ui); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.list { display: grid; gap: 0; }

.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.card-title { font-size: 16px; line-height: 1.4; margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.list .card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list .card:first-child { padding-top: 0; }
.list .card .card-img { display: none; }
.card.compact .card-title { font-size: 15.5px; margin-bottom: 4px; }

/* ---------- sidebar widgets */
.widget { background: var(--bg-2); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; color: var(--ink-2); }
.popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.popular li { display: flex; gap: 12px; }
.popular .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/26px var(--font-head); text-align: center; }
.popular a { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; }
.popular small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list b { font-weight: 600; color: var(--muted); font-size: 12px; background: #fff; border-radius: 999px; padding: 2px 9px; }

/* ---------- article */
.article.narrow { max-width: 820px; margin: 0 auto; }
.article-head { margin-bottom: 24px; }
.article-head h1 { font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 12px; }
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; border-radius: var(--radius); max-height: 420px; object-fit: cover; }

.prose { font-family: var(--font-read); font-size: 18px; line-height: 1.75; color: #22272f; overflow-wrap: anywhere; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--ink); }
.prose dfn { font-style: normal; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1em; }
.prose ol { list-style: none; padding-left: 0; }   /* mevzuatta "a) b) c)" metnin içinde yazılı */
.prose li { margin: .3em 0; }
.prose img { border-radius: 6px; margin: 1em auto; }
.prose figure { margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; display: block; overflow-x: auto; margin: 1.5em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg-2); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose a { text-decoration: underline; text-decoration-color: rgba(18,71,119,.35); text-underline-offset: 2px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.share span { color: var(--muted); margin-right: 4px; }
.share a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink-2); font-weight: 500; }
.share a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.preview-bar { background: #fff4d6; border: 1px solid #f0d58a; color: #6a4d00; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }

/* ---------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination .gap { border: 0; }

.empty { color: var(--muted); padding: 24px 0; }
.notfound { text-align: center; padding: 48px 0; max-width: 560px; margin: 0 auto; }
.notfound .code { font: 800 72px/1 var(--font-head); color: var(--accent); margin: 0 0 12px; }
.notfound h1 { font-size: 26px; margin-bottom: 10px; }
.notfound p { color: var(--ink-2); }

/* ---------- footer */
.site-footer { background: #0f1b2a; color: #b8c2d0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b8c2d0; }
.site-footer a:hover { color: #fff; }
.footer-logo { height: 38px; width: auto; background: #fff; padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #7f8a9a; }

/* ---------- responsive */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-top { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .brand img { height: 36px; }
  .nav-toggle { display: block; margin-left: auto; }
  .search { order: 3; width: 100%; margin-left: 0; }
  .site-header { position: static; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .site-nav .wrap { flex-direction: column; gap: 0; }
  .site-nav a { border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .grid, .grid.two, .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .prose { font-size: 17px; }
}
