/* ═══════════════════════════════════════════════════════════════════════════
   FJORDIGITAL LOADING SCREEN — Vuexy Template Uyumlu Modern Tasarım
   ═══════════════════════════════════════════════════════════════════════════ */

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Roboto", "Helvetica Neue", sans-serif;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN LOADING BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */

#loading-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--initial-loader-bg, #040d21);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Background Gradient Overlay — Login sayfası tarzı */
.loader-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, #040d21 0%, #062056 50%, #0c1445 100%);
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.loader-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRAND SECTION — Login sayfası stiline uygun
   ═══════════════════════════════════════════════════════════════════════════ */

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.loader-logo-wrapper {
  position: relative;
  animation: logo-float 3s ease-in-out infinite;
}

.loader-logo {
  display: block;
  filter: drop-shadow(0 0 20px rgba(116, 203, 243, 0.4)) 
          drop-shadow(0 0 40px rgba(99, 102, 241, 0.15));
  transition: all 0.3s ease;
}

.loader-title {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-shadow: 0 0 30px rgba(116, 203, 243, 0.2), 0 0 60px rgba(99, 102, 241, 0.1);
  animation: title-glow 4s ease-in-out infinite;
}

.loader-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(116, 203, 243, 0.4) 30%,
    rgba(129, 140, 248, 0.4) 70%,
    transparent 100%
  );
  animation: divider-pulse 2s ease-in-out infinite;
}

.loader-tagline {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  animation: tagline-fade 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODERN SPINNER — Vuexy tarzı çoklu halka sistemi
   ═══════════════════════════════════════════════════════════════════════════ */

.loader-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner-ring-1 {
  animation: spin-clockwise 3s linear infinite;
}

.spinner-ring-2 {
  animation: spin-counter-clockwise 2.5s linear infinite;
}

.spinner-ring-3 {
  animation: spin-clockwise 2s linear infinite;
}

.spinner-circle {
  transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(116, 203, 243, 0.3));
}

/* Center Dot — Pulse efekti */
.spinner-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.center-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #74cbf3, #818cf8);
  border-radius: 50%;
  box-shadow: 
    0 0 10px rgba(116, 203, 243, 0.6),
    0 0 20px rgba(129, 140, 248, 0.3);
  animation: dot-pulse 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING TEXT
   ═══════════════════════════════════════════════════════════════════════════ */

.loader-text {
  margin-top: 0.5rem;
}

.loading-dots {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  position: relative;
}

.loading-dots::after {
  content: '';
  animation: dots-typing 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes logo-float {
  0%, 100% { 
    transform: translateY(0px) scale(1); 
    filter: drop-shadow(0 0 20px rgba(116, 203, 243, 0.4)) 
            drop-shadow(0 0 40px rgba(99, 102, 241, 0.15));
  }
  50% { 
    transform: translateY(-8px) scale(1.02); 
    filter: drop-shadow(0 0 25px rgba(116, 203, 243, 0.5)) 
            drop-shadow(0 0 50px rgba(99, 102, 241, 0.2));
  }
}

@keyframes title-glow {
  0%, 100% { 
    opacity: 0.95; 
    text-shadow: 0 0 30px rgba(116, 203, 243, 0.2), 0 0 60px rgba(99, 102, 241, 0.1);
  }
  50% { 
    opacity: 1; 
    text-shadow: 0 0 40px rgba(116, 203, 243, 0.3), 0 0 80px rgba(99, 102, 241, 0.15);
  }
}

@keyframes divider-pulse {
  0%, 100% { 
    opacity: 0.4; 
    transform: scaleX(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scaleX(1.1);
  }
}

@keyframes tagline-fade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.65; }
}

@keyframes spin-clockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-counter-clockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes dot-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
    box-shadow: 
      0 0 10px rgba(116, 203, 243, 0.6),
      0 0 20px rgba(129, 140, 248, 0.3);
  }
  50% { 
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 
      0 0 15px rgba(116, 203, 243, 0.8),
      0 0 30px rgba(129, 140, 248, 0.4);
  }
}

@keyframes dots-typing {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .loader-container {
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .loader-title {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
  }
  
  .loader-tagline {
    font-size: 0.7rem;
  }
  
  .loader-spinner {
    width: 100px;
    height: 100px;
  }
  
  .spinner-ring-1 svg {
    width: 100px;
    height: 100px;
  }
  
  .spinner-ring-2 svg {
    width: 75px;
    height: 75px;
  }
  
  .spinner-ring-3 svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .loader-title {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
  }
  
  .loader-divider {
    width: 100px;
  }
  
  .loader-spinner {
    width: 80px;
    height: 80px;
  }
  
  .spinner-ring-1 svg {
    width: 80px;
    height: 80px;
  }
  
  .spinner-ring-2 svg {
    width: 60px;
    height: 60px;
  }
  
  .spinner-ring-3 svg {
    width: 40px;
    height: 40px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.loader-spinner * {
  will-change: transform;
}

.loader-logo-wrapper {
  will-change: transform, filter;
}

.center-dot {
  will-change: transform, opacity, box-shadow;
}
