/* Renk analizi testi — quiz.css'in üstüne (renkler ve yazı tipi oradan). Hareketler prefers-reduced-motion'da kapanır. */

/* Göstergeler her dilde soldan sağa (renk geçişi ile uç yazıları ters düşmesin). */
.meter-track,
.meter-ends {
  direction: ltr;
}

/* ── başlık + çark ─────────────────────────────────────── */
.ca-hero {
  align-items: center;
  display: grid;
  gap: 8px 28px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .ca-hero {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

.wheel-wrap {
  justify-self: center;
  max-width: 240px;
  position: relative;
  width: 64vw;
}

@media (min-width: 720px) {
  .wheel-wrap {
    width: 240px;
  }
}

.wheel {
  display: block;
  height: auto;
  width: 100%;
}

.wheel-spin {
  animation: ca-spin 160s linear infinite;
  transform-origin: 130px 130px;
}

.wheel-slice {
  animation: ca-bloom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 55ms);
  transform-origin: 130px 130px;
}

.wheel-hub {
  fill: var(--bg);
}

.wheel-label {
  align-content: center;
  display: grid;
  inset: 0;
  justify-items: center;
  pointer-events: none;
  position: absolute;
}

.wheel-label strong {
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wheel-label span {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ── test kartı ────────────────────────────────────────── */
.ca {
  overflow: hidden;
  position: relative;
}

.ca-grid {
  display: grid;
  gap: 20px 28px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .ca-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

.ca-stage {
  align-self: start;
  text-align: center;
}

.ca-stage .avatar {
  display: block;
  height: auto;
  margin: 0 auto;
  width: 112px;
}

@media (min-width: 640px) {
  .ca-stage {
    position: sticky;
    top: 20px;
  }

  .ca-stage .avatar {
    width: 180px;
  }
}

.ca-stage-cap {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 10px;
  min-height: 1.4em;
  text-transform: uppercase;
}

.avatar .av-bg {
  fill: var(--bg-blush);
}

.avatar .av-skin,
.avatar .av-hair,
.avatar .av-iris,
.avatar .av-drape,
.avatar .av-lips,
.avatar .av-blush {
  transition: fill 0.55s ease;
}

.avatar .av-cheeks {
  transition: opacity 0.55s ease;
}

.avatar .av-brow,
.avatar .av-lid {
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.55s ease;
}

.avatar .av-brow {
  stroke-width: 2.4;
}

.avatar .av-lid {
  stroke-width: 1.3;
}

.avatar .av-nose {
  fill: none;
  stroke: rgba(40, 20, 20, 0.16);
  stroke-linecap: round;
  stroke-width: 1.4;
}

/* soru paneli */
.ca-q {
  animation: ca-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ca-q--back {
  animation-name: ca-in-back;
}

.ca-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 32px;
}

.ca-chapter {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-steps {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin-top: 8px;
}

.ca-steps i {
  background: var(--accent-soft);
  border-radius: 999px;
  display: block;
  height: 4px;
  transition: background 0.3s ease;
}

.ca-steps i.on {
  background: var(--accent);
}

.ca-steps i.now {
  background: linear-gradient(90deg, var(--accent) 0 50%, var(--accent-soft) 50%);
}

.ca-hint {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 8px;
}

.ca-tips {
  color: var(--ink-2);
  display: grid;
  gap: 6px;
  list-style: none;
  margin-top: 14px;
}

.ca-tips li {
  padding-inline-start: 22px;
  position: relative;
}

.ca-tips li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 7px;
  inset-inline-start: 6px;
  position: absolute;
  top: 0.62em;
  width: 7px;
}

.ca-opts {
  margin-top: 18px;
}

/* metin seçenekleri */
.ca-list {
  display: grid;
  gap: 10px;
}

.ca-opt {
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 14px;
  padding: 12px 14px;
  text-align: start;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
  width: 100%;
}

.ca-opt:hover,
.ca-opt:focus-visible {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

.ca-opt:active {
  transform: scale(0.99);
}

.ca-opt[aria-pressed="true"],
.ca-tone[aria-pressed="true"],
.ca-chipbtn[aria-pressed="true"] {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ca-vis {
  align-items: center;
  display: inline-flex;
  flex: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.ca-vis svg {
  display: block;
  height: 44px;
  width: 44px;
}

.ca-txt {
  flex: 1;
  min-width: 0;
}

.ca-txt strong {
  display: block;
  font-weight: 600;
}

.ca-txt small {
  color: var(--ink-3);
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.ca-check {
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  height: 22px;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  width: 22px;
}

.ca-opt[aria-pressed="true"] .ca-check {
  animation: ca-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  background: var(--accent);
  border-color: var(--accent);
}

.ca-opt[aria-pressed="true"] .ca-check::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 10px;
  left: 6.5px;
  position: absolute;
  top: 3px;
  transform: rotate(45deg);
  width: 5px;
}

.ca-metal,
.ca-fabric {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(78, 32, 47, 0.12);
  display: block;
  height: 40px;
  width: 40px;
}

.ca-metal--gold {
  background: radial-gradient(circle at 32% 28%, #fff6cc 0%, #e8c25a 34%, #c4922c 70%, #8e6418 100%);
}

.ca-metal--silver {
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #dfe3e8 34%, #aab2bc 70%, #6f7884 100%);
}

.ca-metal--both {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, #d9ab43 0 50%, #bcc3cc 50% 100%);
}

.ca-fabric {
  border-radius: 10px;
}

.ca-fabric--white {
  background: linear-gradient(160deg, #ffffff 0 55%, #f1f1f3 100%);
}

.ca-fabric--cream {
  background: linear-gradient(160deg, #f6ecd6 0 55%, #e9dbbd 100%);
}

.ca-fabric--both {
  background: linear-gradient(135deg, #ffffff 0 50%, #f3e6c8 50% 100%);
}

.ca-strip {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 40px;
  overflow: hidden;
  width: 40px;
}

.ca-strip i {
  display: block;
}

/* ten tonları (MST) */
.ca-mst {
  display: grid;
  gap: 10px 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ca-tone {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 16px;
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ca-tone i {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(78, 32, 47, 0.12);
  display: block;
  margin: 0 auto 4px;
  max-width: 54px;
  transition: transform 0.2s ease;
  width: 100%;
}

.ca-tone:hover i,
.ca-tone:focus-visible i {
  transform: scale(1.07);
}

.ca-tone:focus-visible {
  border-color: var(--accent);
  outline: none;
}

/* saç + göz çipleri */
.ca-chips {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr));
}

.ca-chipbtn {
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-items: center;
  line-height: 1.25;
  padding: 12px 8px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
}

.ca-chipbtn:hover,
.ca-chipbtn:focus-visible {
  background: #fff;
  border-color: var(--accent);
  outline: none;
}

.ca-hairsw {
  border-radius: 14px 14px 22px 22px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: block;
  height: 42px;
  width: 52px;
}

.ca-eyes svg {
  display: block;
  height: 46px;
  width: 46px;
}

/* analiz arası */
.ca-analyzing {
  padding-block: 18px;
}

.ca-sweep {
  background: var(--accent-soft);
  border-radius: 999px;
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
}

.ca-sweep i {
  animation: ca-sweep 1.9s cubic-bezier(0.4, 0, 0.2, 1) both;
  background: var(--accent);
  display: block;
  height: 100%;
  width: 100%;
}

/* ── sonuç ─────────────────────────────────────────────── */
.ca--result .ca-stage-cap {
  display: none;
}

.ca-head {
  animation: ca-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ca-name {
  font-size: clamp(34px, 7vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-top: 6px;
}

.ca-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ca-traits span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
}

.ca-one {
  color: var(--ink-2);
  font-size: 17px;
  margin-top: 12px;
}

.ca-alt {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: 6px;
}

.ca-drapes {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.ca-drapes figure {
  text-align: center;
}

.ca-drapes .avatar {
  display: block;
  height: auto;
  width: 84px;
}

.ca-drapes figcaption {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.ca-drapes .is-bad figcaption {
  color: var(--ink-3);
}

.ca-body {
  animation: ca-in 0.55s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 8px;
}

.ca-h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 26px;
  text-transform: uppercase;
}

.pal-row {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px 14px;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 12px;
}

.ca-palette > .pal-row:first-child,
.pal-preview + .pal-row {
  border-top: 0;
}

@media (min-width: 560px) {
  .pal-row {
    align-items: center;
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

.pal-label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.pal-sw {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.sw {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.sw i {
  animation: ca-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
  animation-delay: calc(var(--k) * 35ms + 80ms);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 3px 8px rgba(78, 32, 47, 0.1);
  display: block;
  margin: 0 auto 5px;
  max-width: 52px;
  position: relative;
  width: 100%;
}

.sw span {
  display: block;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Telefonda 6'lı satır adları kelime ortasından bölüyordu ("Terrakott-a") — 3'erli iki sıra. */
@media (max-width: 480px) {
  .pal-sw {
    gap: 12px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sw i {
    max-width: 48px;
  }
}

.pal-row--avoid .sw i::after {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  content: "";
  height: 2px;
  left: 12%;
  position: absolute;
  right: 12%;
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.pal-row--avoid .sw span {
  color: var(--ink-3);
}

.pal-preview {
  background: var(--bg-blush);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 10px;
  padding: 10px 12px;
}

.linkbtn {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ca-hints {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  margin-top: 10px;
}

.ca-hintcard {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 14px;
}

.ca-hintcard p {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ca-hintcard strong {
  display: block;
  font-weight: 600;
  margin-top: 3px;
}

/* neden: eksenler */
.ca-why {
  color: var(--ink-2);
  margin-top: 8px;
}

.meters {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.meter-head {
  font-size: 13px;
}

.meter-track {
  border-radius: 999px;
  height: 10px;
  margin-top: 6px;
  position: relative;
}

.meter--warm .meter-track {
  background: linear-gradient(90deg, #8ea6c6, #d9d2dc 50%, #e7ab63);
}

.meter--depth .meter-track {
  background: linear-gradient(90deg, #f3ebe3, #b99579 50%, #3b2a22);
}

.meter--clar .meter-track {
  background: linear-gradient(90deg, #b8aaa6, #c99aa8 50%, #e0115f);
}

.meter-mid,
.meter-tick {
  background: rgba(29, 19, 23, 0.35);
  bottom: -3px;
  position: absolute;
  top: -3px;
  width: 1.5px;
}

.meter-mid {
  left: 50%;
}

.meter-tick {
  background: rgba(29, 19, 23, 0.18);
}

.meter-dot {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(29, 19, 23, 0.25);
  height: 20px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
  width: 20px;
}

.meter-ends {
  color: var(--ink-3);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 4px;
}

.ca-facts-title {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 16px;
  text-transform: uppercase;
}

.ca-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ca-facts span {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  padding: 5px 11px;
}

.ca-edge {
  background: var(--bg-blush);
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 10px;
  padding: 10px 12px;
}

/* 12 sezon haritası */
.map {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

@media (min-width: 560px) {
  .map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.map-col {
  display: grid;
  gap: 6px;
}

.map-fam {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.map-chip {
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 9px;
  position: relative;
  text-align: start;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.map-chip:hover,
.map-chip:focus-visible {
  border-color: var(--ink-3);
  outline: none;
}

.map-chip.is-alt {
  border-color: var(--ink-3);
  border-style: dashed;
}

.map-chip.is-you {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.map-chip.is-view:not(.is-you) {
  background: var(--bg-blush);
}

.map-dots {
  display: inline-flex;
  flex: none;
}

.map-dots i {
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: block;
  height: 14px;
  width: 14px;
}

.map-dots i + i {
  margin-inline-start: -5px;
}

.map-name {
  flex: 1;
  min-width: 0;
}

.map-you {
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
}

.ca-mapnote {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 8px;
}

/* tahmin + uygulama */
.ca-estimate {
  background: var(--plum);
  border-radius: 20px;
  color: var(--on-dark);
  margin-top: 26px;
  padding: 20px;
}

.ca-estimate h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.ca-estimate p {
  color: var(--on-dark-2);
  font-size: 15px;
  margin-top: 6px;
}

.ca-estimate .stores {
  margin-top: 14px;
}

/* ── rehber: eksenler + 12 sezon ───────────────────────── */
.axes-info {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  margin-top: 16px;
}

.ax {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.ax h3 {
  font-size: 17px;
}

.ax p {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 4px;
}

.ax-bar {
  border-radius: 999px;
  display: block;
  height: 8px;
  margin-top: 12px;
}

.ax-warm {
  background: linear-gradient(90deg, #8ea6c6, #d9d2dc 50%, #e7ab63);
}

.ax-depth {
  background: linear-gradient(90deg, #f3ebe3, #b99579 50%, #3b2a22);
}

.ax-clar {
  background: linear-gradient(90deg, #b8aaa6, #c99aa8 50%, #e0115f);
}

.family {
  margin-top: 26px;
}

.family h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.family-desc {
  color: var(--ink-2);
  margin-top: 4px;
}

.season-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  margin-top: 12px;
}

.season-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  padding: 0 16px 16px;
}

.mini-pal {
  display: flex;
  height: 30px;
  margin: 0 -16px 14px;
}

.mini-pal i {
  display: block;
  flex: 1;
}

.season-card h4 {
  font-size: 17px;
}

.season-card p {
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 4px;
}

.season-card .season-lips {
  color: var(--ink-3);
  font-size: 13px;
}

.season-card .season-lips strong {
  color: var(--ink-2);
}

.mst-credit {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 10px;
}

/* ── hareket ───────────────────────────────────────────── */
@keyframes ca-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ca-bloom {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-6deg);
  }
}

@keyframes ca-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes ca-in-back {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes ca-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes ca-sweep {
  from {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-spin,
  .wheel-slice,
  .ca-q,
  .ca-head,
  .ca-body,
  .sw i,
  .ca-opt[aria-pressed="true"] .ca-check,
  .ca-sweep i {
    animation: none !important;
  }

  .avatar *,
  .meter-dot,
  .ca-steps i {
    transition: none !important;
  }
}
