/* =========================================================
   /site-analiz sayfasına özel stiller. Yalnız bu sayfada yüklenir;
   renk ve ölçüler style.css değişkenlerinden gelir.
   ========================================================= */

/* ---------------- Form ---------------- */
.sa-form {
  max-width: 680px;
  margin: 30px auto 0;
  text-align: left;
}
.sa-etiket {
  display: block;
  margin-bottom: 8px;
  color: var(--cold);
  font-size: 0.86rem;
  font-weight: 500;
}
.sa-satir {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--glass);
  transition: border-color 0.25s;
}
.sa-satir:focus-within {
  border-color: rgba(124, 140, 255, 0.6);
}
.sa-satir input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cloud);
  font: inherit;
  font-size: 1rem;
}
.sa-satir input::placeholder {
  color: var(--muted);
}
.sa-satir .btn {
  flex: none;
  white-space: nowrap;
}
.sa-satir .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.sa-hata {
  margin: 10px 0 0;
  color: #ff8d8d;
  font-size: 0.88rem;
}
.sa-not {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.sa-not a {
  color: var(--cold);
  text-decoration: underline;
}
/* Bot tuzağı: ekran dışında, ekran okuyucudan gizli */
.sa-tuzak {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- Bekleme ---------------- */
.sa-sonuc {
  padding-top: 0;
  scroll-margin-top: calc(var(--hdr-h, 76px) + 16px);
}
.sa-bekle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(124, 140, 255, 0.28);
  border-radius: var(--r-xl);
  background: var(--brand-soft);
  box-shadow: var(--shadow);
}
.sa-bekle[hidden] {
  display: none;
}
.sa-ilerle {
  position: relative;
  flex: none;
  width: 176px;
  height: 176px;
}
.sa-ilerle svg {
  display: block;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(76, 111, 255, 0.45));
}
.sa-yay-zemin,
.sa-yay {
  fill: none;
  stroke-width: 8;
}
.sa-yay-zemin {
  stroke: var(--line);
}
.sa-yay {
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.sa-ilerle > b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  align-self: center;
  height: max-content;
  margin: auto;
  color: var(--cloud);
  font-size: 2.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sa-ilerle > b i {
  margin-left: 2px;
  color: var(--cold);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
}
.sa-bekle-metin {
  flex: 1 1 auto;
  min-width: 0;
}
.sa-bekle-baslik {
  margin: 0;
  color: var(--cloud);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
}
.sa-bekle-site {
  margin: 2px 0 16px;
  color: var(--cold);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.sa-adimlar {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sa-adimlar li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.sa-adimlar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}
.sa-adimlar li.aktif {
  color: var(--cloud);
  font-weight: 500;
}
.sa-adimlar li.aktif::before {
  border-color: var(--brand);
  border-top-color: transparent;
  animation: sa-don 0.8s linear infinite;
}
.sa-adimlar li.tamam {
  color: var(--cold);
}
.sa-adimlar li.tamam::before {
  border-color: var(--good);
  background: var(--good);
}
.sa-adimlar li.tamam::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 5px;
  height: 8px;
  border: solid var(--navy-950);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes sa-don {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sa-adimlar li.aktif::before {
    animation: none;
    border-top-color: var(--brand);
  }
}

/* ---------------- Rapor ---------------- */
.sa-rapor-bas h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  overflow-wrap: anywhere;
  outline: 0;
}
.sa-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.sa-puanlar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 24px;
}
.sa-puan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--glass);
}
.sa-puan.ana {
  border-color: rgba(124, 140, 255, 0.36);
  background: var(--brand-soft);
}
.sa-halka {
  --p: 0;
  --c: var(--good);
  display: grid;
  place-items: center;
  width: clamp(78px, 13vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0);
}
.sa-halka b {
  display: grid;
  place-items: center;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--cloud);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
}
.sa-puan-ad {
  color: var(--cold);
  font-size: 0.88rem;
  font-weight: 500;
}
.sa-suzgec {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.sa-suzgec .fchip {
  cursor: pointer;
  font: inherit;
}
.sa-kolonlar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 20px;
  align-items: start;
}
.sa-kolonlar h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.sa-liste {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sa-madde {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-s);
  background: var(--glass);
}
.sa-madde[hidden] {
  display: none;
}
.sa-madde.kritik {
  border-left-color: #ff6b6b;
}
.sa-madde.uyari {
  border-left-color: #ffb24a;
}
.sa-madde.iyi {
  border-left-color: var(--good);
}
.sa-madde-ust {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.sa-madde-ust b {
  color: var(--cloud);
  font-size: 0.93rem;
  font-weight: 600;
}
.sa-rozet {
  flex: none;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--glass-2);
  color: var(--cold);
  font-size: 0.7rem;
  font-weight: 600;
}
.kritik > .sa-madde-ust .sa-rozet {
  background: rgba(255, 107, 107, 0.16);
  color: #ff9c9c;
}
.uyari > .sa-madde-ust .sa-rozet {
  background: rgba(255, 178, 74, 0.15);
  color: #ffc77d;
}
.iyi > .sa-madde-ust .sa-rozet {
  background: rgba(62, 214, 160, 0.14);
  color: var(--good);
}
.sa-madde-not,
.sa-madde-yap {
  margin: 6px 0 0;
  color: var(--cold);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.sa-madde-yap strong {
  color: var(--cloud);
  font-weight: 600;
}
.sa-sinir {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.sa-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(124, 140, 255, 0.3);
  border-radius: var(--r-l);
  background: var(--brand-soft);
}
.sa-cta h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.sa-cta p {
  margin: 0;
  color: var(--cold);
  font-size: 0.9rem;
}
.sa-cta-dugme {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Tanıtım bölümleri ---------------- */
.sa-kapsam {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.sa-kapsam h3 {
  margin: 0 0 8px;
}
.sa-yazi {
  max-width: 860px;
}
.sa-yazi > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 0 0 14px;
}
.sa-yazi > p {
  color: var(--cold);
  line-height: 1.75;
}
.sa-yazi > p a {
  color: var(--cloud);
  text-decoration: underline;
}
.sa-yazi .sd-block {
  margin-top: clamp(32px, 4vw, 48px);
}

/* ---------------- Dar ekran ---------------- */
@media (max-width: 900px) {
  .sa-kolonlar,
  .sa-kapsam {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .sa-bekle {
    flex-direction: column;
    text-align: center;
  }
  .sa-adimlar {
    text-align: left;
  }
}
@media (max-width: 560px) {
  .sa-satir {
    flex-direction: column;
  }
  .sa-satir .btn {
    width: 100%;
    justify-content: center;
  }
  .sa-puan {
    padding: 14px 6px;
  }
  .sa-cta-dugme,
  .sa-cta-dugme .btn {
    width: 100%;
    justify-content: center;
  }
}
