/* ═══════════════════════════════════════════════════════════
   AstroArbiter – Ana Stil Dosyası
   Tema: Koyu uzay / astroloji estetiği
   ═══════════════════════════════════════════════════════════ */

/* ── TEMEL ── */
:root {
  --bg-deep:    #0b0c1a;
  --bg-card:    #12142a;
  --bg-card2:   #181a35;
  --accent-gold: #c9a84c;
  --accent-love: #e05c8a;
  --accent-career: #e8a22a;
  --accent-map:  #3db8d0;
  --accent-world: #56c973;
  --text-main:  #dde2f0;
  --text-muted: #7a82a0;
  --border:     rgba(201, 168, 76, 0.18);
  --glow-gold:  0 0 18px rgba(201, 168, 76, 0.30);
  --glow-love:  0 0 18px rgba(224, 92, 138, 0.35);
  --glow-career:0 0 18px rgba(232, 162, 42, 0.35);
  --radius:     14px;
  --font-title: 'Cinzel', serif;
  --font-body:  'Raleway', sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Bootstrap text-muted override for dark theme */
.text-muted { color: var(--text-muted) !important; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(100, 80, 200, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(60, 100, 180, 0.10) 0%, transparent 60%);
}

/* ── NAVİGASYON ── */
.astro-nav {
  background: rgba(11, 12, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: relative;
  z-index: 1030;
}

.astro-brand {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--accent-gold) !important;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.brand-star { font-size: 1.1em; }

.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-size: 0.88rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent-gold) !important;
}

.astro-dropdown {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.astro-dropdown .dropdown-item {
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.astro-dropdown .dropdown-item:hover {
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent-gold);
}

/* ── HERO ── */
.hero-section {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-symbol {
  font-size: 2rem;
  letter-spacing: 0.5em;
  color: var(--accent-gold);
  opacity: 0.6;
}
.hero-title {
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: var(--glow-gold);
}
.hero-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── BÖLÜM BAŞLIĞI ── */
.section-title {
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
  opacity: 0.5;
}

/* ── KARTLAR ── */
.astro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.astro-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: var(--glow-gold);
}

/* Araç kartları */
.card-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  line-height: 1;
  text-shadow: var(--glow-gold);
}
.card-title {
  font-family: var(--font-title);
  color: var(--text-main);
}
.card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── BUTONLAR ── */
.btn-astro-primary {
  background: linear-gradient(135deg, #c9a84c, #e8c97a);
  color: #0b0c1a;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-astro-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #0b0c1a; }

.btn-astro-love {
  background: linear-gradient(135deg, #c04070, #e05c8a);
  color: #fff; border: none; font-weight: 600; border-radius: 50px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-astro-love:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-astro-career {
  background: linear-gradient(135deg, #b07010, #e8a22a);
  color: #fff; border: none; font-weight: 600; border-radius: 50px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-astro-career:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-astro-map {
  background: linear-gradient(135deg, #1a7a9a, #3db8d0);
  color: #fff; border: none; font-weight: 600; border-radius: 50px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-astro-map:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-astro-world {
  background: linear-gradient(135deg, #1e7a3e, #56c973);
  color: #fff; border: none; font-weight: 600; border-radius: 50px;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-astro-world:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

/* ── FORM ── */
.astro-input {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-main) !important;
  border-radius: 10px !important;
}
.astro-input:focus {
  background: rgba(255,255,255,0.08) !important;
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15) !important;
  color: var(--text-main) !important;
}
.astro-input::placeholder { color: var(--text-muted) !important; }

/* Date/time input text color fix */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

label.form-label { color: var(--text-muted); font-size: 0.85rem; }
.form-text { color: var(--text-muted); font-size: 0.78rem; }

/* ── İLERLEME ÇUBUĞU ── */
.astro-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  height: 8px;
}
.astro-progress .progress-bar {
  background: linear-gradient(90deg, #c9a84c, #e8c97a);
  border-radius: 50px;
}

/* ── SAYFA BAŞLIĞI ── */
.page-header { }
.page-icon {
  font-size: 3.5rem;
  color: var(--accent-gold);
  text-shadow: var(--glow-gold);
  display: block;
  margin-bottom: 0.5rem;
}
.page-title {
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-shadow: var(--glow-gold);
  margin-bottom: 0.5rem;
}
.page-subtitle { color: var(--text-muted); }

/* ── İSTATİSTİK KARTLARI ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.stat-value {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--accent-gold);
}
.stat-range {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── YORUM LİSTESİ ── */
.interpretation-list .interp-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.interpretation-list .interp-item:last-child { border-bottom: none; }
.interp-date {
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--accent-gold);
  white-space: nowrap;
  min-width: 75px;
}

/* ── ASTROKARTOGRAFİ TABLOLARI ── */
.city-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  background: rgba(255,255,255,0.03);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.city-rank:hover { background: rgba(201, 168, 76, 0.08); }
.city-rank-pos {
  font-family: var(--font-title);
  color: var(--accent-gold);
  width: 22px;
  font-size: 0.75rem;
}
.city-name { flex: 1; color: var(--text-main); }
.city-score {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent-gold);
}
.city-score.positive { background: rgba(86, 201, 115, 0.15); color: #56c973; }
.city-score.negative { background: rgba(224, 92, 138, 0.15); color: var(--accent-love); }

/* Yıl butonları */
#year-tabs .btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
}
#year-tabs .btn.active,
#year-tabs .btn:hover {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ── NASIL ÇALIŞIR ── */
.how-section { background: rgba(255,255,255,0.02); }
.how-step { padding: 1.5rem; }
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin: 0 auto;
}

/* ── DISCLAIMER ── */
.disclaimer-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── FOOTER ── */
.astro-footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
}
.footer-text { color: var(--text-muted); font-size: 0.9rem; }
.footer-star { color: var(--accent-gold); }

/* ── ABOUT LİSTESİ ── */
.astro-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.astro-list li:last-child { border-bottom: none; }

/* ── PLOTlY DARK OVERRIDE ── */
.js-plotly-plot .plotly .bg { fill: transparent !important; }
.js-plotly-plot { border-radius: var(--radius); overflow: hidden; }

/* ── DOĞUM HARİTASI TABLOSU ── */
.natal-table { color: var(--text-main); }
.natal-table th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; border-color: var(--border) !important; font-weight: 500; }
.natal-table td { border-color: var(--border) !important; font-size: 0.88rem; vertical-align: middle; padding: 0.55rem 0.75rem; }
.natal-table tr:hover td { background: rgba(201,168,76,0.05); }
.planet-sym { color: var(--accent-gold); font-size: 1.1em; margin-right: 4px; }

