/*
 * wb1 ücretsiz doğum haritası: akış + sonuç + çark.
 * Sitenin tasarım sistemi (assets/site.css) üzerine KURULUR: renkler, yazı
 * tipleri, gölgeler ve yarıçaplar yalnız mevcut değişkenlerden türer.
 * Çark kartı, sitedeki .ms-diagram gibi açık "rapor kağıdı" zemini kullanır;
 * çark renkleri uygulamadaki NatalWheelColors.light() ile birebir.
 */

/* ---------- Çark paleti (uygulama: natal_wheel_painter.dart) ---------- */
.bc-wheel-card {
  --w-bg: #FAF6F9;
  --w-ring: #E8E2EB;
  --w-ring-strong: #7C5CFF;
  --w-cusp: #D4CCD7;
  --w-glyph: #3D2A85;
  --w-label: #7E70A1;
  --w-retro: #E8A5C5;
  --w-tick: #A39BAB;
  --w-fire: #F7E0E0;
  --w-earth: #E6EDDD;
  --w-air: #ECEAF8;
  --w-water: #DDEAF1;
  --w-tense: #D46A6A;
  --w-harm: #5B8DEF;
  --w-neutral: #9A92A8;
}
/* Uygulamanın koyu paleti (site ileride açık/koyu anahtarı alırsa) */
.bc-wheel-card[data-theme="dark"] {
  --w-bg: #0F0C16;
  --w-ring: #2C2540;
  --w-ring-strong: #9379FF;
  --w-cusp: #41375B;
  --w-glyph: #CDBEFF;
  --w-label: #A99BC9;
  --w-tick: #7B718C;
}

/* ---------- Uygulama kabı ---------- */
.bc-head { margin-bottom: 32px; }
.bc-head p { max-width: 68ch; }

.bc-app {
  position: relative;
  background:
    radial-gradient(ellipse 70% 100% at 0% 0%, rgba(255, 198, 92, 0.08), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin: 0 0 48px;
}
.bc-noscript {
  margin: 0;
  color: var(--text-muted);
}

.bc-flow { max-width: 640px; margin: 0 auto; min-height: 360px; display: flex; flex-direction: column; }
.bc-flow-top { display: grid; gap: 14px; margin-bottom: 22px; }
.bc-flow-top:empty { display: none; }

/* İlerleme */
.bc-progress { display: flex; align-items: center; gap: 14px; }
.bc-progress-dots { display: flex; gap: 6px; }
.bc-progress-dots span {
  width: 28px; height: 4px; border-radius: 4px;
  background: var(--border-strong);
  transition: background .3s ease, box-shadow .3s ease;
}
.bc-progress-dots span.is-done { background: var(--gold-2); }
.bc-progress-dots span.is-current { background: var(--gold); box-shadow: 0 0 10px rgba(255, 198, 92, 0.45); }
.bc-progress-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-muted);
}

/* Cevap şeridi (uygulamadaki memory ribbon karşılığı) */
.bc-ribbon { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bc-ribbon button {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13px; color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.bc-ribbon button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
}
.bc-ribbon button:hover { border-color: var(--gold-line); color: var(--ink); }

/* Adımlar */
.bc-form { position: relative; flex: 1; display: flex; flex-direction: column; }
.bc-step { display: flex; flex-direction: column; gap: 22px; }
.bc-step[hidden] { display: none; }
.bc-step.is-entering { animation: bc-enter .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bc-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.bc-bubble { display: grid; gap: 8px; }
.bc-bubble .ms-trybox-persona { margin-bottom: 2px; }
.bc-q {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.3px;
}
.bc-q-sm { font-size: 22px; }
.bc-sub { margin: 0; color: var(--text-muted); font-size: 15.5px; }

.bc-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bc-field { display: grid; gap: 6px; }
.bc-field > span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-muted);
}
.bc-field-s { width: 88px; }
.bc-field-m { flex: 1 1 180px; min-width: 150px; }
.bc-field-y { width: 118px; }

