:root {
  --bg: #0b0d1f;
  --bg2: #161a3a;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #eef0ff;
  --muted: #a3a8cc;
  --gold: #e8c27a;
  --a: #f4a3c4;
  --b: #8cc6ff;
  --soft: #7fe0b0;
  --hard: #ff8f7a;
  --conj: #e8c27a;
  --fire: #ff9a7a; --earth: #b8d58a; --air: #f2e08a; --water: #8cc6ff;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 700px at 50% -10%, #2a2466 0%, var(--bg2) 35%, var(--bg) 75%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, sans-serif;
}
.stars {
  position: fixed; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 74%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 92%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 50%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}

.app { position: relative; max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }

.hero { text-align: center; padding: 28px 8px 20px; }
.hero-mark { color: var(--gold); font-size: 22px; letter-spacing: 8px; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; margin: 0; }
.hero h1 { font-size: 54px; line-height: 1; letter-spacing: .5px; margin: 6px 0 10px;
  background: linear-gradient(90deg, var(--a), var(--gold), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); max-width: 420px; margin: 0 auto; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Form ---------- */
.people { display: grid; gap: 12px; }
.person h2 { font-size: 22px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
[data-person="a"] .dot, .a .dot { background: var(--a); box-shadow: 0 0 12px var(--a); }
[data-person="b"] .dot, .b .dot { background: var(--b); box-shadow: 0 0 12px var(--b); }

label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type="text"], input[type="date"], input[type="time"] {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(0, 0, 0, .25); color: var(--text);
  border: 1px solid var(--card-border); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: 16px; min-height: 48px;
  color-scheme: dark; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 194, 122, .18); }
input:disabled { opacity: .4; }
input.chosen { border-color: rgba(127, 224, 176, .5); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }

.place { position: relative; margin-bottom: 0; }
.suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: #1d2147; border: 1px solid var(--card-border); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  max-height: 260px; overflow: auto;
}
.suggestions li { padding: 10px 12px; border-radius: 9px; color: var(--text); font-size: 14.5px; cursor: pointer; }
.suggestions li:hover, .suggestions li.active { background: rgba(255, 255, 255, .08); }
.suggestions li.empty { color: var(--muted); cursor: default; }

.plus { text-align: center; color: var(--gold); font-size: 22px; line-height: 1; }
.error { color: var(--hard); text-align: center; margin: 4px 0 0; }
.cta {
  margin-top: 6px; border: 0; border-radius: 999px; padding: 16px 24px; min-height: 54px;
  font: 600 16px Inter, sans-serif; letter-spacing: .3px; color: #1a1430; cursor: pointer;
  background: linear-gradient(90deg, var(--a), var(--gold), var(--b));
  box-shadow: 0 10px 30px rgba(232, 194, 122, .25); transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(232, 194, 122, .35); }
.cta:active { transform: translateY(1px); }

@media (min-width: 720px) {
  .people { grid-template-columns: 1fr auto 1fr; align-items: start; }
  .plus { align-self: center; }
  .error, .cta { grid-column: 1 / -1; }
  .cta { justify-self: center; min-width: 280px; }
}

