/* ===== LOADING SCREEN ===== */

body #loading-screen {
  opacity: 1 !important;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 60% 40%, #1a0a1e 0%, #0d0d1a 50%, #000000 100%);
  opacity: 1;
  transition: opacity 0.8s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Animated gradient backdrop ─── */
#loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(233,69,96,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(120,40,200,0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(233,69,96,0.06) 0%, transparent 70%);
  animation: bgPulse 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgPulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ─── Floating particles ─── */
.loading-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp {
  position: absolute;
  border-radius: 50%;
  background: rgba(233,69,96,0.6);
  animation: floatUp linear infinite;
  filter: blur(1px);
}

@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}

/* ─── Video ─── */
#loading-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* ← tam ekrana yay, siyah şerit yok */
  z-index: 2;
  opacity: 0.55;               /* video üstünde overlay görünsün */
}

/* ─── Dark vignette overlay on video ─── */
#loading-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.1) 40%,
      rgba(0,0,0,0.1) 60%,
      rgba(0,0,0,0.7) 100%);
  z-index: 3;
}

/* ─── Brand / logo reveal ─── */
#logo-reveal {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

#logo-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Logo glow ring */
.logo-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #e94560, #9b27af, #e94560);
  animation: spinRing 2s linear infinite;
  z-index: 0;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,69,96,0.3) 0%, transparent 70%);
  animation: pulseGlow 1.8s ease-in-out infinite;
  z-index: 0;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.2); opacity: 1; }
}

#logo-reveal img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  position: relative;
  z-index: 1;
}

/* Brand name */
.brand-name {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(233,69,96,0.9), 0 2px 8px rgba(0,0,0,0.8);
}

.brand-sub {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 5px;
  text-transform: uppercase;
}

/* ─── Progress bar ─── */
#loading-progress-wrap {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 80vw);
  z-index: 10;
}

#loading-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
}

#loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e94560, #c0392b, #9b27af);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(233,69,96,0.8);
  transition: width 0.15s linear;
}

/* ─── Tagline ─── */
#loading-tagline {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 5px;
  text-transform: uppercase;
  z-index: 10;
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}