.bc-input {
  width: 100%;
  height: 54px;
  font: inherit;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.bc-input::placeholder { color: var(--text-dim); font-weight: 400; }
.bc-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 198, 92, 0.18); }
.bc-input[aria-invalid="true"] { border-color: #D46A6A; }
select.bc-input {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 24px, calc(100% - 15px) 24px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}
select.bc-input option { color: #1F2455; background: #F4F0E4; }
.bc-input-wide { flex: 1 1 100%; }
.bc-colon { font-family: 'Fraunces', Georgia, serif; font-size: 28px; color: var(--text-muted); padding-bottom: 8px; }

.bc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 6px; }
.bc-actions .bc-btn-primary { margin-left: auto; }
.bc-actions-center { justify-content: center; margin-top: 36px; }
.bc-actions-center .bc-btn { margin: 0; }
.bc-step[data-step="0"] .bc-actions .bc-btn-primary,
.bc-step[data-step="err"] .bc-actions .bc-btn-primary { margin-left: 0; }

.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  font: inherit; font-size: 15px; font-weight: 600;
  border-radius: 14px;
  padding: 0 22px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.bc-btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.bc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(3, 6, 20, 0.55), 0 0 24px rgba(255, 198, 92, 0.28);
  border-color: var(--gold);
}
.bc-btn-primary[disabled] { opacity: .55; cursor: progress; transform: none; }
.bc-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.bc-btn-ghost:hover { color: var(--gold); border-color: var(--gold-line); }

.bc-chip {
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.bc-chip:hover { border-color: var(--gold-line); color: var(--ink); }
.bc-chip[aria-checked="true"], .bc-chip[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 198, 92, 0.08);
}
.bc-ampm { display: flex; gap: 6px; padding-bottom: 4px; }
.bc-ampm .bc-chip { padding: 14px 14px; }
.bc-toggle-row { display: flex; }
.bc-time.is-off { opacity: .35; pointer-events: none; }

.bc-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  border-left: 2px solid var(--gold-line);
  padding-left: 12px;
}
.bc-note-card {
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0 0;
}
.bc-error { margin: 0; color: #F2A0A0; font-size: 14.5px; }
.bc-privacy { margin: 0; color: var(--text-dim); font-size: 13px; }
.bc-small { margin: 10px 0 0; color: var(--text-dim); font-size: 13px; }

/* Honeypot: ekran dışı, klavye sırasında yok */
.bc-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Yer arama combobox */
.bc-place { display: block; }
.bc-combo { position: relative; }
.bc-listbox {
  position: absolute; z-index: 30;
  top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  max-height: 300px; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.bc-listbox li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.bc-listbox li .bc-opt-name { color: var(--ink); font-weight: 500; }
.bc-listbox li .bc-opt-sub { color: var(--text-muted); font-size: 13px; text-align: right; }
.bc-listbox li[aria-selected="true"], .bc-listbox li:hover { background: rgba(255, 198, 92, 0.1); }
.bc-listbox li[aria-selected="true"] .bc-opt-name { color: var(--gold); }
.bc-place-status { margin: 8px 2px 0; min-height: 1.2em; font-size: 13px; color: var(--text-dim); }

.bc-turnstile:empty { display: none; }

/* Hazırlanıyor */
.bc-prep { align-items: center; justify-content: center; text-align: center; min-height: 320px; gap: 26px; }
.bc-prep-wheel { width: 150px; height: 150px; overflow: visible; }
.bc-prep-ring { fill: none; stroke: var(--gold-line); stroke-width: 1; }
.bc-prep-ring-2 { stroke: var(--border-strong); stroke-dasharray: 2 5; }
.bc-prep-dot { fill: var(--gold); filter: drop-shadow(0 0 4px var(--gold)); transform-origin: 0 0; animation: bc-orbit 2.4s linear infinite; }
.bc-prep-dot-2 { fill: var(--accent); animation-duration: 3.6s; animation-direction: reverse; }
@keyframes bc-orbit { to { transform: rotate(360deg); } }
.bc-prep-line {
  margin: 0; min-height: 1.5em;
  font-family: 'Fraunces', Georgia, serif; font-size: 22px; color: var(--ink);
  transition: opacity .3s ease;
}
.bc-prep-line.is-fading { opacity: 0; }

/* ---------- Sonuç ---------- */
.bc-result { outline: none; }
.bc-result-head { text-align: center; margin-bottom: 26px; }
.bc-result-head h2 { font-size: 38px; margin-bottom: 8px; }
.bc-result-meta { margin: 0; color: var(--text-muted); }
.bc-badge {
  display: inline-block; margin-left: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 10px;
  vertical-align: middle;
}

.bc-wheel-card {
  margin: 0 auto;
  max-width: 620px;
  background: var(--w-bg);
  border: 1px solid var(--gold-line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.bc-wheel svg { display: block; width: 100%; height: auto; }
.bc-wheel-legend { margin: 10px 0 0; text-align: center; color: rgba(31, 36, 85, 0.65); font-size: 13.5px; }

.bc-trybox { margin: 28px 0; }

.bc-big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.bc-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: grid; gap: 8px; align-content: start;
}
.bc-card-top { display: flex; align-items: center; gap: 12px; }
.bc-card-glyph {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 198, 92, 0.08);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}
.bc-card-glyph svg { width: 24px; height: 24px; }
.bc-card-label { font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.bc-card h4 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 500; color: var(--ink); }
.bc-card h4 a { color: inherit; }
.bc-card h4 a:hover { color: var(--gold); }
.bc-card-deg { color: var(--text-dim); font-size: 13.5px; }
.bc-card p { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.bc-block { margin-top: 40px; }
.bc-block h3 { margin-bottom: 16px; }
.bc-h4 {
  margin: 26px 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold);
}
.bc-grid2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; }
.bc-grid2 > *, .bc-big3 > * { min-width: 0; }
.bc-grid2 .bc-block:first-child .bc-h4:first-of-type { margin-top: 0; }

.bc-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 78ch; }
.bc-highlights li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}
.bc-highlights li svg { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; color: var(--gold); }