/* ── AÇILAR ── */
.aspect-list .aspect-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.aspect-list .aspect-row:last-child { border-bottom: none; }
.asp-symbol { font-size: 1.1em; width: 20px; text-align: center; flex-shrink: 0; }
.asp-planets { flex: 1; color: var(--text-main); }
.asp-name { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.asp-orb { font-size: 0.75rem; white-space: nowrap; min-width: 30px; text-align: right; }

/* ── EV YÖNETİCİLİKLERİ ── */
.ruler-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.6rem; }
.ruler-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.85rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; transition: background 0.2s; }
.ruler-item:hover { background: rgba(201,168,76,0.07); }
.ruler-item.own-house { border-color: rgba(201,168,76,0.4); }
.ruler-house { color: var(--accent-gold); font-family: var(--font-title); font-size: 0.8rem; min-width: 42px; }
.ruler-planet { color: var(--text-main); font-weight: 500; min-width: 60px; }
.ruler-arrow { color: var(--text-muted); flex: 1; }
.ruler-badge { background: rgba(201,168,76,0.15); color: var(--accent-gold); font-size: 0.7rem; padding: 1px 6px; border-radius: 10px; white-space: nowrap; }

/* ── SİNASTRİ ── */
.compat-score { font-size: 2.5rem !important; }
.compatibility-main { border-color: rgba(224,92,138,0.35) !important; }
.kat-bars { max-width: 600px; }
.monthly-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--border); }
.monthly-row:last-child { border-bottom: none; }
.month-label { font-size: 0.78rem; color: var(--text-muted); min-width: 65px; }
.month-bar-wrap { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; height: 8px; overflow: hidden; }
.month-bar-fill { height: 100%; border-radius: 4px; }
.month-bar-fill.high { background: #56c973; }
.month-bar-fill.mid  { background: #e8a22a; }
.month-bar-fill.low  { background: #e05c8a; }
.month-score { font-size: 0.78rem; color: var(--text-main); min-width: 32px; text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .hero-symbol { font-size: 1.2rem; letter-spacing: 0.25em; }
  .hero-section { padding: 3rem 0 2rem; }
  .card-icon { font-size: 2rem; }
  .ruler-grid { grid-template-columns: 1fr; }
}
