/* WP Loading Screen Styles - Clean Design */
.wp-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  /* Remove transition for instant removal */
}

.wp-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95); /* Subtle scale effect */
  transition: none; /* Remove transition for instant removal */
}

.wp-loading-container {
  width: 100%;
  max-width: 1040px; /* 30% wider than 800px */
  padding: 0 2rem;
  text-align: center;
}

.wp-loading-logo {
  margin-bottom: 4rem;
}

.wp-logo-image {
  max-width: 200px;
  height: auto;
  opacity: 1; /* Changed from 0.8 to 1 for full visibility */
  display: block;
  margin: 0 auto;
}

/* Add fallback for logo loading */
.wp-logo-image {
  background: transparent;
  border: none;
}

.wp-loading-progress-wrapper {
  width: 100%;
  position: relative;
}

.wp-loading-progress-bar {
  width: 100%;
  height: 12px; /* Increased height */
  background-color: #2d3748;
  border-radius: 6px;
  border: 2px solid #000000; /* Added border */
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.wp-loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 50%, #4f46e5 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.08s ease-out;
  position: relative;
  transform-origin: left center;
  /* Removed the right border for cleaner look */
}

.wp-loading-percentage {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4f46e5;
  text-align: center;
  margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wp-loading-container {
    max-width: 780px; /* 30% wider for tablets */
    padding: 0 1.5rem;
  }

  .wp-loading-logo {
    margin-bottom: 3rem;
  }

  .wp-logo-image {
    max-width: 160px;
  }

  .wp-loading-progress-bar {
    height: 10px;
    border: 2px solid #000000; /* Black border */
  }

  .wp-loading-percentage {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .wp-loading-container {
    max-width: 520px; /* 30% wider for mobile */
    padding: 0 1rem;
  }

  .wp-loading-logo {
    margin-bottom: 2.5rem;
  }

  .wp-logo-image {
    max-width: 140px;
  }

  .wp-loading-progress-bar {
    height: 8px;
    border: 1px solid #000000; /* Black border */
  }

  .wp-loading-percentage {
    font-size: 0.875rem;
  }
}

@media (max-width: 320px) {
  .wp-loading-container {
    max-width: 300px;
    padding: 0 0.5rem;
  }

  .wp-loading-logo {
    margin-bottom: 2rem;
  }

  .wp-logo-image {
    max-width: 120px;
  }

  .wp-loading-progress-bar {
    height: 6px;
  }

  .wp-loading-percentage {
    font-size: 0.75rem;
  }
}

/* Prevent body scroll when loading */
body.wp-loading-active {
  overflow: hidden;
}

/* Smooth fade-in for page content */
.wp-loading-complete {
  animation: wp-loading-fade-in 0.5s ease-out;
}

@keyframes wp-loading-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove all spinner animations - clean minimal design */
.wp-loading-overlay * {
  box-sizing: border-box;
}

/* Smooth progress bar animation */
.wp-loading-progress-fill {
  animation: none;
}

/* Clean, minimal focus on the progress bar */
.wp-loading-progress-bar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
