/* ============================================================
   ALKIŞ — Müşteri değerlendirme sayfası · "Sahne Işığı"
   Koyu sahne + spotlight; kart sahnede aydınlanan açık yüzey.
   İşletmenin kendi rengi (--brand, review.js enjekte eder) = aksan.
   review.js'in dokunduğu class/ID isimleri DEĞİŞMEZ — sadece görünüm.
   ============================================================ */
:root {
  --brand: #6d28d9;          /* review.js işletme rengiyle override eder */
  --brand-dark: #581c87;     /* review.js shade() ile override eder */
  --gold: #f5b425;
  --gold-deep: #e08a1e;
  --card: #ffffff;
  --text: #181225;
  --muted: #6b647d;
  --border: #ece8f3;
  --radius: 28px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --symbol: "Segoe UI Symbol", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

/* ---------- Sahne (koyu zemin + spotlight) ---------- */
body {
  font-family: var(--font);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 26px 18px;
  -webkit-font-smoothing: antialiased;
  position: relative; overflow-x: hidden;
  background:
    radial-gradient(125% 80% at 50% -8%, #3c1f63 0%, #241043 38%, #160a2c 72%, #100720 100%);
}
/* spotlight huzmesi — üstten aşağı açılan ışık konisi */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 50% at 50% 0%, rgba(255,238,200,.20) 0%, rgba(255,238,200,.07) 32%, transparent 64%),
    conic-gradient(from 180deg at 50% -6%, transparent 38%, rgba(255,240,210,.10) 50%, transparent 62%);
}
/* ince film grain — derinlik için, statik/ucuz */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Kart (sahnede aydınlanan açık yüzey) ---------- */
.card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  width: 100%; max-width: 412px;
  border-radius: var(--radius);
  padding: 38px 28px 26px; text-align: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 40px 80px -28px rgba(8,3,20,.75),
    0 0 0 1px rgba(255,255,255,.04);
  animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
}
/* kartın tepesinde spotlight bloom + altın hairline */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(120% 60% at 50% -12%, rgba(245,180,37,.16) 0%, transparent 55%);
}
.card::after {
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,180,37,.65), transparent);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Logo ---------- */
.logo {
  position: relative; width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 26px -8px color-mix(in srgb, var(--brand) 55%, transparent),
              0 0 0 5px rgba(255,255,255,.7);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }

.biz-name { font-size: 23px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.biz-tag { color: var(--muted); font-size: 13.5px; margin-top: 4px; font-weight: 500; }

.prompt { font-size: 18px; font-weight: 600; margin: 22px 0 4px; color: var(--text); }
.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

/* ---------- Yıldızlar (altın, sahne ışığında parlar) ---------- */
.stars { display: flex; justify-content: center; gap: 9px; margin: 10px 0 4px; font-family: var(--symbol); }
.star {
  font-size: 46px; line-height: 1; color: #dcd7e6; cursor: pointer;
  transition: transform .14s cubic-bezier(.2,.8,.2,1), color .14s ease, text-shadow .2s ease;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.star:hover { transform: scale(1.16) translateY(-1px); }
.star.active {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(245,180,37,.6), 0 0 4px rgba(245,180,37,.8);
  animation: starpop .26s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes starpop { 0% { transform: scale(.8); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* ---------- Aksiyonlar / butonlar ---------- */
.actions { margin-top: 20px; display: none; }
.actions.show { display: block; animation: rise .3s ease both; }
.actions-title { font-size: 15.5px; font-weight: 600; margin: 6px 0 14px; color: var(--text); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: none; border-radius: 14px; padding: 16px 18px; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: filter .15s ease, transform .06s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand) 65%, transparent); }

/* ---------- Özel geri bildirim kutusu ---------- */
.feedback { margin-top: 14px; display: none; text-align: left; }
.feedback.show { display: block; animation: rise .3s ease both; }
.feedback label { font-size: 13.5px; color: var(--muted); display: block; margin-bottom: 8px; font-weight: 500; }
.feedback textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 13px; padding: 13px;
  font-size: 15px; font-family: inherit; resize: vertical; min-height: 96px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease; outline: none; color: var(--text);
}
.feedback textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }

/* ---------- Çekiliş ---------- */
.raffle {
  margin-top: 16px; display: none; text-align: left;
  background: linear-gradient(180deg, #fbf7ff, #f6efff);
  border: 1px solid #ebddff; border-radius: 18px; padding: 18px 16px;
  position: relative; overflow: hidden;
}
.raffle::before {
  content: ""; position: absolute; top: -30px; right: -30px; width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(245,180,37,.20), transparent 70%);
}
.raffle.show { display: block; animation: rise .3s ease both; }
.raffle-head { font-size: 16px; font-weight: 700; text-align: center; color: var(--text); }
.raffle-desc { font-size: 12.5px; color: var(--muted); text-align: center; margin: 4px 0 14px; line-height: 1.5; }
.rf-input {
  width: 100%; border: 1.5px solid #e8dcfb; border-radius: 13px; padding: 12px 14px;
  font-size: 15px; font-family: inherit; margin-bottom: 10px; outline: none; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rf-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.rf-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.rf-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.rf-consent a { color: var(--brand); text-decoration: underline; }
.rf-error { color: #e11d48; font-size: 13px; margin-top: 8px; display: none; }
.rf-error.show { display: block; }
.rf-done { display: none; margin-top: 12px; text-align: center; font-weight: 700; color: var(--brand); }
.rf-done.show { display: block; animation: rise .3s ease both; }

/* ---------- Bitti / footer ---------- */
.done { margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--text); display: none; }
.done.show { display: block; animation: rise .3s ease both; }
.footer-note { margin-top: 26px; font-size: 11px; color: #b9b2c7; letter-spacing: .02em; }
.footer-note a { color: var(--brand); text-decoration: none; font-weight: 600; }

/* ---------- Hata kutusu ---------- */
.error-box h2 { margin-bottom: 8px; color: var(--text); }
.error-box p { color: var(--muted); }

/* ---------- Konfeti katmanı (confetti.js doldurur) ---------- */
.alkis-confetti {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden;
}
.alkis-confetti i {
  position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px;
  will-change: transform, opacity; opacity: 0;
  animation: confetti-fall var(--dur, 1500ms) cubic-bezier(.2,.6,.4,1) forwards;
}
@keyframes confetti-fall {
  0%   { opacity: 0; transform: translate3d(0, -10px, 0) rotate(0deg) scale(.6); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), var(--dy, 80vh), 0) rotate(var(--rot, 540deg)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .actions.show, .feedback.show, .raffle.show, .rf-done.show, .done.show, .star.active { animation: none !important; }
  .alkis-confetti { display: none !important; }
}
