/* DolarToday — finans temalı stil. Sade, yoğun veri odaklı; gradient hero/emoji yok. */

:root {
  --navy-900: #0f1f2e;
  --navy-800: #16293b;
  --navy-700: #1f3b53;
  --navy-600: #2a4a66;
  --ink: #1a2733;
  --muted: #66788a;
  --line: #e3e8ee;
  --line-strong: #cdd6df;
  --bg: #f4f6f9;
  --card: #ffffff;
  --green: #138a4a;
  --green-bg: #e7f5ec;
  --red: #cf2e2e;
  --red-bg: #fdeaea;
  --gold: #b8860b;
  --accent: #1c8a4b;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .04);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Canlı güncelleme yanıp sönmesi */
@keyframes flash-up-kf   { from { background: rgba(19,138,74,.28); } to { background: transparent; } }
@keyframes flash-down-kf { from { background: rgba(207,46,46,.24); } to { background: transparent; } }
.flash-up   { animation: flash-up-kf .9s ease-out; border-radius: 4px; }
.flash-down { animation: flash-down-kf .9s ease-out; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .flash-up, .flash-down { animation: none; } }
.up   { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg, .brand .brand-logo { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand .wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand .wordmark .a { color: var(--navy-800); }
.brand .wordmark .b { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--ink);
  font-size: 14.5px;
}
.main-nav a:hover { background: var(--bg); color: var(--accent); }
.main-nav a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 7px 9px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after  { position: absolute; top: 5px; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--navy-900);
  color: #e7eef5;
  border-bottom: 1px solid #0a151f;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 9px 0;
  animation: ticker-scroll 90s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.ticker-item .code { color: #9fb3c4; font-weight: 600; }
.ticker-item .val { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Page intro ---------- */
.page-head { padding: 22px 0 8px; }
.page-head h1 { font-size: 25px; margin: 0 0 4px; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: 14px; margin: 0; }
.updated { color: var(--muted); font-size: 12.5px; }
.updated b { color: var(--ink); font-weight: 600; }

/* ---------- Featured tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 6px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: block;
}
.tile:hover { border-color: var(--line-strong); }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; }
.tile .t-name { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .t-code { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.tile .t-val { font-size: 26px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.02em; }
.tile .t-change { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.chg-badge { padding: 1px 7px; border-radius: 4px; font-size: 12.5px; font-weight: 600; }
.chg-badge.up   { background: var(--green-bg); }
.chg-badge.down { background: var(--red-bg); }
.chg-badge.flat { background: var(--bg); }

/* ---------- Rate table ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 16px 0;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 16px; margin: 0; }
.panel-head .tag { font-size: 12px; color: var(--muted); }

table.rates { width: 100%; border-collapse: collapse; }
table.rates th, table.rates td { padding: 11px 16px; text-align: right; }
table.rates th:first-child, table.rates td:first-child { text-align: left; }
table.rates thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); font-weight: 600; background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
table.rates tbody tr { border-bottom: 1px solid var(--line); transition: background-color .18s ease, box-shadow .18s ease; }
table.rates tbody tr:last-child { border-bottom: 0; }
table.rates tbody tr:hover { background: #f6faf7; box-shadow: inset 3px 0 0 var(--accent); }
table.rates td.val { transition: color .35s ease; }

/* Canlı göstergesi (nabız) */
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--green);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; margin-left: 8px; }
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(19,138,74,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(19,138,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(19,138,74,0); }
}
@media (prefers-reduced-motion: reduce) { .live-badge .dot { animation: none; } }
table.rates td .cur { display: flex; align-items: center; gap: 10px; }
table.rates td .cur .nm { font-weight: 600; }
table.rates td .cur .cd { color: var(--muted); font-size: 12.5px; }
table.rates td.val { font-variant-numeric: tabular-nums; font-weight: 600; }
.flag {
  width: 22px; height: 16px; border-radius: 2px; flex: 0 0 22px;
  background: var(--line); display: inline-block; object-fit: cover;
  border: 1px solid rgba(0,0,0,.05);
}
.flag.gold { background: linear-gradient(135deg, #f6d365, #c79a1e); }
/* Kripto rozeti */
.coin {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--accent));
  color: #fff; font-weight: 700; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Geçmiş grafiği ---------- */
.chart { margin-top: 18px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.chart-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.chart-tabs { display: inline-flex; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.chart-tabs button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 4px 11px; border-radius: 5px; cursor: pointer; transition: background-color .15s, color .15s; }
.chart-tabs button:hover { color: var(--ink); }
.chart-tabs button.active { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.chart-minmax { font-size: 12px; color: var(--muted); text-align: right; margin-bottom: 4px; min-height: 16px; }
.chart-svg { width: 100%; height: 90px; display: block; }

/* ---------- Converter ---------- */
.converter { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 11px 12px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.swap-btn {
  border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius);
  width: 42px; height: 44px; cursor: pointer; font-size: 18px; color: var(--navy-700);
}
.swap-btn:hover { background: var(--bg); }
.conv-result { margin-top: 16px; font-size: 20px; }
.conv-result b { font-size: 26px; }

/* ---------- SEO içerik bloğu ---------- */
.seo-block h2 { font-size: 19px; margin: 22px 0 8px; letter-spacing: -.01em; }
.seo-block h2:first-child { margin-top: 0; }
.seo-block h3 { font-size: 15.5px; margin: 16px 0 4px; }
.seo-block p { color: #41525f; line-height: 1.7; margin: 0 0 12px; }
.seo-block ol, .seo-block ul { color: #41525f; line-height: 1.8; margin: 0 0 14px; padding-left: 20px; }
.seo-block .popular-calc { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.seo-block .popular-calc a {
  display: block; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); font-weight: 600; font-size: 14px; color: var(--navy-700);
}
.seo-block .popular-calc a:hover { border-color: var(--accent); color: var(--accent); }
.seo-block .faq h3 { color: var(--ink); }

/* ---------- Çevirici (yeni) ---------- */
.conv2 { display: flex; align-items: stretch; gap: 12px; }
.conv-card { flex: 1; border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px 16px; background: #fff; min-width: 0; }
.conv-card label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.conv-row { display: flex; align-items: center; gap: 10px; }
.conv-row input {
  flex: 1; min-width: 0; border: 0; padding: 0; font-size: 26px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; background: transparent; outline: none;
}
.cv-select { display: flex; align-items: center; gap: 7px; border-left: 1px solid var(--line); padding-left: 10px; flex: 0 0 auto; }
.cv-select .cv-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; border: 1px solid rgba(0,0,0,.06); }
.cv-select select {
  border: 0; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer; outline: none; max-width: 150px;
}
.cv-swap {
  flex: 0 0 auto; align-self: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy-700); font-size: 18px; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.cv-swap:hover { background: var(--bg); transform: rotate(180deg); }
.conv-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.conv-rate { font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes cv-flash-kf { from { background: rgba(19,138,74,.16); } to { background: transparent; } }
.cv-flash { animation: cv-flash-kf .7s ease-out; border-radius: 4px; }
@media (max-width: 620px) {
  .conv2 { flex-direction: column; }
  .cv-swap { transform: rotate(90deg); }
  .cv-swap:hover { transform: rotate(270deg); }
}

/* ---------- Content / blog ---------- */
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.article h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.02em; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.article .body { font-size: 16px; line-height: 1.7; }
.article .body p { margin: 0 0 16px; }
.article .body h2 { font-size: 21px; margin: 28px 0 10px; }
.sidebar .panel { margin-top: 0; }

.post-card { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-card:last-child { border-bottom: 0; }
.post-card .thumb { width: 110px; height: 74px; border-radius: var(--radius); background: var(--bg); flex: 0 0 110px; object-fit: cover; }
.post-card h3 { font-size: 16px; margin: 0 0 5px; }
.post-card .ex { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 16px 0; }
.bcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.bcard:hover { border-color: var(--line-strong); }
/* Kapak her zaman 1200x630 oranında (og:image ile aynı görsel) */
.bcard .cover, .bcard .cover-ph { aspect-ratio: 1200 / 630; width: 100%; height: auto; object-fit: cover; display: block; background: #e8edf2; }
.cover-ph { display: flex; align-items: center; justify-content: center; color: #9fb0bf; font-size: 13px; }
.bcard .bcard-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bcat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.bcard h3 { font-size: 16.5px; margin: 0; line-height: 1.35; letter-spacing: -.01em; }
.bcard h3 a { color: var(--ink); }
.bcard h3 a:hover { color: var(--accent); }
.bcard .ex { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }

/* Yazar künyesi */
.byline { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 4px; }
.byline .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--line); flex: 0 0 30px; }
.byline .who { font-size: 12.5px; line-height: 1.3; }
.byline .who b { display: block; color: var(--ink); font-weight: 600; }
.byline .who span { color: var(--muted); }

/* Öne çıkan büyük yazı */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 16px 0 24px; }
.feature .cover, .feature .cover-ph { aspect-ratio: 1200 / 630; width: 100%; height: 100%; object-fit: cover; }
.feature .fbody { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.feature h2 { font-size: 26px; margin: 0; line-height: 1.25; letter-spacing: -.02em; }
.feature h2 a { color: var(--ink); }
.feature .ex { color: var(--muted); font-size: 15px; margin: 0; }

/* Tek yazı: ortalanmış, geniş; kapak tam görünür */
.article-single { max-width: 900px; margin: 0 auto; }
.related-section { max-width: 900px; margin: 30px auto 0; }
.related-section h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.02em; }

/* Makale (tek yazı) kapağı — görselin TAMAMI görünür (doğal oran, kırpma yok) */
.article .article-cover { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 20px; display: block; }
.article .author-box { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--bg); border-radius: var(--radius); margin: 24px 0; }
.article .author-box .avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--line); flex: 0 0 54px; }
.article .author-box .ab-name { font-weight: 700; }
.article .author-box .ab-title { color: var(--muted); font-size: 13px; }
.article .author-box .ab-bio { color: #41525f; font-size: 13.5px; margin: 4px 0 0; }

/* Yazar profil başlığı */
.author-hero { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin: 16px 0; }
.author-hero .avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--line); flex: 0 0 76px; }
.author-hero h1 { margin: 0; font-size: 24px; }
.author-hero .a-title { color: var(--accent); font-weight: 600; font-size: 14px; }
.author-hero .a-bio { color: #41525f; font-size: 14px; margin: 6px 0 0; max-width: 70ch; }

/* Sayfalama */
.pagination-wrap { margin: 22px 0; }
.pagination-wrap nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination-wrap a, .pagination-wrap span {
  padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 14px; text-decoration: none;
}
.pagination-wrap a:hover { background: var(--bg); }
.pagination-wrap [aria-current] span, .pagination-wrap .active span { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature .cover, .feature .cover-ph { aspect-ratio: 1200/630; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- Hata sayfaları (404 vb.) ---------- */
.errpage { text-align: center; padding: 54px 18px 40px; }
.errpage .code {
  font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--navy-800), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.errpage h1 { font-size: 26px; margin: 14px 0 6px; letter-spacing: -.02em; }
.errpage p.lead { color: var(--muted); font-size: 16px; margin: 0 auto 22px; max-width: 52ch; }
.errpage .err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.err-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 640px; margin: 0 auto; }
.err-chips a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  font-weight: 600; font-size: 14px; color: var(--ink); box-shadow: var(--shadow);
}
.err-chips a:hover { border-color: var(--accent); color: var(--accent); }
.err-chips a .val { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.err-chips .flag { width: 20px; height: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebccb; margin-top: 36px; padding: 34px 0 22px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer a { color: #aebccb; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #1d2f40; margin-top: 26px; padding-top: 16px; color: #7d909f; font-size: 12.5px; }
.legal-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* Sponsor (Netlen) — koyu zeminde görünmesi için açık renk çip */
.sponsor { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sponsor .sponsor-label { color: #7d909f; font-size: 12px; white-space: nowrap; }
.sponsor img {
  display: block; height: 30px; width: auto;
  background: #fff; padding: 6px 10px; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .15s ease;
}
.sponsor:hover img { transform: translateY(-1px); }
@media (max-width: 520px) { .legal-row { justify-content: flex-start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.btn:hover { background: #167a40; color: #fff; }
.btn.ghost { background: #fff; color: var(--navy-700); border: 1px solid var(--line-strong); }
.btn.ghost:hover { background: var(--bg); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .converter { grid-template-columns: 1fr; }
  .swap-btn { width: 100%; transform: rotate(90deg); }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 18px 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  table.rates th:nth-child(2), table.rates td:nth-child(2) { display: none; } /* alış sütununu gizle */
  .footer-grid { grid-template-columns: 1fr; }
}
