/* ============================================================
   NFC Direct — Google Yorum Yönlendirme Sayfası
   Mobil öncelikli, tek dokunuş odaklı tasarım
   ============================================================ */

:root {
  --g-blue:   #1a73e8;
  --g-blue-d: #1557b0;
  --g-red:    #ea4335;
  --g-yellow: #fbbc04;
  --g-green:  #34a853;
  --star:     #fbbc04;

  --bg:        #f6f8fc;
  --card:      #ffffff;
  --text:      #1f2328;
  --text-soft: #5f6368;
  --line:      #e6e9ef;

  --shadow-card: 0 1px 2px rgba(60,64,67,.10), 0 12px 40px -12px rgba(60,64,67,.28);
  --shadow-cta:  0 4px 14px rgba(26,115,232,.38);

  --radius: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #101418;
    --card:      #1b2027;
    --text:      #e8eaed;
    --text-soft: #9aa0a6;
    --line:      #2b323a;
    --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 18px 48px -14px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* --- Arka plan renk lekeleri (Google paleti) --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .30;
}
@media (prefers-color-scheme: dark) { .blob { opacity: .18; } }

.blob--blue   { width: 46vmax; height: 46vmax; background: var(--g-blue);   top: -18vmax; left: -14vmax; }
.blob--red    { width: 32vmax; height: 32vmax; background: var(--g-red);    top: -8vmax;  right: -12vmax; }
.blob--yellow { width: 34vmax; height: 34vmax; background: var(--g-yellow); bottom: -14vmax; left: -10vmax; }
.blob--green  { width: 44vmax; height: 44vmax; background: var(--g-green);  bottom: -20vmax; right: -16vmax; }

/* --- Sayfa yerleşimi --- */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

/* --- Kart --- */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 24px 26px;
  text-align: center;
  animation: card-in .55s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* --- Maps pini --- */
.pin {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}
/* Pin ikonunun ortasındaki delik saydam; koyu temada boşluk görünmesin diye
   arkasına ikonla aynı ritimde süzülen beyaz bir daire koyuyoruz. */
.pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 38%;
  aspect-ratio: 1 / 1;
  margin-left: -19%;
  margin-top: -19%;
  background: #fff;
  border-radius: 50%;
  animation: float 3.4s ease-in-out infinite;
}
.pin__img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(84px, 26vw, 110px);
  height: auto;
  animation: float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(60,64,67,.22));
}
.pin__shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 46%;
  height: 8px;
  transform: translateX(-50%);
  background: rgba(60,64,67,.20);
  border-radius: 50%;
  filter: blur(5px);
  animation: shrink 3.4s ease-in-out infinite;
}
@keyframes float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes shrink { 0%,100% { transform: translateX(-50%) scaleX(1); opacity:.20; } 50% { transform: translateX(-50%) scaleX(.78); opacity:.12; } }

/* --- Metinler --- */
.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.title {
  margin: 0 0 8px;
  font-size: clamp(23px, 6.2vw, 29px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
.subtitle {
  margin: 0 0 22px;
  font-size: clamp(14.5px, 4vw, 16px);
  line-height: 1.5;
  color: var(--text-soft);
}

/* --- 5 yıldız --- */
.stars {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 2vw, 10px);
  margin-bottom: 10px;
}
.star {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
  touch-action: manipulation;
  border-radius: 12px;
  transition: transform .18s cubic-bezier(.2,.8,.3,1.4);
  animation: star-pop .45s cubic-bezier(.2,.9,.3,1.5) both;
}
.star:nth-child(1) { animation-delay: .18s; }
.star:nth-child(2) { animation-delay: .27s; }
.star:nth-child(3) { animation-delay: .36s; }
.star:nth-child(4) { animation-delay: .45s; }
.star:nth-child(5) { animation-delay: .54s; }

@keyframes star-pop {
  from { opacity: 0; transform: scale(.4) rotate(-25deg); }
  to   { opacity: 1; transform: none; }
}

.star svg {
  width: clamp(34px, 10.5vw, 44px);
  height: auto;
  fill: var(--star);
  filter: drop-shadow(0 2px 4px rgba(251,188,4,.35));
  transition: fill .15s ease, filter .15s ease;
}
.star:active { transform: scale(.88); }
.star:focus-visible { outline: 3px solid var(--g-blue); outline-offset: 2px; }

/* seçim sonrası: seçilenin sağındaki yıldızlar soluklaşır */
.stars.is-picked .star.is-off svg {
  fill: var(--line);
  filter: none;
}
.star.is-hit { animation: hit .4s cubic-bezier(.2,.9,.3,1.5); }
@keyframes hit {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.32) rotate(8deg); }
  100% { transform: scale(1); }
}

.stars__hint {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-soft);
  min-height: 18px;
  transition: color .2s ease;
}
.stars__hint.is-live { color: var(--g-green); font-weight: 600; }

/* --- Ana buton --- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 100px;
  background: var(--g-blue);
  color: #fff;
  font-size: clamp(16.5px, 4.4vw, 18px);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  touch-action: manipulation;
}
.cta:hover  { background: var(--g-blue-d); box-shadow: 0 6px 20px rgba(26,115,232,.45); }
.cta:active { transform: scale(.975); box-shadow: 0 2px 8px rgba(26,115,232,.35); }
.cta:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.cta__g {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  flex: none;
}
.cta__arrow {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: .9;
  transition: transform .22s cubic-bezier(.2,.8,.3,1.4);
}
.cta:hover .cta__arrow { transform: translateX(4px); }

/* dikkat çeken nabız halkası */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--g-blue);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { opacity: .55; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.10); }
  100% { opacity: 0;   transform: scale(1.10); }
}

.cta.is-loading { pointer-events: none; opacity: .85; }
.cta.is-loading .cta__arrow { animation: nudge .7s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* --- Alt not --- */
.note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
}
.note svg { width: 15px; height: 15px; flex: none; }

/* --- Marka satırı --- */
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-soft);
  opacity: .75;
}
.brand__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g-blue), var(--g-green));
}

/* --- Kök adres: şimdilik bembeyaz boş sayfa --- */
html.blank,
html.blank body { background: #fff; }
html.blank .bg,
html.blank .wrap { display: none; }

/* --- Hata durumu --- */
.card.is-error .cta {
  background: var(--text-soft);
  box-shadow: none;
  pointer-events: none;
}
.card.is-error .cta::after,
.card.is-error .note { display: none; }

/* --- Geniş ekran ince ayarı --- */
@media (min-width: 720px) {
  .card { max-width: 460px; padding: 40px 38px 32px; }
  .wrap { gap: 22px; }
}

/* --- Çok kısa ekranlar (küçük telefonlar, yatay mod) --- */
@media (max-height: 620px) {
  .pin__img { width: 74px; }
  .card { padding: 22px 20px 20px; }
  .subtitle { margin-bottom: 16px; }
  .stars__hint { margin-bottom: 16px; }
}

/* --- Hareket azaltma tercihi --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
