.load-more-button,
.retry-button {
  padding: 0.75rem 1.5rem;
  border: 0.125rem solid transparent;
  border-radius: 0.5rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  outline: none;
}

.load-more-button {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  width: 100%;
  max-width: 20rem;
}

.load-more-button:hover:not(:disabled) {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.5rem rgba(59, 130, 246, 0.3);
}

.load-more-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0.125rem 0.25rem rgba(59, 130, 246, 0.2);
}

.load-more-button:disabled {
  background-color: var(--muted-color);
  border-color: var(--muted-color);
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  position: relative;
}

.retry-button {
  background-color: var(--error-color);
  color: var(--white);
  border-color: var(--error-color);
  margin-top: 1rem;
}

.retry-button:hover {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.5rem rgba(239, 68, 68, 0.3);
}

.retry-button:active {
  transform: translateY(0);
  box-shadow: 0 0.125rem 0.25rem rgba(239, 68, 68, 0.2);
}

.load-more-button:focus-visible,
.retry-button:focus-visible {
  outline: 0.125rem solid var(--primary-color);
  outline-offset: 0.125rem;
}

.load-more-button:disabled::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 0.125rem solid transparent;
  border-top: 0.125rem solid var(--white);
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 2.25625rem;
  height: 2.25625rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--type-electric), var(--type-fire));
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 230, 109, 0.4);
}

.scroll-to-top:active {
  transform: translateY(0);
}

@media (min-width: 30rem) {
  .scroll-to-top {
    width: 2.25625rem;
    height: 2.25625rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 48rem) {
  .scroll-to-top {
    width: 2.25625rem;
    height: 2.25625rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 64em) {
  .scroll-to-top {
    width: 2.25625rem;
    height: 2.25625rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 75em) {
  .scroll-to-top {
    width: 2.25625rem;
    height: 2.25625rem;
    font-size: 0.9rem;
  }
}
