/* PB Store — Hoşgeldiniz ekranı (sadece anasayfa, ilk ziyaret) */

html.welcome-pending,
html.welcome-pending body {
  overflow: hidden;
  height: 100%;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #7B1E2B 0%, #3D0A14 45%, #0A0A0A 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(212, 175, 55, 0.45), transparent),
    radial-gradient(1px 1px at 72% 64%, rgba(212, 175, 55, 0.35), transparent),
    radial-gradient(2px 2px at 84% 18%, rgba(212, 175, 55, 0.5), transparent);
  background-size: 220px 220px;
  animation: welcome-sparkle 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes welcome-sparkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.welcome-screen-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  text-align: center;
  animation: welcome-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes welcome-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-logo-wrap {
  width: clamp(140px, 38vw, 200px);
  height: clamp(140px, 38vw, 200px);
  margin: 0 auto 28px;
  position: relative;
}

.welcome-logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.35);
  animation: welcome-ring 24s linear infinite;
}

.welcome-logo-ring-outer {
  inset: -24px;
  border-style: dashed;
  border-color: rgba(212, 175, 55, 0.2);
  animation-direction: reverse;
  animation-duration: 36s;
}

@keyframes welcome-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.welcome-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.15),
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(212, 175, 55, 0.25);
  animation: welcome-float 3s ease-in-out infinite alternate;
}

@keyframes welcome-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.welcome-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-eyebrow {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(10px, 2.8vw, 12px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #E8C968;
  font-weight: 500;
  margin-bottom: 12px;
}

.welcome-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.12em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.welcome-line {
  width: 72px;
  height: 1px;
  margin: 20px auto;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.welcome-greeting {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 4vw, 20px);
  color: rgba(250, 247, 242, 0.9);
  margin-bottom: 16px;
  line-height: 1.4;
}

.welcome-slogan {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(9px, 2.5vw, 11px);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #E0BE52;
  font-weight: 600;
}

.welcome-slogan span {
  color: #E8C968;
  margin: 0 clamp(8px, 2vw, 14px);
  font-size: 0.75em;
}

.welcome-progress {
  width: min(200px, 60%);
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
  margin: 32px auto 0;
  overflow: hidden;
}

.welcome-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #B8941F, #E0BE52);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.welcome-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(250, 247, 242, 0.85);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.welcome-skip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.55);
}

@media (max-width: 380px) {
  .welcome-slogan {
    letter-spacing: 0.28em;
  }

  .welcome-logo-wrap {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-screen-inner,
  .welcome-logo,
  .welcome-logo-ring,
  .welcome-screen::before {
    animation: none !important;
  }

  .welcome-progress-bar {
    transition: none;
  }
}
