/* quiz.css — Hediyo Quiz v2 */

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; }
.quiz-question, .quiz-subtitle, .option-label,
button, h1, h2 { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Desktop İki Panel Layout ── */
.quiz-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Masaüstü: yan yana */
@media (min-width: 768px) {
  .quiz-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
    min-height: calc(100vh - 120px);
  }
}

.quiz-left {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .quiz-left {
    position: sticky;
    top: 80px;
  }
  /* Masaüstünde başlık daha büyük */
  .quiz-question {
    font-size: clamp(2rem, 3vw, 3rem) !important;
    margin-bottom: 16px;
  }
  .quiz-subtitle {
    font-size: 1.0625rem !important;
  }
}

/* ── Arka Plan Gradyanları ── */
.quiz-bg-0 { background: linear-gradient(135deg, #F5F3FF 0%, #ffffff 60%); }
.quiz-bg-1 { background: linear-gradient(135deg, #FDF2F8 0%, #ffffff 60%); }
.quiz-bg-2 { background: linear-gradient(135deg, #EFF6FF 0%, #ffffff 60%); }
.quiz-bg-3 { background: linear-gradient(135deg, #FFFBEB 0%, #ffffff 60%); }
.quiz-bg-4 { background: linear-gradient(135deg, #F0FDF4 0%, #ffffff 60%); }
.quiz-bg-5 { background: linear-gradient(135deg, #FFF1F2 0%, #ffffff 60%); }
.quiz-bg-6 { background: linear-gradient(135deg, #F5F3FF 0%, #ffffff 60%); }

/* ── Soru Metni ── */
.quiz-question {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.quiz-subtitle {
  font-size: 0.9375rem;
  color: #9CA3AF;
  font-weight: 400;
  line-height: 1.5;
}

/* ── Masaüstünde soru sadece sol panelde — mobilde sağda göster ── */
@media (min-width: 768px) {
  .quiz-question-mobile { display: none; }
  #quiz-question-panel  { display: block; }
}
@media (max-width: 767px) {
  .quiz-question-mobile { display: block; }
  #quiz-question-panel  { display: none; }
}

/* ── Adım numarası ── */
.quiz-step-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #C4B5FD;
  letter-spacing: 0.05em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Seçenek Grid ── */
.options-grid { display: flex; flex-direction: column; gap: 12px; }
.options-grid.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.options-grid.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* ── Seçenek Kartı ── */
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #E7E5E4;
  border-radius: 13px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
  min-height: 66px;
}
.option-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.04), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.option-card:hover {
  border-color: #7C3AED;
  box-shadow: 0 10px 24px rgba(17,24,39,0.07);
  transform: translateY(-2px);
}
.option-card:hover::after { opacity: 1; }
.option-card:active { transform: translateY(0) scale(0.98); }
.option-card.selected {
  border-color: #7C3AED;
  background: rgba(245,243,255,0.9);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.10);
}
.option-card.selected .option-check { opacity: 1; transform: scale(1); }

.option-icon { flex-shrink: 0; }
.option-emoji { font-size: 1.75rem; line-height: 1; }
.option-icon-img { width: 70px; height: 70px; object-fit: contain; border-radius: 12px; }

/* Phosphor ikon container — emoji'nin yerini alan kaliteli ikon */
.option-icon-ph {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(124,58,237,0.10), rgba(168,85,247,0.06));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.option-icon-ph i {
  font-size: 1.875rem;
  color: #7C3AED;
}
.option-card:hover .option-icon-ph {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.10));
}
.option-card.selected .option-icon-ph {
  background: linear-gradient(135deg, rgba(124,58,237,0.20), rgba(168,85,247,0.14));
}
.option-card.selected .option-icon-ph i {
  color: #6D28D9;
}

.option-text { flex: 1; min-width: 0; }
.option-label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #111827;
  line-height: 1.3;
}
.option-sub {
  display: block;
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 2px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.option-check {
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Animasyonlar ── */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardSelect {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.96); }
  70%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.anim-right   { animation: slideInRight 0.28s cubic-bezier(0.22,1,0.36,1); }
.anim-left    { animation: slideInLeft  0.28s cubic-bezier(0.22,1,0.36,1); }
.anim-fade    { animation: fadeIn       0.28s ease-out; }
.selecting    { animation: cardSelect   0.3s  cubic-bezier(0.34,1.56,0.64,1); }
.shake        { animation: shake        0.4s  ease; }

/* ── Devam Butonu ── */
.btn-next {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124,58,237,0.35);
  transition: all 0.15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124,58,237,0.45);
}
.btn-next:active:not(:disabled) { transform: scale(0.98); }
.btn-next-disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* ── Çoklu Seçim Sayacı ── */
.multi-counter {
  margin-top: 16px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7C3AED;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Loading ── */
@keyframes giftBounce {
  0%,100% { transform: translateY(0) rotate(0deg) scale(1); }
  25%      { transform: translateY(-12px) rotate(-8deg) scale(1.05); }
  75%      { transform: translateY(-6px) rotate(5deg) scale(1.02); }
}
@keyframes shimmerText {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
@keyframes skeletonPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

.gift-icon { display: inline-block; animation: giftBounce 1.4s ease-in-out infinite; }

.loading-text {
  background: linear-gradient(90deg, #7C3AED 0%, #A855F7 50%, #7C3AED 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 2s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% auto;
  animation: shimmerText 1.5s linear infinite;
  border-radius: 8px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.25s ease-out; }

@media (max-width: 480px) {
  .options-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .option-card { padding: 12px 14px; min-height: 58px; gap: 10px; }
  .option-emoji { font-size: 1.5rem; }
  .option-label { font-size: 0.875rem; }
}





/* Migrated from quiz.html */
body{opacity:0;transition:opacity 0.2s ease}body.i18n-ready{opacity:1}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