.bc-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.bc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bc-table th, .bc-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bc-table tr:last-child td { border-bottom: 0; }
.bc-table th { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); background: var(--surface-soft); }
.bc-table td { color: var(--text); }
.bc-table td a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.bc-table td a:hover { color: var(--gold); }
.bc-table .bc-pt { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.bc-table .bc-pt svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.bc-table .bc-retro { color: #E8A5C5; margin-left: 6px; font-size: 12px; }
.bc-table.no-house .bc-col-house { display: none; }

.bc-bars { display: grid; gap: 10px; }
.bc-bar { display: grid; grid-template-columns: 88px 1fr 22px; gap: 12px; align-items: center; font-size: 14.5px; color: var(--text); }
.bc-bar-track { height: 8px; border-radius: 8px; background: var(--bg-3); overflow: hidden; }
.bc-bar-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  width: 0;
  transition: width .8s cubic-bezier(.2, .7, .2, 1);
}
.bc-bar-n { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.bc-aspects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-aspects li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.bc-aspects .bc-asp-line { width: 18px; height: 2px; border-radius: 2px; flex-shrink: 0; }
.bc-aspects .bc-asp-orb { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.bc-mobile-only { display: none; }

.bc-faq-title { margin-top: 56px; }
.bc-guide { padding-top: 20px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 880px) {
  .bc-grid2 { grid-template-columns: 1fr; gap: 0; }
  .bc-big3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bc-app { padding: 22px 18px; border-radius: 20px; }
  .bc-q { font-size: 25px; }
  .bc-result-head h2 { font-size: 28px; }
  .bc-wheel-card { padding: 10px; border-radius: 18px; }
  .bc-mobile-only { display: flex; }
  .bc-flow { min-height: 400px; }
}
@media (max-width: 420px) {
  .bc-app { padding: 20px 14px; }
  .bc-wheel-card { padding: 4px; margin: 0 -6px; border-radius: 16px; }
  .bc-progress-dots span { width: 18px; }
  .bc-progress-label { white-space: nowrap; letter-spacing: 1px; }
  .bc-field-s { width: 72px; }
  .bc-field-y { width: 96px; }
  .bc-field-m { min-width: 0; flex-basis: 120px; }
  .bc-date .bc-field-m { order: 2; }
  .bc-input { height: 50px; font-size: 17px; padding: 0 12px; }
  .bc-actions .bc-btn { flex: 1 1 auto; padding: 0 14px; }
  .bc-actions .bc-btn-primary { flex-basis: 100%; order: -1; margin-left: 0; }
  .bc-bar { grid-template-columns: 76px 1fr 18px; }
  .bc-table th, .bc-table td { padding: 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-step.is-entering { animation: none; }
  .bc-prep-dot { animation: none; }
  .bc-bar-fill { transition: none; }
  .bc-btn, .bc-chip, .bc-ribbon button { transition: none; }
}
