.loading-indicator {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 2rem;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   REDDIT TRADING CARD STYLES
   ======================================== */

.reddit-trading-card {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 2.5/3.5;
  perspective: 1000px;
  position: relative;
  margin: 0 auto;
}

.card-border {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.card-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background-size: 400% 400%;
  z-index: -1;
  animation: cardShimmer 3s ease-in-out infinite;
}

.reddit-trading-card:hover .card-border {
  transform: translateY(-5px) rotateX(5deg);
}

.card-header {
  border-radius: 8px 8px 0 0;
  padding: 8px 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subreddit-name {
  font-size: 14px;
  font-weight: bold;
}

.rarity-gem {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: gemPulse 2s ease-in-out infinite;
}

.card-artwork {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-artwork::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkles" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="15" cy="8" r="0.5" fill="rgba(255,255,255,0.4)"/><circle cx="8" cy="15" r="0.8" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparkles)"/></svg>') repeat;
  opacity: 0.3;
  animation: twinkle 4s linear infinite;
}

.play-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.reddit-trading-card:hover .play-badge {
  transform: scale(1.1) rotate(5deg);
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}

.badge-sparkles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkle-1 { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.sparkle-3 { bottom: 25%; left: 15%; animation-delay: 1s; }
.sparkle-4 { bottom: 15%; right: 20%; animation-delay: 1.5s; }

.reddit-trading-card:hover .sparkle {
  animation-duration: 1.5s;
}

.card-footer {
  border-radius: 0 0 8px 8px;
  padding: 12px;
  min-height: 80px;
}

.post-title {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 500;
}

.card-type {
  font-size: 10px;
  font-style: italic;
  text-align: center;
  border-top: 1px solid transparent;
  padding-top: 4px;
  margin-top: 4px;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

/* Animations */
@keyframes cardShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gemPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes twinkle {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-20px) translateY(-20px); }
}

@keyframes sparkleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.5); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reddit-trading-card {
    max-width: 240px;
  }
  
  .play-badge {
    width: 80px;
    height: 80px;
  }
  
  .play-triangle {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
    margin-left: 5px;
  }
}