/* ============================================================
   KUMAR BAĞIMLILIK TESTİ — quiz.css
   ============================================================ */

/* --- Banner (her sayfanın altında) --- */
.gq-banner {
  margin: 40px auto 0;
  max-width: 720px;
  background: linear-gradient(135deg, #fff5f5, #ffffff);
  border: 1.5px solid #ffd1d1;
  border-radius: 18px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(192,0,0,0.07);
}
.gq-banner-text {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}
.gq-banner-text span {
  font-size: 1.4rem;
  margin-right: 8px;
}
.gq-banner-btn {
  background: #c00000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.gq-banner-btn:hover {
  background: #8a0000;
  transform: translateY(-1px);
}

/* --- Modal arka planı --- */
.gq-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gq-overlay.gq-open {
  display: flex;
}

/* --- Modal kutusu --- */
.gq-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: gqSlideIn 0.25s ease;
}
@keyframes gqSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.gq-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.gq-close:hover { color: #c00000; }

.gq-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c00000;
  margin: 0 0 4px;
}
.gq-modal-sub {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 24px;
}

/* --- İlerleme çubuğu --- */
.gq-progress-wrap {
  background: #f0f0f0;
  border-radius: 999px;
  height: 7px;
  margin-bottom: 22px;
  overflow: hidden;
}
.gq-progress-bar {
  background: #c00000;
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.gq-progress-label {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 8px;
  text-align: right;
}

/* --- Soru --- */
.gq-question-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* --- Seçenekler --- */
.gq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.gq-option {
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #1a1a2e;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.gq-option:hover {
  border-color: #c00000;
  background: #fff5f5;
}
.gq-option.gq-selected {
  border-color: #c00000;
  background: #fff0f0;
  font-weight: 600;
}

/* --- İleri butonu --- */
.gq-next-btn {
  background: #c00000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin-left: auto;
}
.gq-next-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.gq-next-btn:not(:disabled):hover { background: #8a0000; }

/* --- Sonuç ekranı --- */
.gq-result {
  text-align: center;
  padding: 8px 0;
}
.gq-result-emoji { font-size: 3rem; margin-bottom: 10px; }
.gq-result-level {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.gq-result-level.gq-low  { color: #16a34a; }
.gq-result-level.gq-mid  { color: #d97706; }
.gq-result-level.gq-high { color: #c00000; }
.gq-result-desc {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 24px;
}
.gq-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.gq-result-cta {
  background: #c00000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.gq-result-cta:hover { background: #8a0000; }
.gq-result-retry {
  background: #f0f0f0;
  color: #1a1a2e;
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gq-result-retry:hover { background: #e0e0e0; }

/* --- Dark mode uyumu --- */
body.dark-theme .gq-banner {
  background: linear-gradient(135deg, #1e1e2e, #111827);
  border-color: rgba(248,113,113,0.3);
}
body.dark-theme .gq-banner-text { color: #e2e8f0; }
body.dark-theme .gq-modal {
  background: #111827;
  color: #e2e8f0;
}
body.dark-theme .gq-question-text { color: #f1f5f9; }
body.dark-theme .gq-option {
  background: #1e293b;
  border-color: #2d3748;
  color: #e2e8f0;
}
body.dark-theme .gq-option:hover {
  border-color: #f87171;
  background: #2d1f1f;
}
body.dark-theme .gq-option.gq-selected {
  border-color: #f87171;
  background: #2d1f1f;
}
body.dark-theme .gq-modal-sub { color: #94a3b8; }
body.dark-theme .gq-result-desc { color: #cbd5e1; }
body.dark-theme .gq-result-retry {
  background: #1e293b;
  color: #e2e8f0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .gq-modal { padding: 24px 18px; }
  .gq-banner { flex-direction: column; text-align: center; }
}