/* ========================================================
   test.dijitalevrak.com - GIF Reaksiyonlu Anket Tasarımı
   Sade, modern, doğal ve profesyonel insan tasarımı
   (Yapay zeka parlamaları ve gereksiz efektler kaldırılmıştır)
   ======================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f1f5f9;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Ana Konteyner */
.app-wrapper {
  width: 100%;
  max-width: 520px;
}

/* Anket Kartı */
.quiz-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 20px -3px rgba(0, 0, 0, 0.05);
  padding: 32px 28px;
}

/* İlerleme Çubuğu */
.progress-container {
  margin-bottom: 24px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 33%;
  background: #2563eb;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Soru Başlığı */
.question-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}
.question-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Seçenekler Listesi (Gerçekçi & Sade Anket Butonları) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-option {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  transition: all 0.15s ease;
  outline: none;
}

.opt-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.opt-text {
  flex: 1;
}

.btn-option:hover {
  border-color: #2563eb;
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-option:hover .opt-badge {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.btn-option:active {
  transform: translateY(1px);
}

/* ========================================================
   REAKSİYON GIF EKRANI (TEMİZ MODAL)
   ======================================================== */
.reaction-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.reaction-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.reaction-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.2s ease;
  margin: auto;
}
.reaction-overlay.active .reaction-card {
  transform: scale(1);
}

.reaction-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #334155;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-gif-wrapper {
  width: 100%;
  min-height: 180px;
  max-height: min(390px, 50vh);
  border-radius: 14px;
  overflow: hidden;
  background: #090d16;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reaction-gif-img {
  max-width: 100%;
  max-height: min(390px, 50vh);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.btn-next-step {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-next-step:hover {
  background: #1d4ed8;
}

/* ========================================================
   FİNAL ANKET SONUÇ MODALI
   ======================================================== */
.final-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.final-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.final-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
}
.final-icon {
  font-size: 52px;
  margin-bottom: 12px;
}
.final-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.final-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 24px;
}
.btn-final {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.btn-final-primary {
  background: #2563eb;
  color: #ffffff;
}
.btn-final-primary:hover {
  background: #1d4ed8;
}
.btn-final-secondary {
  background: #f1f5f9;
  color: #334155;
}
.btn-final-secondary:hover {
  background: #e2e8f0;
}

/* Mobil */
@media (max-width: 480px) {
  .quiz-card {
    padding: 22px 16px;
  }
  .question-title {
    font-size: 1.35rem;
  }
  .btn-option {
    padding: 13px 14px;
    font-size: 0.95rem;
  }
  .reaction-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .reaction-gif-wrapper {
    min-height: 160px;
    max-height: 46vh;
    margin-bottom: 14px;
  }
  .reaction-gif-img {
    max-height: 46vh;
  }
}

