/* ══════════════════════════════════════════
   Metrovy — Ortak Tasarım Sistemi
   Tüm alt sayfalar bu dosyayı kullanır.
   ══════════════════════════════════════════ */

:root {
  --bg: #09090c;
  --s1: #111115;
  --s2: #18181d;
  --s3: #202028;
  --border: #32323e;
  --border2: #44445a;
  --amber: #f59e0b;
  --amber-l: #fbbf24;
  --amber-d: #b45309;
  --amber-glow: rgba(245, 158, 11, 0.2);
  --amber-glow2: rgba(245, 158, 11, 0.08);
  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
  --text: #f0ede4;
  --text-muted: #a09caf;
  --text-dim: #6a6878;
  --radius: 12px;
  --radius-sm: 8px;
}

html[data-theme="light"] {
  --bg: #f7f3ea;
  --s1: #fffaf0;
  --s2: #f0e8d8;
  --s3: #e6dcc8;
  --border: #d6c7ac;
  --border2: #bca986;
  --amber: #b45309;
  --amber-l: #d97706;
  --amber-d: #92400e;
  --amber-glow: rgba(180, 83, 9, 0.18);
  --amber-glow2: rgba(180, 83, 9, 0.09);
  --red: #dc2626;
  --green: #16a34a;
  --blue: #2563eb;
  --text: #18140f;
  --text-muted: #62594b;
  --text-dim: #8a7f6d;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 85% 85%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 15% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
}

html[data-theme="light"] .bg-ambient {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(180, 83, 9, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 85% 85%, rgba(180, 83, 9, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 15% 70%, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.18;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
}

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 100px;
}

.wrapper.wide {
  max-width: 1100px;
}

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 42px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-m {
  color: var(--amber);
  font-style: italic;
}

.logo-rest {
  color: var(--text);
}

.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 12px;
  align-self: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

.theme-btn {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-btn:hover {
  color: var(--amber);
  border-color: var(--border2);
  background: var(--s3);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
}

.theme-btn .sun-icon {
  display: none;
}

html[data-theme="light"] .theme-btn .moon-icon {
  display: none;
}

html[data-theme="light"] .theme-btn .sun-icon {
  display: block;
}

/* ── Back link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--s2);
  transition: all 0.2s;
  margin-bottom: 36px;
}

.back-link:hover {
  color: var(--amber);
  border-color: var(--border2);
  background: var(--s3);
}

.back-link svg {
  width: 13px;
  height: 13px;
}

/* ── Sayfa / makale başlığı ── */
.article-hero {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-glow2);
  border: 1px solid var(--amber-d);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 18px;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.article-title em {
  color: var(--amber);
  font-style: italic;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 700px;
}

/* ── İçindekiler ── */
.toc {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 48px;
}

.toc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--amber);
  flex-shrink: 0;
}

.toc ol li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.toc ol li a:hover {
  color: var(--amber);
}

/* ── Makale bölümleri ── */
.article-section {
  margin-bottom: 56px;
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-number::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 18px;
}

.article-body p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.article-body p strong {
  color: var(--text);
  font-weight: 600;
}

.article-body p em {
  color: var(--amber);
  font-style: italic;
}

.article-body ul,
.article-body ol {
  color: var(--text-muted);
  margin: 0 0 16px 22px;
  font-size: 0.97rem;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body li strong {
  color: var(--text);
}

.article-body a {
  color: var(--amber);
  text-decoration: none;
}

.article-body a:hover {
  text-decoration: underline;
}

/* ── Bilgi kutusu ── */
.info-box {
  background: var(--amber-glow2);
  border: 1px solid var(--amber-d);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
}

.info-box p {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0;
}

.info-box .info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* ── Tablo ── */
.bpm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.88rem;
}

.bpm-table th {
  background: var(--s2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.bpm-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--text-muted);
}

.bpm-table tr:nth-child(even) td {
  background: var(--s1);
}

.bpm-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.bpm-table td.mono {
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-size: 0.82rem;
}

.table-scroll {
  overflow-x: auto;
}

/* ── Kart ızgarası ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.tip-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s;
}

.tip-card:hover {
  border-color: var(--border2);
}

.tip-icon {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: block;
}

.tip-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 6px;
}

.tip-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

a.tip-card {
  display: block;
  text-decoration: none;
}

/* ── CTA ── */
.cta-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  margin-top: 48px;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #09090c;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--amber-l);
  transform: translateY(-1px);
}

.cta-btn svg {
  width: 15px;
  height: 15px;
}

/* ── Kart / panel ── */
.card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg {
  width: 12px;
  height: 12px;
  color: var(--amber);
}

/* ── Form elemanları ── */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.input-field {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.input-field:focus {
  border-color: var(--amber-d);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--s3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5), 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.btn-secondary {
  padding: 10px 18px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: var(--amber-d);
  color: var(--amber);
  background: var(--s3);
}

.btn-secondary.active {
  background: var(--amber-glow2);
  border-color: var(--amber-d);
  color: var(--amber);
}

/* ── Ayraç ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── SSS akordeon ── */
.faq-item {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: var(--amber);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--amber);
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Sözlük ── */
.glossary-letter {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--amber);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.glossary-letter::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.glossary-item {
  margin-bottom: 18px;
}

.glossary-term {
  font-weight: 600;
  color: var(--text);
  font-size: 0.97rem;
}

.glossary-def {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--s1);
  margin-top: 40px;
  padding-bottom: 90px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 9px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--amber);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.footer-logo .logo-m {
  font-style: italic;
}

/* ── Reklam bandı ── */
.ad-section {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--s1);
  border-top: 1px solid var(--border);
  max-height: 70px;
  overflow: hidden;
}

.ad-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px;
}

.ad-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

.ad-slot {
  flex: 1;
  height: 50px;
  max-height: 50px;
  overflow: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Site Nav (belirgin sekme çubuğu) ── */
.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin: -20px 0 36px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 1;
  white-space: nowrap;
  text-align: center;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 4px);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}

.site-nav a .nav-ico {
  font-size: 0.9em;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--s2);
}

.site-nav a:hover .nav-ico {
  transform: translateY(-2px) rotate(-8deg) scale(1.15);
}

.site-nav a.active {
  background: var(--s3);
  color: var(--amber);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--border2);
}

.site-nav a.nav-new::after {
  content: attr(data-badge);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: #0d0d0c;
  background: var(--amber);
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 2px;
  animation: navPulse 2.2s ease-in-out infinite;
}

@keyframes navPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(0.94);
  }
}

/* ── Dil değiştirici ── */
.lang-switcher {
  display: flex;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--amber);
  color: #0d0d0c;
  font-weight: 700;
}

/* ── Scroll-reveal animasyonları ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 0.9, 0.35, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Kart hover canlılığı ── */
.tip-card,
.card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

a.tip-card:hover,
.tip-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-d);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--amber-glow2);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-nav a {
    font-size: 0.76rem;
    padding: 9px 10px;
  }

  header {
    align-items: flex-start;
  }

  .logo {
    font-size: 1.6rem;
  }

  .bpm-table {
    font-size: 0.78rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }
}