/* ---------- Sonuçlar ---------- */
#results { display: grid; gap: 14px; margin-top: 36px; scroll-margin-top: 16px; }
.summary { text-align: center; padding: 26px 20px; }
.names { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.names .a { color: var(--a); } .names .b { color: var(--b); }
.amp { color: var(--gold); font-size: 22px; }
.ring { width: 170px; height: 170px; display: block; margin: 12px auto 6px; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.ring-fill { fill: none; stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 64px 64px; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.ring-num { fill: var(--text); font: 600 38px 'Cormorant Garamond', serif; text-anchor: middle; }
.ring-pct { fill: var(--muted); font: 500 11px Inter, sans-serif; text-anchor: middle; }
.summary h2 { font-size: 30px; color: var(--gold); }
.summary > p { color: var(--muted); max-width: 440px; margin: 6px auto 0; }
.three { display: grid; gap: 8px; margin-top: 18px; }
.three > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.three > div:first-child .pill { border-color: rgba(244, 163, 196, .4); }
.three > div:last-child .pill { border-color: rgba(140, 198, 255, .4); }
.pill { border: 1px solid; border-radius: 999px; padding: 4px 11px; font-size: 13px; white-space: nowrap; }
.pill b { color: var(--muted); font-weight: 600; margin-right: 2px; }

.card h3 { font-size: 21px; margin-bottom: 12px; }
.cat { margin-bottom: 12px; }
.cat:last-child { margin-bottom: 0; }
.cat-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.cat-head b { font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--a), var(--gold), var(--b)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.bar i.on { width: var(--w); }

.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw h3 { font-size: 18px; margin-bottom: 8px; }
.sw ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.sw li { padding: 3px 0; }
.sw > div:first-child h3 { color: var(--soft); }
.sw > div:last-child h3 { color: var(--hard); }

.wheel-card { text-align: center; }
.wheel { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.w-ring { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.w-faint { stroke: rgba(255, 255, 255, .08); }
.w-sign { font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.w-fire { fill: var(--fire); } .w-earth { fill: var(--earth); } .w-air { fill: var(--air); } .w-water { fill: var(--water); }
.w-axis { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 3 3; }
.w-axis-label { fill: var(--gold); font: 600 10px Inter, sans-serif; text-anchor: middle; dominant-baseline: central; }
.w-planet { font-size: 19px; text-anchor: middle; dominant-baseline: central; }
.w-planet.w-a { fill: var(--a); } .w-planet.w-b { fill: var(--b); }
.w-retro { font: 600 7px Inter, sans-serif; }
.w-tick { stroke-width: 2; } .w-tick.w-a { stroke: var(--a); } .w-tick.w-b { stroke: var(--b); }
.w-asp { stroke-width: 1.3; }
.w-soft { stroke: var(--soft); } .w-hard { stroke: var(--hard); } .w-conj { stroke: var(--conj); }
.legend { display: flex; justify-content: center; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.legend .a i { background: var(--a); } .legend .b i { background: var(--b); }

.section-title { font-size: 24px; margin: 14px 4px 0; }
.aspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aspect { background: var(--card); border: 1px solid var(--card-border); border-left: 3px solid; border-radius: 16px; padding: 14px 16px; }
.aspect.soft { border-left-color: var(--soft); } .aspect.hard { border-left-color: var(--hard); } .aspect.conj { border-left-color: var(--conj); }
.aspect-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.who b { font-weight: 400; }
.who.a { color: var(--a); } .who.b { color: var(--b); }
.asp-glyph { color: var(--gold); font-size: 17px; }
.aspect-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tag { font-weight: 600; text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; margin-right: 4px; }
.tag.soft { color: var(--soft); } .tag.hard { color: var(--hard); } .tag.conj { color: var(--conj); }
.aspect p { margin: 8px 0 0; font-size: 14.5px; }

.more summary { cursor: pointer; color: var(--muted); padding: 10px 4px; list-style: none; text-align: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ' ▾'; }
.more[open] summary::after { content: ' ▴'; }

.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.grid2:empty { display: none; }

.overlay h3 { font-size: 18px; }
.overlay ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.overlay li { display: flex; gap: 10px; align-items: baseline; }
.house { flex: none; min-width: 46px; color: var(--gold); font-weight: 600; font-size: 12.5px; }

.chart h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.chart .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.chart table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.chart td { padding: 5px 4px; border-top: 1px solid rgba(255, 255, 255, .06); }
.chart td.g { width: 26px; text-align: center; font-size: 15px; }
.chart.a td.g { color: var(--a); } .chart.b td.g { color: var(--b); }
.chart td.deg { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { color: var(--hard); font-size: 11px; font-weight: 600; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.ghost { justify-self: center; background: none; border: 1px solid var(--card-border); color: var(--muted); border-radius: 999px; padding: 10px 18px; font: inherit; cursor: pointer; margin-top: 8px; }
.ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }

footer { text-align: center; color: var(--muted); opacity: .7; font-size: 12px; margin-top: 40px; }
footer p { margin: 4px 0; }
footer a, .prose a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 2px; }
footer a:hover, .prose a:hover { color: var(--text); }

/* ---------- Metin sayfaları (gizlilik vb.) ---------- */
.prose { max-width: 680px; }
.prose h1 { font-size: 40px; margin: 8px 0 4px; color: var(--gold); }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose .card h2 { margin-top: 0; }
.prose p, .prose li { color: #d6d9f2; }
.prose .sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.prose .back { text-decoration: none; color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .ring-fill, .bar i, .cta { transition: none; }
}
