/* ── Splash Screen ───────────────────────────────────── */

/* ── Dark theme (default) ── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B0C10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ── Light theme override ── */
.splash-screen.light {
  background: #F6F7FB;
}
.splash-screen.light .splash-title {
  background: linear-gradient(135deg, #B8952E 0%, #D9B24C 50%, #B8952E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.splash-screen.light .splash-subtitle {
  color: rgba(140, 110, 40, 0.6);
}
.splash-screen.light .splash-loader {
  background: rgba(184, 149, 46, 0.1);
}
.splash-screen.light .splash-loader::after {
  background: linear-gradient(90deg, transparent, #B8952E, transparent);
}
.splash-screen.light .splash-loading-text {
  color: rgba(140, 110, 40, 0.45);
}


/* ── Center content ── */
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Logo ── */
.splash-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
}

/* ── Title ── */
.splash-title {
  font-family: 'IRANSans', Arial, sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #D9B24C 0%, #F5D98A 50%, #D9B24C 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  margin: 0;
  direction: rtl;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Subtitle ── */
.splash-subtitle {
  font-family: 'IRANSans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(217,178,76,0.45);
  margin: 0;
  direction: rtl;
}

/* ── Loading text ── */
.splash-loading-text {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IRANSans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(217,178,76,0.35);
  margin: 0;
  direction: rtl;
  white-space: nowrap;
}

/* ── Loading bar ── */
.splash-loader {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: rgba(217,178,76,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.splash-loader::after {
  content: '';
  position: absolute;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #D9B24C, transparent);
  border-radius: 2px;
  animation: slide 1.6s ease-in-out infinite;
}
@keyframes slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}
