/* Loading and error states for the unified website */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.loading::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.error::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  background-color: rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
}

.no-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
}

.no-content::before {
  content: '¯\\_(ツ)_/¯';
  display: block;
  margin-bottom: 15px;
  font-size: 24px;
  color: var(--text-secondary);
}

/* Media specific loading colors */
.loading.anime::before {
  border-top-color: var(--anime-color);
}

.loading.korean::before {
  border-top-color: var(--korean-color);
}

.loading.movies::before {
  border-top-color: var(--movies-color);
}

.loading.tvshows::before {
  border-top-color: var(--tvshows-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .loading, .error, .no-content {
    padding: 20px;
  }
  
  .loading::before, .error::before {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
  }
  
  .no-content::before {
    font-size: 20px;
  }
}
