/* BulutMail Rehber — paylaşımlı stil (ana site tokenlarıyla uyumlu, dış bağımlılık yok) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/assets/fonts/inter/inter.woff2) format('woff2');
}

:root {
  --blue-top: #007bdc;
  --blue-top-dark: #0059b3;
  --bg-body: #f8fafc;
  --card-bg: #ffffff;
  --border-soft: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #0062b3;
  --accent-soft: #e0f2fe;
  --accent-hover: #005fae;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header (ana site ile birebir) ---- */
header {
  background: linear-gradient(135deg, var(--blue-top) 0%, var(--blue-top-dark) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-left picture { display: contents; }
.nav-logo { display: inline-flex; align-items: center; line-height: 0; }
.nav-logo-img { height: 44px; width: auto; transition: transform 0.2s ease; }
.nav-logo:hover .nav-logo-img { transform: scale(1.05); }
.nav-menu { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-menu a { color: #fff; opacity: 0.88; padding: 6px 2px; letter-spacing: 0.01em; transition: opacity 0.25s ease; position: relative; }
.nav-menu a:hover { opacity: 1; text-decoration: none; }
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: #fff; transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.btn {
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  padding: 10px 20px; font-size: 14px; letter-spacing: 0.01em; white-space: nowrap;
  color: #ffffff; border-radius: 10px; transition: all 0.2s ease; gap: 6px; text-decoration: none;
}
.btn-outline-light { background: rgba(255, 255, 255, 0.08); }
.btn-primary { background: #ffffff; color: var(--blue-top-dark); border-color: #ffffff; box-shadow: var(--shadow-md); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); transform: translateY(-1px); text-decoration: none; }
.btn-primary:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn:active { transform: translateY(0); }
article h2, article h3 { scroll-margin-top: 88px; }

/* ---- Layout ---- */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.breadcrumb { max-width: 780px; margin: 20px auto 0; padding: 0 20px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
main { padding: 8px 0 56px; }

/* ---- Article typography ---- */
article h1, .hub h1 {
  font-size: 32px; font-weight: 800; line-height: 1.25;
  margin: 18px 0 10px; letter-spacing: -0.01em;
}
.lead { font-size: 18px; color: var(--text-muted); margin: 0 0 28px; }
article h2 {
  font-size: 23px; font-weight: 700; margin: 40px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
article h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 24px; }
article li { margin: 6px 0; }
article strong { color: var(--text-main); font-weight: 600; }
.updated { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* ---- Boxes ---- */
.note, .tip, .warn {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 16px; border-radius: 8px; margin: 20px 0; font-size: 15px;
}
.tip { border-left-color: #10b981; background: #d1fae5; }
.warn { border-left-color: #f59e0b; background: #fef3c7; }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }

/* ---- Kısaca / TL;DR ---- */
.tldr {
  background: var(--card-bg); border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 16px 18px; margin: 0 0 28px; box-shadow: var(--shadow-sm);
}
.tldr-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 4px 0; }

/* ---- Settings table ---- */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card-bg);
  border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th { background: #f1f5f9; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td code, p code, li code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: .92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---- FAQ (details) ---- */
.faq { margin: 16px 0 8px; }
.faq details { background: var(--card-bg); border: 1px solid var(--border-soft);
  border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: .5em; height: .5em; flex: 0 0 auto;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq .faq-a { padding: 0 18px 16px; color: var(--text-muted); }

/* ---- Hub (rehber index) ---- */
.cat { margin: 36px 0 0; }
.cat h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; border: 0; padding: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  display: block; background: var(--card-bg); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbd5e1; text-decoration: none; }
.card-title { font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.card-desc { font-size: 14px; color: var(--text-muted); }

/* ---- Footer (ana site ile birebir) ---- */
footer {
  border-top: 1px solid var(--border-soft); background: #ffffff; margin-top: 80px;
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 20px; font-size: 14px; color: var(--text-muted); align-items: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color 0.2s ease; font-weight: 500; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---- Araçlar / formlar ---- */
.field { margin: 16px 0; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-soft);
  border-radius: 8px; font: inherit; background: #fff; color: var(--text-main);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.tool-cols > div { min-width: 0; }
@media (max-width: 720px) { .tool-cols { grid-template-columns: 1fr; gap: 0; } }
.checks label { display: inline-flex; align-items: center; gap: 7px; margin: 4px 16px 4px 0; font-weight: 500; font-size: 15px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--border-soft); color: var(--text-main); text-transform: uppercase; letter-spacing: .02em; }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-bad { background: #fee2e2; color: #991b1b; }
.badge-warn { background: #fef3c7; color: #92400e; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  border: 0; padding: 11px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--accent);
  border: 1px solid var(--border-soft); padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.result { background: var(--card-bg); border: 1px solid var(--border-soft); border-radius: 10px; padding: 18px; margin-top: 18px; }
.result[hidden] { display: none; }
.copy-ok { color: #10b981; font-size: 13px; font-weight: 600; }
/* şifre üretici */
.pw-out { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 20px;
  word-break: break-all; background: #f1f5f9; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.meter { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; margin: 8px 0 4px; }
.meter > span { display: block; height: 100%; width: 0; transition: width .2s ease, background .2s ease; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
/* imza önizleme */
.sig-preview { border: 1px solid var(--border-soft); border-radius: 10px; padding: 18px; background: #fff; margin-top: 8px; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
}
@media (max-width: 640px) {
  article h1, .hub h1 { font-size: 26px; }
}
