/* ==================== Card Styles ====================
   Shared utilities for card components
   Individual card styling is in Cards.astro component */

/* ==================== Grid Layout ==================== */

.grid {
  display: grid;
  gap: var(--space-6, 24px);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72rem) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card-specific styles moved to Cards.astro component */

/* ==================== Cards Grid ==================== */

.cards-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: var(--space-6, 24px);
  max-width: 800px;
  
  /* Default: 1 column on mobile */
  grid-template-columns: repeat(var(--mobile-cols, 1), minmax(0, 1fr));
}

/* Legacy card-list (deprecated - use cards-grid) */
.card-list {
  display: grid;
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==================== Empty State ==================== */

.empty-state {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  padding: 2rem;
  text-align: center;
  margin: 2rem auto;
  color: var(--color-text-muted);
}

/* ==================== Responsive Grid Columns ==================== */

@media (min-width: 48rem) { /* Tailwind's md breakpoint */
  .cards-grid { 
    grid-template-columns: repeat(var(--tablet-cols, 2), minmax(0, 1fr)); 
  }
}

@media (min-width: 72rem) { /* Custom large breakpoint */
  .cards-grid { 
    grid-template-columns: repeat(var(--desktop-cols, 3), minmax(0, 1fr)); 
  }
}

/* Grid variants for different gaps */
.cards-grid.compact {
  gap: var(--space-4, 16px);
}

.cards-grid.wide {
  gap: var(--space-8, 32px);
}

