/* ==========================================================================
   ALGO-QUANT INSTITUTIONAL DESIGN SYSTEM & UNIFIED SUBPAGE CHROME
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Zemin Renkleri (Obsidian & Carbon Layers) */
  --bg-void: #040507;
  --bg-canvas: #05070a;
  --bg-obsidian: #080a0f;
  --bg-surface: #0c1017;
  --bg-elevated: #121824;
  --bg-overlay: #182030;
  --bg-glass: rgba(8, 10, 15, 0.85);

  /* Yapısal İnce Çizgiler & Grid */
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-focus: #f59e0b;

  /* Marka Vurgu Rengi: Kurumsal Kehribar / Altın */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fbbf24;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);
  --accent-gold-glow: rgba(245, 158, 11, 0.28);
  --gold-primary: #d97706;
  --gold-bright: #f59e0b;

  /* Piyasa Finans Veri Renkleri */
  --market-up: #10b981;
  --market-up-subtle: rgba(16, 185, 129, 0.12);
  --emerald-up: #10b981;
  --emerald-bright: #34d399;
  --market-down: #ef4444;
  --market-down-subtle: rgba(239, 68, 68, 0.12);
  --market-neutral: #94a3b8;

  /* Tipografi Renkleri */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #040507;

  /* Tipografi Aileleri */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Sistemi */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;

  /* Köşe Yuvarlama */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Gölgeler */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Kurumsal İnce Grid Deseni Arka Planı */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.tabular {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   TIPOGRAFİ & HİYERARŞİ
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

/* ==========================================================================
   BUTONLAR
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary, .btn-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #050608;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn-primary:hover, .btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #000;
}

.btn-secondary, .btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover, .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-gold {
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-gold-light);
}

.btn-outline-gold:hover {
  background-color: rgba(245, 158, 11, 0.16);
}

.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 9px; }

/* ==========================================================================
   ORTAK GLOBAL TICKER & NAVBAR (TÜM ALT SAYFALAR VE LANDING İÇİN)
   ========================================================================== */
.ticker-tape-wrap {
  background: #06080c;
  border-bottom: 1px solid var(--border-hairline);
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  position: relative;
  z-index: 100;
}

.ticker-live-badge {
  background: #0c1017;
  border-right: 1px solid var(--border-subtle);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-bright);
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-up);
  box-shadow: 0 0 8px var(--emerald-up);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  padding-left: 24px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.ticker-item strong {
  color: var(--text-primary);
}

.navbar, .site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4, 5, 7, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo, .site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  display: grid;
  place-items: center;
  color: #050608;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.28);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.nav-menu, .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-menu a, .nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover, .nav-link:hover, .nav-menu a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   ORTAK GLOBAL FOOTER (TÜM ALT SAYFALAR VE LANDING İÇİN)
   ========================================================================== */
.site-footer {
  background: #030406;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col-title {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-disclaimer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #475569;
}

/* ==========================================================================
   KARTLAR, FORMLAR & ROZETLER
   ========================================================================== */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.badge-gold {
  background-color: var(--accent-gold-subtle);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-success {
  background-color: var(--market-up-subtle);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-danger {
  background-color: var(--market-down-subtle);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-weight: 700;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* ==========================================================================
   TABLOLAR (INSTITUTIONAL DATA TABLES)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.table thead tr {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
}

.table th {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #05070a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}
.form-control {
  width: 100%;
  background-color: #06080d;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

@media (max-width: 1024px) {
  .nav-menu, .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; }
}
