body {
  background: linear-gradient(
    135deg,
    #0c0c1d 0%,
    #1a1a2e 25%,
    #16213e 50%,
    #0f3460 75%,
    #533483 100%
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(
      1px 1px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 160px 30px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 150px;
  animation: cosmos-drift 60s linear infinite;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      3px 3px at 50px 100px,
      rgba(255, 255, 255, 0.9),
      transparent
    ),
    radial-gradient(
      2px 2px at 180px 50px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(1px 1px at 80px 150px, #fff, transparent),
    radial-gradient(
      2px 2px at 220px 120px,
      rgba(255, 255, 255, 0.8),
      transparent
    );
  background-repeat: repeat;
  background-size: 300px 200px;
  animation: cosmos-drift 80s linear infinite reverse;
  pointer-events: none;
  z-index: -1;
}

@keyframes cosmos-drift {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-200px) translateY(-150px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

body::before {
  animation: cosmos-drift 60s linear infinite, twinkle 3s ease-in-out infinite;
}

body::after {
  animation: cosmos-drift 80s linear infinite reverse,
    twinkle 4s ease-in-out infinite 1s;
}

.header {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.9) 0%,
    rgba(147, 197, 253, 0.85) 50%,
    rgba(29, 78, 216, 0.9) 100%
  );

  backdrop-filter: blur(15px);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.3);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 0.125rem 2rem rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}

.main {
  flex: 1;
  padding: 1rem;
  padding-top: 170px;
  max-width: 100%;
  margin: 0 auto;
}

.pokemon-section {
  width: 100%;
}

.pokemon-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.load-more-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hidden {
  display: none !important;
}

.loading-spinner,
.error-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-container {
  position: relative;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}
