/* Araç kabuğu, paylaşım kartı, e-posta yakalama ve otorite testi. */

/* --- Araç kabuğu ------------------------------------------------------------------- */
.tool-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tool-nav__scroller {
  flex: 1 1 auto;
  min-width: 0;
}

.tool-strip {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tool-strip::-webkit-scrollbar {
  display: none;
}

.tool-strip li {
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Kaydırılacak içerik olan kenarda yumuşak solma */
.tool-nav[data-more='end'] .tool-strip {
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}

.tool-nav[data-more='start'] .tool-strip {
  mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
}

.tool-nav[data-more='both'] .tool-strip {
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}

.tool-nav__btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-card);
  color: var(--color-ink);
  font-size: 1rem;
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.tool-nav__btn:hover {
  border-color: var(--color-ink);
}

.tool-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--color-rule);
}

.tool-nav__all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
}

.tool-nav__all:hover {
  background: var(--color-ink);
  color: var(--color-on-ink);
}

.tool-nav__all .num {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-chip);
  color: var(--color-ink-2);
  font-size: var(--text-2xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-nav__all:hover .num {
  background: oklch(32% 0.012 50);
  color: var(--color-on-ink);
}

/* "Tüm araçlar" geniş ekranda şeridin dışında sabit; dar ekranda şeridin son öğesi */
.tool-strip__all {
  display: none;
}

.tool-strip__all a {
  padding: 0 16px !important;
  border-color: var(--color-ink) !important;
}

/* Dar ekranda oklar ve sabit buton yer kaplamasın: şerit tam genişlik, parmakla kayar */
@media (max-width: 40rem) {
  .tool-nav__btn,
  .tool-nav__all {
    display: none;
  }

  .tool-strip__all {
    display: block;
  }
}

.tool-strip a {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 6px;
  scroll-margin-inline: 56px;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-card);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-ink);
}

.tool-strip a:hover {
  border-color: var(--color-ink);
}

.tool-strip__mono {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: oklch(94% 0.006 70);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: oklch(30% 0.012 50);
}

.tool-strip a[aria-current='page'] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-on-ink);
}

.tool-strip a[aria-current='page'] .tool-strip__mono {
  background: var(--color-accent);
  color: oklch(18% 0.02 40);
}

.tool-head {
  padding-top: clamp(28px, 5vw, 56px);
}

.tool-head .crumbs {
  margin-bottom: 14px;
}

.tool-head__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin-bottom: 24px;
}

.tool-head__text {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.tool-head__text .lede {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: oklch(38% 0.012 50);
  max-width: 44rem;
}

.privacy-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-ink-2);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: oklch(95% 0.006 70);
  line-height: 1.3;
}

.privacy-pill::before {
  content: '';
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-live);
}

.privacy-pill--ai::before {
  background: var(--color-accent);
}

.tool-privacy {
  margin-top: 12px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-ink-3);
}

/* Sonuç ekranı: köprü ve e-posta */
.result-area {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
}

.result-area__side {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capture {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: var(--rule-hair) solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capture__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.capture__body {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: oklch(38% 0.012 50);
}

.capture form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capture__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capture__row input {
  flex: 1 1 220px;
}

.capture__label {
  font-size: var(--text-xs);
  font-weight: 600;
}

.capture__label span,
.capture__consent {
  font-weight: 400;
  color: var(--color-ink-3);
}

.capture__consent {
  font-size: var(--text-2xs);
  line-height: 1.45;
}

/* Paylaşım kartı (1:1, kendi kabına göre ölçeklenir) */
.share-card-wrap {
  flex: 1 1 300px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Kartın cqi ölçüleri (dolgu dahil) kartın genişliğine göre hesaplansın */
  container-type: inline-size;
}

.share-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  padding: 7cqi;
  display: flex;
  flex-direction: column;
  gap: 4cqi;
  overflow: hidden;
}

.share-card__kicker {
  font-size: 3.4cqi;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-ink);
}

.share-card__before {
  font-size: 4.4cqi;
  line-height: 1.35;
  color: var(--color-ink-3);
  text-decoration: line-through;
  text-decoration-color: oklch(75% 0.01 70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Satır sınırı kartın yüksekliğine sığacak şekilde seçildi: yazı satır ortasından kesilmez. */
.share-card__main {
  font-size: 6.4cqi;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-card__sign {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 2cqi;
  font-size: 3.2cqi;
  color: var(--color-ink-2);
}

.share-card__sign::before {
  content: '';
  width: 2.4cqi;
  height: 2.4cqi;
  border-radius: 50%;
  background: var(--color-accent);
}

.share-card__sign strong {
  font-weight: 700;
  color: var(--color-ink);
}

.share-card__note {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

/* --- Otorite testi (mobil öncelikli, maks. 30rem) ---------------------------------------- */
.quiz {
  width: min(100% - 40px, 30rem) !important;
  padding-bottom: 48px;
}

.quiz__screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
}

.quiz__screen--q {
  padding-top: 12px;
}

.quiz__screen--result {
  gap: 24px;
  padding-top: 16px;
}

.quiz__kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-ink);
}

.quiz__title {
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.quiz__lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: oklch(38% 0.012 50);
}

.quiz__preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.quiz__q-grade {
  flex: 0 0 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px dashed var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-ink-3);
  background: var(--color-card);
}

