/* شاشة التحميل مع الشعار */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.5);
  animation: logoAppear 2s ease-out forwards;
  box-shadow: 0 0 50px rgba(244, 114, 182, 0.8),
              0 0 100px rgba(244, 114, 182, 0.6),
              0 0 150px rgba(244, 114, 182, 0.4);
}

.logo-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, 
    rgba(244, 114, 182, 0.3) 0%, 
    rgba(244, 114, 182, 0.1) 50%, 
    transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(244, 114, 182, 0.6);
  animation: portalExpand 3s ease-out forwards;
}

.portal-ring:nth-child(1) {
  width: 220px;
  height: 220px;
  animation-delay: 0.5s;
}

.portal-ring:nth-child(2) {
  width: 280px;
  height: 280px;
  animation-delay: 1s;
  border-color: rgba(244, 114, 182, 0.4);
}

.portal-ring:nth-child(3) {
  width: 340px;
  height: 340px;
  animation-delay: 1.5s;
  border-color: rgba(244, 114, 182, 0.2);
}

.loading-text {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: #f472b6;
  font-family: 'Tahoma', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  animation: textFadeIn 1s ease-out 2s forwards;
  text-shadow: 0 0 20px rgba(244, 114, 182, 0.8);
}

.loading-dots {
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes portalExpand {
  0% {
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes dots {
  0%, 20% {
    color: transparent;
    text-shadow: 0.25em 0 0 transparent,
                 0.5em 0 0 transparent;
  }
  40% {
    color: #f472b6;
    text-shadow: 0.25em 0 0 transparent,
                 0.5em 0 0 transparent;
  }
  60% {
    text-shadow: 0.25em 0 0 #f472b6,
                 0.5em 0 0 transparent;
  }
  80%, 100% {
    text-shadow: 0.25em 0 0 #f472b6,
                 0.5em 0 0 #f472b6;
  }
}

/* تأثيرات إضافية للجمال */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f472b6;
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(4) {
  top: 20%;
  left: 20%;
  animation-delay: 0.5s;
}

.sparkle:nth-child(5) {
  top: 30%;
  right: 25%;
  animation-delay: 1s;
}

.sparkle:nth-child(6) {
  bottom: 25%;
  left: 30%;
  animation-delay: 1.5s;
}

.sparkle:nth-child(7) {
  bottom: 20%;
  right: 20%;
  animation-delay: 2s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .logo {
    width: 150px;
    height: 150px;
  }
  
  .logo-glow {
    width: 200px;
    height: 200px;
  }
  
  .portal-ring:nth-child(1) {
    width: 170px;
    height: 170px;
  }
  
  .portal-ring:nth-child(2) {
    width: 230px;
    height: 230px;
  }
  
  .portal-ring:nth-child(3) {
    width: 290px;
    height: 290px;
  }
  
  .loading-text {
    font-size: 1.2rem;
  }
}