/* Memes Page Styling */
.meme-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.meme-image-container {
  position: relative;
  width: 100%;
  max-height: 600px;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.05));
  border: 2px solid rgba(78, 205, 196, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.meme-image {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.meme-image.loaded {
  opacity: 1;
  animation: zoomIn 0.5s ease-out;
}

.loading-spinner {
  position: absolute;
  font-size: 2rem;
  color: var(--accent-cyan);
  z-index: 2;
}

/* Animations */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced loading state for memes */
.loading .meme-title {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  color: transparent;
}

.loading .meme-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(78, 205, 196, 0.1) 50%, transparent 70%);
  animation: loadingSlide 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes loadingSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
