/* Ekibinolsun — şablon (styles.css) üzerine eklenen site stilleri */

:root {
  --eo-radius: 24px;
  --eo-ink: #1B1D1E;
  --eo-muted: #5a5e62;
  --eo-line: #e8e8e8;
  --eo-soft: #F4F4F4;
  --eo-primary: #4928FD;
  --eo-wa: #25D366;
}

html { scroll-padding-top: 110px; }
.scroll-mt { scroll-margin-top: 110px; }

/* Marka */
.brand img { border-radius: 12px; }
.brand-wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--eo-ink);
  line-height: 1;
}
.offcanvas .brand-wordmark { font-size: 1.2rem; }

/* Başlıklar: iç sayfalarda şablonun 8rem h1'i çok büyük */
.page-title {
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.post-title { max-width: 24ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); }
.hero-lead { max-width: 60ch; }
.home-hero h1 { letter-spacing: -0.04em; }

/* Breadcrumb */
.breadcrumb { --bs-breadcrumb-divider: "›"; }
.breadcrumb a { color: var(--eo-muted); }
.breadcrumb a:hover { color: var(--eo-ink); }

/* Menü açılır listesi */
.header .dropdown-menu {
  border-radius: 20px;
  min-width: 300px;
  margin-top: 10px !important;
}
.header .dropdown-item { border-radius: 12px; padding: 10px 12px; font-weight: 500; }
.header .dropdown-item:hover { background: var(--eo-soft); }
.header .nav-link.dropdown-toggle::after { vertical-align: 0.15em; margin-left: 6px; }
.offcanvas .navbar-nav .nav-link { padding-top: 6px; padding-bottom: 6px; }

/* Yüzen butonlar */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 98;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--eo-wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transition: transform .2s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); }
#scrollToTopBtn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 98;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--eo-ink);
  color: #fff;
  align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}
.btn-success { --bs-btn-color: #fff; --bs-btn-bg: #1faa55; --bs-btn-border-color: #1faa55; --bs-btn-hover-bg: #178a45; --bs-btn-hover-border-color: #178a45; --bs-btn-hover-color: #fff; }

/* Kartlar */
.post-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .06); }
.post-card .card-img-top { width: 100%; height: auto; max-width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--eo-line); }
.icon-tile {
  width: 56px; height: 56px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eo-soft);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--eo-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; flex-shrink: 0;
}
.stat-big { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }

/* Tablolar */
.table-compare { min-width: 560px; }
.table-compare th {
  background: var(--eo-soft);
  font-weight: 600;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 14px 18px;
  white-space: nowrap;
}
.table-compare td { padding: 14px 18px; }
.table-compare tr:last-child td { border-bottom: 0; }
.table-compare .yes { color: #1faa55; font-weight: 600; }
.table-compare .no { color: #d9534f; font-weight: 600; }

/* Makale tipografisi */
.prose { font-size: 1.0625rem; line-height: 1.75; color: #2b2e30; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2em; margin-bottom: .6em; letter-spacing: -0.02em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; margin-bottom: .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a:not(.btn) { color: var(--eo-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--eo-ink); }
.prose blockquote {
  border-left: 4px solid var(--eo-primary);
  background: var(--eo-soft);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  font-style: italic;
}
.prose table { width: 100%; font-size: .95rem; border-collapse: collapse; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--eo-line); border-radius: 16px; }
.prose table th { background: var(--eo-soft); text-align: left; }
.prose table th, .prose table td { padding: 10px 14px; border-bottom: 1px solid var(--eo-line); vertical-align: top; }
.prose table tr:last-child td { border-bottom: 0; }
.prose code { background: var(--eo-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; color: #b1236b; }
.prose pre { background: #1B1D1E; color: #f4f4f4; padding: 18px 20px; border-radius: 16px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose .accordion-body { font-size: 1rem; }
.key-takeaways {
  background: linear-gradient(90deg, #eef9fd 0%, #fff 60%, #fdf6e6 100%);
  border: 1px solid var(--eo-line);
  border-radius: 20px;
  padding: 20px 22px;
}
.callout {
  border: 1px solid var(--eo-line);
  border-radius: 20px;
  padding: 20px 22px;
  background: #fff;
}
.callout-title { font-weight: 600; margin-bottom: .4em; display: flex; gap: 8px; align-items: center; }
.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  border-top: 1px solid var(--eo-line);
  padding-top: 24px;
}
.author-box img { border-radius: 14px; flex-shrink: 0; }
.toc { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.toc a { color: var(--eo-muted); }
.toc a:hover, .toc a.active { color: var(--eo-ink); font-weight: 500; }
@media (min-width: 992px) {
  .sticky-aside { position: sticky; top: 110px; }
}

/* Sözlük */
.glossary-letter { scroll-margin-top: 110px; }
.glossary dt { font-weight: 600; font-size: 1.1rem; margin-top: 1.4rem; scroll-margin-top: 110px; }
.glossary dd { margin: .3rem 0 0; color: #3b3f42; }
.letter-nav a {
  display: inline-flex; width: 38px; height: 38px; border-radius: 10px;
  align-items: center; justify-content: center; background: var(--eo-soft); color: var(--eo-ink); font-weight: 600;
}
.letter-nav a:hover { background: var(--eo-ink); color: #fff; }

/* Formlar */
.form-check-input { width: 1.15em; height: 1.15em; margin-top: .25em; }
.form-check-label a { text-decoration: underline; }
.form-control, .form-select { min-height: 48px; }
textarea.form-control { min-height: 120px; }

/* Hesaplayıcı */
.calc-row { display: grid; grid-template-columns: 1fr 160px 60px; gap: 12px; align-items: center; }
.calc-row + .calc-row { margin-top: 12px; }
.calc-row .form-control { text-align: right; }
@media (max-width: 575px) {
  .calc-row { grid-template-columns: 1fr 1fr 44px; }
}
.calc-result { position: sticky; top: 110px; }
.calc-bar { height: 14px; border-radius: 999px; background: var(--eo-soft); overflow: hidden; }
.calc-bar > span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }

/* Çerez bandı */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080;
  max-width: 640px; margin: 0 auto;
  background: #fff; border: 1px solid var(--eo-line); border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
  padding: 18px 20px;
}

/* Yardımcılar */
.text-balance { text-wrap: balance; }
.maxw-60 { max-width: 60ch; }
.logo-strip { filter: grayscale(1); opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Blog kapak görseli */
.post-cover { max-width: 880px; margin: 0 auto; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--eo-radius); display: block; }
.post-cover figcaption { font-size: .8rem; color: var(--eo-muted); text-align: right; margin-top: 8px; }
.post-cover figcaption a { color: inherit; text-decoration: underline; }
