/* ==========================================================================
   Bubixo AI Piyasa Analisti — SEO açılış sayfaları (/xx/<slug>/)
   ==========================================================================

   NEDEN AYRI DOSYA: açılış sayfaları uygulamayı YÜKLEMEZ. `styles.css` 41 KB
   ve tamamı araç arayüzü için; okuma amaçlı bir metin sayfasına bağlamak
   kullanılmayan CSS taşımak olurdu. Buradaki tema DEĞİŞKENLERİ styles.css ile
   BİREBİR aynı değerlerdir; iki dosya arasında renk kayması olmasın diye
   değeri değiştirirken ikisini birlikte güncelleyin.

   YÖN: Arapça sayfalar dir="rtl". Bu dosyada `left/right` yerine MANTIKSAL
   özellikler (`margin-inline`, `padding-inline-start`, `border-inline-start`)
   kullanılır; böylece RTL için ayrı bir kural bloğu gerekmez.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg:            #0a0d13;
  --surface-1:     #0e1117;
  --surface-2:     #141a23;
  --surface-3:     #1b222d;
  --border:        rgba(148,163,184,0.16);
  --border-strong: rgba(148,163,184,0.28);

  --text-primary:   #e6edf3;
  --text-secondary: #9aa4b2;
  --text-muted:     #6b7684;

  --brand:       #c4406f;
  --brand-soft:  rgba(196,64,111,0.14);
  --brand-hover: #d84f7f;

  --warning:  #c98500;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,0.42);
}

/* AÇIK TEMA.
   Açılış sayfaları JavaScript YÜKLEMEZ — uygulamanın `localStorage`
   ('bubixo-theme') tercihini okuyamazlar ve satır içi bir betikle okumak
   vhost CSP'sine takılır (`script-src 'self' 'sha256-…'`, enjekte edilen
   betik SESSİZCE engellenir). O yüzden buradaki tercih işletim sisteminden
   gelir; uygulamanın kendi yedeği de zaten `prefers-color-scheme`.
   `[data-theme]` bloğu ayrıca duruyor ki gelecekte bir tema anahtarı
   eklenirse aynı değişkenler geçerli olsun. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg:            #f6f7f9;
    --surface-1:     #ffffff;
    --surface-2:     #f2f4f7;
    --surface-3:     #e8ebf0;
    --border:        rgba(15,23,42,0.12);
    --border-strong: rgba(15,23,42,0.22);
    --text-primary:   #0f172a;
    --text-secondary: #52525b;
    --text-muted:     #7c828c;
    --brand:       #b1315f;
    --brand-soft:  rgba(177,49,95,0.10);
    --brand-hover: #c33a6c;
    --warning: #eda100;
    --shadow: 0 8px 28px rgba(15,23,42,0.10);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:            #f6f7f9;
  --surface-1:     #ffffff;
  --surface-2:     #f2f4f7;
  --surface-3:     #e8ebf0;
  --border:        rgba(15,23,42,0.12);
  --border-strong: rgba(15,23,42,0.22);
  --text-primary:   #0f172a;
  --text-secondary: #52525b;
  --text-muted:     #7c828c;
  --brand:       #b1315f;
  --brand-soft:  rgba(177,49,95,0.10);
  --brand-hover: #c33a6c;
  --warning: #eda100;
  --shadow: 0 8px 28px rgba(15,23,42,0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

/* --------------------------------------------------------------- üst çubuk */

.lp-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}
.lp-brand:hover { color: var(--text-primary); }

.lp-mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.lp-top-spacer { flex: 1 1 auto; }

.lp-top-cta {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 13px;
  white-space: nowrap;
}
.lp-top-cta:hover { background: var(--surface-3); color: var(--text-primary); }

/* ------------------------------------------------------------------- düzen */

.lp-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

/* --------------------------------------------------------- kırıntı yolu */

.lp-crumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.lp-crumbs a { color: var(--text-secondary); text-decoration: none; }
.lp-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.lp-crumbs .sep { margin-inline: 7px; opacity: .6; }

/* ------------------------------------------------------------------- giriş */

.lp-h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.lp-lead {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------- CTA */

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  margin: 0 0 30px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.lp-cta-text { flex: 1 1 240px; min-width: 0; }
.lp-cta-title { font-weight: 700; font-size: 15px; margin: 0 0 3px; }
.lp-cta-note { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.lp-btn:hover { background: var(--brand-hover); color: #fff; }

/* İkinci CTA (radar) — birincil düğmeyle aynı ağırlıkta OLMAMALI, yoksa
   kullanıcı hangisinin ana eylem olduğunu okuyamaz. */
.lp-btn-2 {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.lp-btn-2:hover { background: var(--surface-3); color: var(--text-primary); }

/* ---------------------------------------------------------------- bölümler */

.lp-body h2 {
  margin: 34px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.lp-body p {
  margin: 0 0 13px;
  color: var(--text-secondary);
}
.lp-body p:last-child { margin-bottom: 0; }
.lp-body strong { color: var(--text-primary); font-weight: 650; }

/* ---------------------------------------------------------- ilgili sayfalar */

.lp-related { margin-top: 40px; }
.lp-related h2 { margin-bottom: 14px; }

.lp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.lp-rel {
  display: block;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  text-decoration: none;
  /* Grid öğesi varsayılan `min-width:auto` alır; uzun başlık kartı taşırır. */
  min-width: 0;
}
.lp-rel:hover { border-color: var(--border-strong); background: var(--surface-2); }
.lp-rel-title {
  display: block;
  font-weight: 650;
  font-size: 14.5px;
  color: var(--brand);
  margin-bottom: 4px;
}
.lp-rel:hover .lp-rel-title { color: var(--brand-hover); }
.lp-rel-blurb {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------------- SSS */

.lp-faq { margin-top: 40px; }
.lp-faq h2 { margin-bottom: 6px; }

.lp-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.lp-faq-item:last-child { border-bottom: 0; }
.lp-faq-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
}
.lp-faq-item p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* ---------------------------------------------------------------- uyarı */

.lp-disclaimer {
  margin-top: 36px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--warning);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.lp-disclaimer h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .01em;
}
.lp-disclaimer p { margin: 0; font-size: 13px; color: var(--text-secondary); }

/* ------------------------------------------------------------- dil menüsü */

/* Dil bağlantıları hreflang'in İNSAN tarafındaki karşılığıdır. İçerik içi
   bağlantı sayılmaz; bu yüzden sayfanın en altında, ayrı bir nav içinde. */
.lp-langs {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}
.lp-langs a { color: var(--text-secondary); text-decoration: none; }
.lp-langs a:hover { color: var(--brand); text-decoration: underline; }
.lp-langs [aria-current="page"] { color: var(--text-primary); font-weight: 700; }

/* ------------------------------------------------------------------ altlık */

.lp-foot {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.lp-foot a { color: var(--text-secondary); text-decoration: none; }
.lp-foot a:hover { color: var(--brand); text-decoration: underline; }

/* ------------------------------------------------------------------ mobil */

@media (max-width: 620px) {
  .lp-wrap { padding: 20px 15px 48px; }
  .lp-h1 { font-size: 24px; }
  .lp-lead { font-size: 15.5px; }
  .lp-body h2 { font-size: 19px; margin-top: 28px; }
  .lp-cta { padding: 15px; }
  .lp-btn { width: 100%; }
  .lp-top { padding: 10px 15px; }
  .lp-top-cta { padding: 6px 10px; font-size: 12.5px; }
  .lp-related-grid { grid-template-columns: 1fr; }
}
