/* ============================================================
   KZ WELCOME ANIMATION - CSS
   ============================================================ */

.kz-welcome {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #0B1F3A 0%, #1a3a5c 50%, #0d2847 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  animation: kzFadeIn 0.6s ease;
}

.kz-welcome--closing {
  animation: kzFadeOut 0.6s ease forwards;
}

@keyframes kzFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kzFadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: scale(1.05); }
}

/* רקע - חלקיקים זוהרים */
.kz-welcome-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kz-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(201, 161, 74, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201, 161, 74, 0.8);
  animation: kzFloat 8s infinite ease-in-out;
}

.kz-particle:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.kz-particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; width: 6px; height: 6px; }
.kz-particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.kz-particle:nth-child(4) { top: 75%; left: 70%; animation-delay: 3s; width: 8px; height: 8px; }
.kz-particle:nth-child(5) { top: 45%; left: 50%; animation-delay: 4s; }

@keyframes kzFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  25% { transform: translateY(-30px) translateX(20px); opacity: 1; }
  50% { transform: translateY(-60px) translateX(-10px); opacity: 0.4; }
  75% { transform: translateY(-30px) translateX(15px); opacity: 1; }
}

/* שלבים */
.kz-welcome-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  text-align: center;
}

.kz-welcome-stage.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* כוכב דוד מסתובב */
.kz-star-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 30px;
  animation: kzStarSpin 4s ease-in-out infinite;
}

.kz-star-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(201, 161, 74, 0.8));
}

.kz-star-tri-up, .kz-star-tri-down {
  animation: kzStarPulse 2s ease-in-out infinite;
}

.kz-star-tri-down {
  animation-delay: 0.5s;
}

.kz-star-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: kzGlow 2s ease-in-out infinite;
}

@keyframes kzStarSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.05); }
}

@keyframes kzStarPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes kzGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* טקסטים */
.kz-welcome-title {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 900;
  background: linear-gradient(135deg, #C9A14A, #E8D5A0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  animation: kzSlideUp 1s ease 0.3s both;
}

.kz-welcome-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: kzSlideUp 1s ease 0.6s both;
}

.kz-welcome-heading {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 5vw, 42px);
  color: #C9A14A;
  margin-bottom: 16px;
  font-weight: 900;
  animation: kzSlideUp 0.8s ease both;
}

.kz-welcome-text {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  max-width: 600px;
  line-height: 1.6;
  animation: kzSlideUp 0.8s ease 0.2s both;
}

.kz-welcome-text--small {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 14px;
}

@keyframes kzSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* אימוג'י גדולים */
.kz-blessing-icon, .kz-final-emoji {
  font-size: clamp(80px, 15vw, 120px);
  margin-bottom: 20px;
  animation: kzBounce 2s ease infinite;
}

@keyframes kzBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* גריד תכונות */
.kz-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 500px;
  width: 100%;
  margin-top: 20px;
}

.kz-feature {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px 14px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(201, 161, 74, 0.3);
  transition: all 0.3s;
  animation: kzFeatureIn 0.6s ease both;
}

.kz-feature:nth-child(1) { animation-delay: 0.1s; }
.kz-feature:nth-child(2) { animation-delay: 0.2s; }
.kz-feature:nth-child(3) { animation-delay: 0.3s; }
.kz-feature:nth-child(4) { animation-delay: 0.4s; }
.kz-feature:nth-child(5) { animation-delay: 0.5s; }
.kz-feature:nth-child(6) { animation-delay: 0.6s; }

.kz-feature:hover {
  transform: translateY(-5px);
  background: rgba(201, 161, 74, 0.2);
  border-color: #C9A14A;
}

@keyframes kzFeatureIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.kz-feature-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.kz-feature-name {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

/* כפתור כניסה */
.kz-welcome-btn {
  margin-top: 30px;
  background: linear-gradient(135deg, #C9A14A, #8B6914);
  color: white;
  border: 0;
  padding: 18px 50px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(201, 161, 74, 0.5);
  transition: all 0.3s;
  animation: kzSlideUp 0.8s ease 0.4s both, kzPulseBtn 2s ease-in-out infinite 1s;
}

.kz-welcome-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 50px rgba(201, 161, 74, 0.7);
}

@keyframes kzPulseBtn {
  0%, 100% { box-shadow: 0 10px 40px rgba(201, 161, 74, 0.5); }
  50% { box-shadow: 0 10px 50px rgba(201, 161, 74, 0.9), 0 0 60px rgba(201, 161, 74, 0.4); }
}

/* אינדיקטור */
.kz-welcome-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.kz-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.kz-dot.active {
  background: #C9A14A;
  width: 30px;
  border-radius: 5px;
}

/* כפתור דלג */
.kz-welcome-skip {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.kz-welcome-skip:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-3px);
}

/* רספונסיביות */
@media (max-width: 600px) {
  .kz-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .kz-star-wrap {
    width: 150px;
    height: 150px;
  }
  
  .kz-feature {
    padding: 16px 10px;
  }
  
  .kz-feature-icon {
    font-size: 32px;
  }
  
  .kz-welcome-btn {
    padding: 16px 36px;
    font-size: 18px;
  }
  
  .kz-welcome-dots {
    bottom: 20px;
  }
}
