/* ============================================================
   style.css — Gece göğü paleti, glassmorphism kartlar
   ============================================================ */

:root {
  --bg-0: #0a0a1f;
  --bg-1: #1a1035;
  --bg-2: #2d1b4e;
  --gold: #d4af37;
  --gold-soft: #ecd489;
  --gold-dim: rgba(212, 175, 55, 0.22);
  --gold-faint: rgba(212, 175, 55, 0.12);
  --rose: #e8a0a0;
  --rose-soft: #f3c6c6;
  --rose-dim: rgba(232, 160, 160, 0.25);
  --ink: #ece7f4;
  --ink-muted: #a89fc2;
  --ink-faint: #6f6790;
  --card-bg: linear-gradient(160deg, rgba(30, 19, 58, 0.72), rgba(14, 11, 36, 0.58));
  --card-border: rgba(212, 175, 55, 0.2);
  --card-shadow: 0 18px 50px rgba(4, 3, 16, 0.5);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%)
    fixed var(--bg-0);
  overflow-x: hidden;
}

#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#app { position: relative; z-index: 1; }

::selection { background: var(--gold-dim); color: var(--ink); }

a { color: var(--gold-soft); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Ortak bölüm düzeni ---------- */

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.4rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 1.1rem;
}

.section-intro {
  color: var(--ink-muted);
  max-width: 640px;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
  font-size: 1.03rem;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.4rem 5.5rem;
  position: relative;
}

.hero .eyebrow { margin-bottom: 2.2rem; }

.hero-thread { margin-bottom: 1.6rem; opacity: 0.9; }

.hero-thread .thread-line {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-line 2.4s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

.hero-names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em 0.28em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.4rem, 13vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.hero-names .amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  color: var(--gold);
  transform: translateY(-0.18em);
}

.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rose-soft);
  margin-top: 1.4rem;
}

.hero-births {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.4rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scroll-hint .stem {
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim));
  position: relative;
  overflow: hidden;
}

.scroll-hint .stem::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: -8px;
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold);
  animation: hint-drop 2.6s ease-in-out infinite;
}

@keyframes hint-drop {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(64px); opacity: 0; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* Grid çocukları içerik yüzünden taşmasın (min-width:auto tuzağı) */
.big3-grid > *,
.compare-grid > *,
.synastry-grid > *,
.overall-cols > * {
  min-width: 0;
}

/* ---------- Kartlar (glassmorphism) ---------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: clamp(1.5rem, 3.4vw, 2.2rem);
}

.card p + p { margin-top: 0.9em; }

.card p { color: var(--ink-muted); font-size: 0.96rem; }

/* ---------- Büyük üçlü (Güneş / Ay / Yükselen) ---------- */

.big3-grid {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

@media (min-width: 980px) {
  .big3-grid { grid-template-columns: repeat(3, 1fr); }
}

.big3-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gold-faint);
}

.glyph-ring {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.tone-rose .glyph-ring {
  border-color: var(--rose-dim);
  color: var(--rose);
  background: rgba(232, 160, 160, 0.07);
}

.big3-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.big3-label svg { opacity: 0.85; }

.big3-sign {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.15;
}

.big3-detail {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Gezegen tablosu ---------- */

.table-card { padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1rem, 3vw, 1.8rem); }

.table-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.table-note {
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

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

.planet-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.planet-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--gold-dim);
}

.planet-table td {
  padding: 0.58rem 0.9rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.09);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

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

.planet-table td:nth-child(2) { color: var(--gold-soft); }

.tone-rose .planet-table td:nth-child(2) { color: var(--rose-soft); }

/* ---------- Karşılaştırma (element / nitelik) ---------- */

.compare-grid {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

@media (min-width: 860px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.legend {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  display: inline-block;
}

.legend .swatch-gold { background: var(--gold); }
.legend .swatch-rose { background: var(--rose); }

.bars-svg { display: block; width: 100%; height: auto; }

.bars-svg .bar {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.25, 0.7, 0.25, 1);
}

.visible .bars-svg .bar { transform: scaleX(1); }

.compare-commentary { max-width: 760px; }

.compare-commentary p { color: var(--ink-muted); }

.compare-commentary p + p { margin-top: 1em; }

/* ---------- Sinastri kartları ---------- */

.synastry-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 880px) {
  .synastry-grid { grid-template-columns: 1fr 1fr; }
}

.syn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--gold-faint);
}

.syn-titles { min-width: 0; }

.syn-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
}

.syn-subtitle {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.syn-aspect {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold-faint);
  border-radius: 14px;
  padding: 0.18rem 0.7rem;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: break-word;
}

.ring { flex: none; }

.ring .ring-fill {
  transition: stroke-dashoffset 1.6s cubic-bezier(0.3, 0.6, 0.2, 1);
}

.ring-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  fill: var(--ink);
  font-feature-settings: "lnum" 1;
}

.ring-of {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  fill: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- Genel uyum ---------- */

.overall { text-align: center; }

.overall .section-intro { margin-inline: auto; }

.overall-score {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(5.5rem, 18vw, 9rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 45%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1;
}

.overall-caption {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  margin-bottom: clamp(2.4rem, 6vw, 4rem);
}

.overall-cols {
  display: grid;
  gap: 1.4rem;
  text-align: left;
}

@media (min-width: 860px) {
  .overall-cols { grid-template-columns: 1fr 1fr; }
}

.overall-cols .compare-title { margin-bottom: 0.8rem; }

.star-list { list-style: none; }

.star-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.star-list li + li { margin-top: 0.85rem; }

.star-list svg { flex: none; margin-top: 0.42em; }

.tone-rose-list .star-list svg { color: var(--rose); }
.tone-gold-list .star-list svg { color: var(--gold); }

/* ---------- Bizim gökyüzümüz ---------- */

.oursky { text-align: center; padding-bottom: 3rem; }

.oursky-svg {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.oursky-svg .const-star { animation: star-breathe 5s ease-in-out infinite; }

.oursky-svg .link-path {
  stroke-dasharray: 6 7;
  animation: thread-flow 30s linear infinite;
}

@keyframes thread-flow {
  to { stroke-dashoffset: -520; }
}

@keyframes star-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.oursky-closing {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-muted);
  text-align: left;
}

.oursky-closing p + p { margin-top: 1em; }

.oursky-signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-soft);
  margin-top: 2.4rem;
}

.site-footer {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.2rem;
  padding-bottom: 2rem;
}

/* ---------- Bölüm ayracı ---------- */

.divider {
  display: flex;
  justify-content: center;
  padding: 0 1.4rem;
  opacity: 0.85;
}

.divider svg { max-width: 420px; width: 100%; height: auto; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ---------- Hareket azaltma ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bars-svg .bar { transform: scaleX(1); transition: none; }
  .ring .ring-fill { transition: none; }
  .scroll-hint .stem::after,
  .oursky-svg .const-star,
  .oursky-svg .link-path,
  .hero-thread .thread-line {
    animation: none;
  }
  .hero-thread .thread-line { stroke-dashoffset: 0; }
}
