/**
 * Grid Cards Styling
 * Styles for grid card layouts created by grid-cards.js
 */

/* Grid container - 2 columns on desktop, 1 on mobile */
.grid-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Individual card styling */
.grid-card {
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  padding: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* Card hover effect */
.grid-card:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Card title - cyan color matching theme */
.grid-card-title {
  color: #00d4ff;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Suit symbols - remove background and apply colors */
.grid-card-title span.suit-icon {
  background: none !important;
  padding: 0 !important;
  margin-left: 0.3em !important;
  font-variant-emoji: text !important;
}

.grid-card-title span.suit-icon.suit-clubs,
.grid-card-title span.suit-icon.suit-spades {
  color: #000000 !important;
  text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff !important;
}

.grid-card-title span.suit-icon.suit-diamonds,
.grid-card-title span.suit-icon.suit-hearts {
  color: #ff4444 !important;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000 !important;
}

/* Card description */
.grid-card-description {
  color: var(--md-default-fg-color--light);
  line-height: 1.6;
  font-size: 0.95em;
}

/* Responsive: Single column on mobile */
@media screen and (max-width: 768px) {
  .grid-cards-container {
    grid-template-columns: 1fr;
  }
}
