/* Section and Component Spacing */
.section {
  margin-bottom: 3rem;
}

.section-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eee;
}

/* Card and Grid Spacing */
.grid {
  gap: 2rem;
}

.card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Loading state styles */
.loading {
  padding: 3rem 2rem;
  text-align: center;
  color: #666;
  font-style: italic;
  grid-column: 1 / -1;
  margin: 1.5rem 0;
}

/* Animation for loading states */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Ensure smooth transitions when content loads */
.hero-card,
.post-card,
.mini-card {
  transition: opacity 0.3s ease-in-out;
}

/* Hide static content that will be replaced */
.hero-card .static-content,
#trending-list.static-content,
#quick-picks-container .static-content,
#latest-news .static-content,
.tech-news-container .static-content {
  display: none;
}

/* Show loading state while content is being loaded */
.hero-card.loading,
#trending-list.loading,
#quick-picks-container.loading,
#latest-news.loading,
.tech-news-container.loading,
.lifestyle-container .loading,
.business-container .loading,
.sports-container .loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  margin: 1.5rem 0;
  background: #f9f9f9;
  border-radius: 8px;
}

/* Additional spacing for specific components */
.hero {
  margin-bottom: 2.5rem;
}

.quick-picks {
  margin: 2.5rem 0;
}

.ad-slot {
  margin: 2.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    margin-bottom: 2rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }
}