/**
 * Content Grid System
 * Grid layouts for news and servers
 */

/* ============================================
   NEWS GRID
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Stagger animation for news cards */
.news-grid .news-card:nth-child(1) {
  animation-delay: 0.1s;
}

.news-grid .news-card:nth-child(2) {
  animation-delay: 0.2s;
}

.news-grid .news-card:nth-child(3) {
  animation-delay: 0.3s;
}

.news-grid .news-card:nth-child(4) {
  animation-delay: 0.4s;
}

.news-grid .news-card:nth-child(5) {
  animation-delay: 0.5s;
}

.news-grid .news-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* ============================================
   SERVERS GRID
   ============================================ */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Stagger animation for server cards */
.servers-grid .server-card:nth-child(1) {
  animation-delay: 0.1s;
}

.servers-grid .server-card:nth-child(2) {
  animation-delay: 0.2s;
}

.servers-grid .server-card:nth-child(3) {
  animation-delay: 0.3s;
}

.servers-grid .server-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .servers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .servers-grid {
    gap: 1rem;
  }
}

/* ============================================
   LOADING STATE
   ============================================ */
.content-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  color: var(--muted-foreground);
}
