/* CowMail Yardım Merkezi — ortak stil */
:root {
  --bg: #f6f8fa;
  --bg-card: #ffffff;
  --text: #1f2933;
  --text-soft: #52606d;
  --accent: #1a73c7;
  --accent-soft: #e8f1fa;
  --border: #e0e6ec;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --ok: #1d7a3d;
  --ok-bg: #e6f4ea;
  --warn: #92400e;
  --warn-bg: #fdf1e2;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --code-bg: #eef1f4;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151b;
    --bg-card: #1a2129;
    --text: #e4e9ee;
    --text-soft: #9aa7b4;
    --accent: #5aa3e8;
    --accent-soft: #17293c;
    --border: #2a333e;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    --ok: #57bb78;
    --ok-bg: #12291a;
    --warn: #e0a659;
    --warn-bg: #2e2214;
    --danger: #ef7066;
    --danger-bg: #331816;
    --code-bg: #232c36;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---------- Üst çubuk ---------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo { font-size: 22px; }
.header-search { flex: 1; max-width: 460px; margin-left: auto; position: relative; }

/* ---------- Arama ---------- */
.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
.search-results.open { display: block; }
.search-results a.result {
  display: block;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.search-results a.result:last-child { border-bottom: none; }
.search-results a.result:hover,
.search-results a.result.active {
  background: var(--accent-soft);
  text-decoration: none;
}
.search-results .r-title { font-weight: 600; font-size: 15px; }
.search-results .r-title mark { background: none; color: var(--accent); }
.search-results .r-cat {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.search-results .r-sum { font-size: 13.5px; color: var(--text-soft); margin-top: 2px; }
.search-results .r-match { color: var(--accent); font-weight: 600; }
.search-results .no-result { padding: 16px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Ana sayfa hero ---------- */
.hero {
  text-align: center;
  padding: 64px 20px 40px;
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
}
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p.sub { color: var(--text-soft); font-size: 17px; margin: 0 0 28px; }
.hero .search-box { max-width: 620px; margin: 0 auto; }
.hero .search-box input { padding: 15px 20px 15px 48px; font-size: 17px; background: var(--bg-card); }
.hero .search-box .search-icon { left: 18px; font-size: 18px; }
.hero .hints { margin-top: 14px; font-size: 13.5px; color: var(--text-soft); }
.hero .hints a { margin: 0 5px; }

/* ---------- İçerik düzeni ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }
.section-title {
  font-size: 22px;
  margin: 44px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: block;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  text-decoration: none;
}
.topic-card .t-icon { font-size: 26px; }
.topic-card h3 { margin: 8px 0 6px; font-size: 16.5px; }
.topic-card p { margin: 0; font-size: 13.5px; color: var(--text-soft); }
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li { border-bottom: 1px solid var(--border); }
.popular-list li:last-child { border-bottom: none; }
.popular-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: var(--text);
  font-size: 15.5px;
}
.popular-list a:hover { color: var(--accent); text-decoration: none; }
.popular-list .arrow { margin-left: auto; color: var(--text-soft); }

/* ---------- Makale sayfası ---------- */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}
.breadcrumb { font-size: 13.5px; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent); }
article.help {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 36px 42px 44px;
}
article.help h1 { font-size: 28px; margin: 0 0 6px; line-height: 1.3; }
article.help .lead { color: var(--text-soft); font-size: 16.5px; margin: 0 0 22px; }
article.help h2 {
  font-size: 21px;
  margin: 38px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
article.help h3 { font-size: 17px; margin: 24px 0 8px; }
article.help img.shot {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 14px 0 6px;
  display: block;
}
article.help .caption { font-size: 13px; color: var(--text-soft); margin: 4px 0 18px; }
article.help code, article.help kbd {
  background: var(--code-bg);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
article.help pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.5;
}
article.help pre code { background: none; padding: 0; }
article.help table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14.5px; }
article.help th, article.help td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
article.help th { background: var(--code-bg); }
.toc {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin: 20px 0 8px;
  font-size: 14.5px;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--accent); }

/* Adım listesi */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 16px 0; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 52px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -19px;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
ol.steps > li > strong:first-child { display: block; font-size: 16px; margin-bottom: 3px; }

/* Kutular */
.note, .tip, .warn2, .danger2 {
  border-radius: var(--radius);
  padding: 13px 17px;
  margin: 16px 0;
  font-size: 14.8px;
  border: 1px solid transparent;
}
.note  { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.tip   { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.warn2 { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.danger2 { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.note::before  { content: "ℹ️ "; }
.tip::before   { content: "💡 "; }
.warn2::before { content: "⚠️ "; }
.danger2::before { content: "🛑 "; }

/* Etiketler (arayüz buton adları) */
.ui {
  display: inline-block;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ui.green { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.ui.red { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }

/* İlgili konular */
.related {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.related h2 { border: none !important; margin-top: 0 !important; padding-top: 0 !important; font-size: 17px !important; }
.related ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related li a {
  display: inline-block;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13.5px;
}
.related li a:hover { text-decoration: none; filter: brightness(1.05); }

/* Alt bilgi */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 20px 40px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13.5px;
}
.site-footer a { color: var(--text-soft); text-decoration: underline; }

/* Mobil */
@media (max-width: 640px) {
  .site-header .inner { flex-wrap: wrap; }
  .header-search { max-width: none; flex-basis: 100%; order: 3; margin-left: 0; }
  article.help { padding: 24px 18px 30px; }
  .hero h1 { font-size: 26px; }
  ol.steps > li { padding-left: 44px; }
}
