/* ============================================
   Topic Cards
   ============================================ */

.topic-card {
  position: relative;
  background: var(--hex-raised, #fefefc);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-m, 1rem);
  box-shadow: var(--shadow-s, 0 4px 12px rgba(0, 0, 0, 0.06));
  text-align: center;
  transition: transform 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
  border: 1px solid oklch(0.92 0.005 85 / 0.6);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m, 0 10px 30px rgba(0, 0, 0, 0.08));
  border-color: var(--hex-gold, #f6c90e);
}

.topic-card__date {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--hex-ink, #2c3e50);
  color: oklch(1 0 0 / 0.95);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 0 var(--radius-m, 1rem) 0 var(--radius-m, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-width: 60px;
}

.topic-card__date-day {
  font-size: 1.2rem;
  font-weight: 700;
}

.topic-card__date-month {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: lowercase;
}

/* Color variations for date labels */
.topics-grid .topic-card:nth-child(9n+1) .topic-card__date { background: oklch(0.58 0.16 280); }
.topics-grid .topic-card:nth-child(9n+2) .topic-card__date { background: oklch(0.72 0.15 75); }
.topics-grid .topic-card:nth-child(9n+3) .topic-card__date { background: oklch(0.68 0.15 165); }
.topics-grid .topic-card:nth-child(9n+4) .topic-card__date { background: oklch(0.62 0.18 25); }
.topics-grid .topic-card:nth-child(9n+5) .topic-card__date { background: oklch(0.7 0.14 55); }
.topics-grid .topic-card:nth-child(9n+6) .topic-card__date { background: oklch(0.62 0.14 240); }
.topics-grid .topic-card:nth-child(9n+7) .topic-card__date { background: oklch(0.6 0.15 300); }
.topics-grid .topic-card:nth-child(9n+8) .topic-card__date { background: oklch(0.72 0.1 180); }
.topics-grid .topic-card:nth-child(9n+9) .topic-card__date { background: oklch(0.65 0.2 345); }

.topic-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.topic-card__title {
  font-size: 1rem;
  color: var(--hex-ink, #2c3e50);
  margin: 0.5rem 0;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
}

.topic-card__description {
  font-size: 0.9rem;
  color: var(--hex-ink-soft, #5a6c7d);
  margin: 0.5rem 0;
  line-height: 1.5;
}
