/*
Theme Name: Finansal Dedektif
Theme URI: https://finansaldedektif.com
Author: Finansal Dedektif
Description: Kişisel finans ve öğrenme yolculuğu teması. Sarı-siyah kimlik, Gutenberg uyumlu.
Version: 1.0
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finansal-dedektif
Tags: blog, custom-colors, custom-menu, featured-images, gutenberg-blocks
*/

/* ─── Değişkenler ─── */
:root {
  --black: #0a0a0a;
  --gold: #F5C518;
  --gold-dark: #9a7800;
  --gold-pale: #FFF8DC;
  --gold-muted: #FDF3C0;
  --cream: #FAFAF5;
  --white: #ffffff;
  --ink: #111111;
  --muted: #5a5a4e;
  --border: #e2ddc8;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Serif 4', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 860px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ─── Tipografi ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ─── */
.site-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.site-content { padding: 3rem 0; }

/* ─── Navigasyon ─── */
#masthead {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-branding a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-box {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--black);
  flex-shrink: 0;
}
.site-title-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.site-title-text span { color: var(--gold); }

/* Ana menü */
#primary-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}
#primary-menu a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  transition: color 0.2s;
}
#primary-menu a:hover,
#primary-menu .current-menu-item a { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.nav-cta:hover { background: #d4a800 !important; color: var(--black) !important; }

/* Mobil menü */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
}

/* ─── Hero ─── */
.hero-section {
  background: var(--black);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(245,197,24,0.04) 39px, rgba(245,197,24,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(245,197,24,0.04) 39px, rgba(245,197,24,0.04) 40px);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-section h1 {
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-section h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-sub {
  color: #999;
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── Butonlar ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--black);
  padding: 12px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: #d4a800; color: var(--black); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  padding: 12px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Ticker ─── */
.ticker-bar {
  background: var(--gold);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-up { color: #1a5c2a; }
.ticker-down { color: #8b1a1a; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── Hakkımda Strip ─── */
.about-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}
.about-strip-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.about-strip h2 { margin-bottom: 1rem; }
.about-strip p { color: var(--muted); font-weight: 300; max-width: 620px; }
.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-dark);
  background: var(--gold-muted);
  padding: 6px 14px;
  border-radius: 2px;
}

/* ─── Ana sayfa bölüm başlıkları ─── */
.section-header { margin-bottom: 2rem; }
.section-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; }
.section-sub { color: var(--muted); font-weight: 300; font-size: 0.95rem; }
.section-divider { height: 1px; background: var(--border); margin: 3.5rem 0; }

/* ─── Kart grid ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-muted);
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.9rem;
  align-self: flex-start;
}
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--ink); line-height: 1.35; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; font-weight: 300; flex: 1; }
.card-footer-meta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #999;
}

/* ─── Şeffaflık bloğu ─── */
.transparency-block {
  background: var(--black);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.transparency-block::after {
  content: 'ŞEFFAF';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(245,197,24,0.05);
  pointer-events: none;
  letter-spacing: 0.2em;
}
.tb-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.tb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.tb-key { font-family: var(--font-mono); font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.tb-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: #fff; }
.tb-val.gold { color: var(--gold); }
.tb-val.dim { color: #666; }
.tb-note { font-size: 12px; color: #444; margin-top: 3px; }

/* ─── Yakında bloğu ─── */
.coming-soon {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  text-align: center;
}
.coming-soon h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.5rem; }
.coming-soon p { font-size: 13.5px; color: var(--muted); font-weight: 300; max-width: 400px; margin: 0 auto; }
.cs-badge {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--gold-muted);
  color: var(--gold-dark);
  padding: 4px 14px;
  border-radius: 2px;
}

/* ─── Tekil yazı sayfası ─── */
.single-post-wrap { max-width: 680px; margin: 0 auto; padding: 3rem 1.5rem; }
.post-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.post-category-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-muted);
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1rem;
}
.post-header h1 { margin-bottom: 1rem; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; gap: 1.5rem; flex-wrap: wrap; }
.entry-content { font-size: 1.05rem; line-height: 1.9; }
.entry-content h2 { margin: 2.5rem 0 1rem; }
.entry-content h3 { margin: 2rem 0 0.8rem; }
.entry-content p { margin-bottom: 1.4rem; color: var(--ink); }
.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gold-pale);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content ul, .entry-content ol { margin: 1rem 0 1.4rem 1.5rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content a { color: var(--gold-dark); border-bottom: 1px solid var(--gold-muted); }
.entry-content a:hover { border-color: var(--gold); }
.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--gold-muted);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--gold-dark);
}

/* ─── Arşiv / Blog listesi ─── */
.archive-wrap { max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.5rem; }
.archive-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.archive-header h1 { font-size: 1.8rem; }
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.post-list-item:last-child { border-bottom: none; }
.post-list-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); min-width: 100px; padding-top: 4px; }
.post-list-content h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.post-list-content h2 a { color: var(--ink); }
.post-list-content h2 a:hover { color: var(--gold-dark); }
.post-list-content p { font-size: 14px; color: var(--muted); font-weight: 300; margin: 0; }

/* ─── Footer ─── */
#colophon {
  background: var(--black);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand p { color: #4a4a4a; font-size: 13px; margin-top: 8px; font-weight: 300; line-height: 1.8; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #4a4a4a; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { color: #333; font-family: var(--font-mono); font-size: 11px; }
.footer-bottom span { color: var(--gold); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  #primary-menu { display: none; }
  #primary-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--black); padding: 1.5rem; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .post-list-item { flex-direction: column; gap: 0.5rem; }
  .hero-section { padding: 3rem 1.5rem; }
}
