/* ════════════════════════════════════════════════════════════
   ANKET SAYFASI (anket.php) — tekil anket katılım/sonuç ekranı
   Palet: navy #0816a1 / #312783 · cyan #009fe3 / #87edff
   body.ic-sayfa.anasayfa-bg altyapısını kullanır (hero + gradyan
   zaten style-pages.css'te tanımlı) — burada yalnızca .ank-* içerik
   bileşenleri stillenir.
   ════════════════════════════════════════════════════════════ */

.ank-page { position: relative; }
.ank-page *,
.ank-page *::before,
.ank-page *::after { box-sizing: border-box; }

/* Hero: başlık tek satır/blok, açıklama altında ayrı satır (yan yana değil) */
.ank-page .page-hero__grid {
  display: block;
  width: 100%;
}
.ank-hero-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ank-hero-desc {
  margin-top: 18px;
  max-width: 760px;
}

/* Dar ekranda uzun başlıkları kırpmak yerine iki satıra sar (bilgi kaybı olmasın) */
@media (max-width: 639px) {
  .ank-hero-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Hero altı ayraç — görünür çizgi yerine sade boşluk (ic-sayfa akışıyla tutarlı) */
.hn-divider { border: 0; height: 0; margin: 0; }

/* İçerik: diğer iç sayfalarla aynı page-content-section > ic-main > page-content
   kartı kullanılıyor (style-pages.css) — burada ek bir kart katmanı eklenmiyor. */
.ank-page-content { min-height: 200px; }

/* ── Durum kartı (kapalı / bulunamadı / zaten katıldı) ── */
.ank-durum-kart {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ank-durum-kart__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.ank-durum-kart__icon--lock {
  background: rgba(107, 114, 128, .12);
  color: #6b7280;
}
.ank-durum-kart__icon--success {
  background: rgba(0, 159, 227, .12);
  color: #009fe3;
}

.ank-durum-kart__baslik {
  font-size: 1.375rem;
  font-weight: 700;
  color: #00005c;
  margin: 0 0 10px;
}
.ank-durum-kart__mesaj {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 28px;
}
.ank-durum-kart__mesaj:last-child { margin-bottom: 0; }

/* ── Butonlar ── */
.ank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}

.ank-btn--primary {
  background: #0816a1;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(8, 22, 161, .28);
}
.ank-btn--primary:hover {
  background: #050d5e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 22, 161, .38);
}
.ank-btn--primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.ank-btn--outline {
  background: #fff;
  color: #0816a1 !important;
  border: 1.5px solid #d8e0ee;
}
.ank-btn--outline:hover {
  border-color: #0816a1;
  background: rgba(8, 22, 161, .05);
  transform: translateY(-2px);
}

/* ── Soru grid (genişlik: tam / yarım / üçte bir) ── */
.ank-soru-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 24px;
}
.ank-soru-blok { grid-column: span 6; min-width: 0; }
.ank-col--yarim { grid-column: span 3; }
.ank-col--ucte  { grid-column: span 2; }

@media (max-width: 767px) {
  .ank-col--yarim,
  .ank-col--ucte { grid-column: span 6; }
}

.ank-soru-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #00005c;
  margin-bottom: 14px;
  line-height: 1.4;
}
.ank-zorunlu { color: #e02424; margin-left: 2px; }

/* Zorunlu alan boş bırakılıp gönderilince hata vurgusu */
.ank-soru-blok.hata .ank-soru-label { color: #e02424; }
.ank-soru-blok.hata .ank-select,
.ank-soru-blok.hata .ank-input,
.ank-soru-blok.hata .ank-textarea,
.ank-soru-blok.hata .ank-checkbox-grup,
.ank-soru-blok.hata .ank-scale-grup {
  outline: 1.5px solid #e02424;
  outline-offset: 4px;
  border-radius: 10px;
}

/* ── Seçenekler (radio / checkbox) ── */
.ank-secenek {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1.5px solid #e5eaf2;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: #252526;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.ank-secenek:hover { border-color: #b9c6e6; }
.ank-secenek.secili {
  border-color: #0816a1;
  background: rgba(8, 22, 161, .05);
  color: #0816a1;
  font-weight: 600;
}
.ank-secenek input[type="radio"],
.ank-secenek input[type="checkbox"] {
  accent-color: #0816a1;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ── Select / text / textarea ── */
.ank-select,
.ank-input,
.ank-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5eaf2;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #252526;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ank-select:focus,
.ank-input:focus,
.ank-textarea:focus {
  outline: none;
  border-color: #0816a1;
  box-shadow: 0 0 0 3px rgba(8, 22, 161, .1);
}
.ank-textarea { min-height: 110px; resize: vertical; }

/* ── Yıldız derecelendirme ── */
.ank-yildiz-grup {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ank-yildiz-etiket { font-size: 0.8125rem; color: #6b7280; margin: 0 4px; }
.ank-yildiz-ikon {
  font-size: 1.75rem;
  line-height: 1;
  color: #d8e0ee;
  transition: color .15s ease, transform .15s ease;
}
.ank-yildiz-ikon.hover,
.ank-yildiz-ikon.aktif { color: #0816a1; }
.ank-yildiz-ikon.hover { transform: scale(1.12); }

/* ── Ölçek (scale) ── */
.ank-scale-etiketler {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 10px;
}
.ank-scale-grup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ank-scale-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1.5px solid #e5eaf2;
  border-radius: 10px;
  background: #fff;
  color: #252526;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.ank-scale-btn:hover { border-color: #b9c6e6; }
.ank-scale-btn.secili {
  border-color: #0816a1;
  background: #0816a1;
  color: #fff;
}

/* ── Gönder satırı ── */
.ank-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #eef1f6;
}

/* ── Sonuçlar (aynı page-content kartı içinde, ayrım çizgisiyle) ── */
.ank-sonuclar-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #eef1f6;
}

.ank-sonuclar__baslik {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00005c;
  margin: 0 0 24px;
}
.ank-sonuc-blok { margin-bottom: 26px; }
.ank-sonuc-blok:last-child { margin-bottom: 0; }
.ank-sonuc-soru {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #252526;
  margin: 0 0 12px;
}

.ank-bar { margin-bottom: 12px; }
.ank-bar:last-child { margin-bottom: 0; }
.ank-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-bottom: 6px;
}
.ank-bar__label span:first-child { color: #252526; font-weight: 600; }
.ank-bar__track {
  height: 10px;
  border-radius: 6px;
  background: #eef1f6;
  overflow: hidden;
}
.ank-bar__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #0816a1, #009fe3);
  transition: width .5s ease;
}

.ank-ortalama {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ank-ortalama__puan {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0816a1;
  line-height: 1;
}
.ank-ortalama__max { font-size: 1rem; color: #6b7280; }

.ank-text-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ank-text-list li {
  padding: 12px 16px;
  background: #f7f9fc;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #252526;
  line-height: 1.5;
}

/* ── Mobil ── */
@media (max-width: 639px) {
  .ank-durum-kart__icon { width: 60px; height: 60px; margin-bottom: 18px; }
  .ank-durum-kart__baslik { font-size: 1.2rem; }
  .ank-ortalama__puan { font-size: 1.75rem; }
}