.quiz__dims {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  list-style: none;
  padding: 0;
}

.quiz__dims li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-2xs);
  font-weight: 600;
}

.pips {
  display: flex;
  gap: 3px;
}

.pips i {
  width: 20px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: oklch(86% 0.01 70);
}

.pips i.on {
  background: var(--color-accent);
}

.pips--lg i {
  height: 6px;
}

.quiz__note {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  margin-top: -8px;
}

.quiz__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz__back {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  background: transparent;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--color-ink);
}

.quiz__progress {
  flex: 1;
  display: flex;
  gap: 4px;
}

.quiz__progress i {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: oklch(90% 0.008 70);
  transition: background-color var(--dur-base) var(--ease-out);
}

.quiz__progress i.on {
  background: var(--color-accent);
}

.quiz__step {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-3);
  min-width: 2.5rem;
  text-align: right;
}

.quiz__question {
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-card);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  color: var(--color-ink);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.quiz__option:hover {
  border-color: oklch(60% 0.01 70);
}

.quiz__option::before {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid oklch(70% 0.01 70);
  background: var(--color-card);
  transition: border-width var(--dur-fast) var(--ease-out);
}

.quiz__option[aria-checked='true'] {
  border: 1.5px solid var(--color-accent);
  background: oklch(96% 0.025 40);
}

.quiz__option[aria-checked='true']::before {
  border: 6px solid var(--color-accent);
}

.quiz__hint {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-ink-3);
}

.quiz__grade-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quiz__grade {
  flex: 0 0 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.quiz__verdict {
  font-size: 1.625rem;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.quiz__breakdown {
  border-top: var(--rule-hair) solid var(--color-rule);
  list-style: none;
  padding: 0;
}

.quiz__breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: var(--rule-hair) solid var(--color-rule-soft);
}

.quiz__breakdown strong {
  font-size: var(--text-sm);
  font-weight: 600;
}

.quiz__breakdown p {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: oklch(40% 0.012 50);
}

.quiz__fixes {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz__fixes ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: fix;
}

.quiz__fixes li {
  display: flex;
  gap: 10px;
  font-size: var(--text-sm);
  line-height: 1.45;
  counter-increment: fix;
}

.quiz__fixes li::before {
  content: counter(fix);
  color: var(--color-accent-ink);
  font-weight: 600;
}

.quiz__screen--result {
  container-type: inline-size;
}

.quiz-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: var(--rule-hair) solid var(--color-rule);
  padding: 8cqi;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-paper);
}

.quiz-card__kicker {
  font-size: 3.6cqi;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent-ink);
}

.quiz-card__main {
  display: flex;
  align-items: center;
  gap: 6cqi;
}

.quiz-card__grade {
  font-size: 30cqi;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.quiz-card__verdict {
  font-size: 6cqi;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.quiz-card__sign {
  display: flex;
  align-items: center;
  gap: 2cqi;
  font-size: 3.4cqi;
  color: var(--color-ink-2);
}

.quiz-card__sign::before {
  content: '';
  width: 2.6cqi;
  height: 2.6cqi;
  border-radius: 50%;
  background: var(--color-accent);
}

.quiz-card__sign strong {
  font-weight: 700;
  color: var(--color-ink);
}

.quiz__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz__actions div {
  display: flex;
  gap: 8px;
}

.quiz__actions div .btn {
  flex: 1;
}


/* Araç panelleri: sol giriş kartı, sağ canlı sonuç (mercan değil, sakin yüzey) */
.tool-panel .btn-row .btn {
  flex: 1 1 auto;
}

.capture__row .btn {
  flex: 0 0 auto;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  min-width: 0;
}

.tool-panel--out {
  border-color: transparent;
  background: var(--color-paper-2);
}

.tool-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.tool-panel__meta {
  font-size: var(--text-xs);
  font-weight: 400;
  color: oklch(40% 0.012 50);
}

.tool-panel__empty {
  min-height: 140px;
  color: var(--color-ink-3);
}

.tool-panel__output {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.examples__label {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

/* Değişen ifadeler: üstü çizili → yeni */
.hits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.hits li {
  font-size: var(--text-2xs);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-card);
  border: var(--rule-hair) solid oklch(90% 0.008 70);
  overflow-wrap: anywhere;
}

.hits span {
  text-decoration: line-through;
  color: var(--color-ink-3);
}

.hits strong {
  font-weight: 600;
}

.btn-row--fill .btn {
  flex: 1 1 auto;
}

.quiz__more {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
