/* Flip Cards Plugin Styles — No branding, fully customizable */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=DM+Sans:wght@400;500&display=swap');

.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.fc-card {
  perspective: 1200px;
  cursor: pointer;
}

.fc-inner {
  position: relative;
  width: 100%;
  height: 320px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.fc-card.flipped .fc-inner {
  transform: rotateY(180deg);
}

.fc-front,
.fc-back {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.fc-front {
  color: #fff;
}

.fc-back {
  transform: rotateY(180deg);
  background: #fff;
  border: 1px solid #e5e7eb;
}

.fc-emoji {
  font-size: 2.5rem;
}

.fc-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.fc-badge-back {
  background: #f3f4f6;
  color: #6b7280;
}

.fc-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.fc-hint {
  font-size: 0.8rem;
  opacity: 0.7;
  color: #fff;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.fc-preview {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.fc-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6d5cdb;
  text-decoration: none;
  transition: gap 0.2s;
}

.fc-link:hover {
  color: #4f3cc9;
}

@media (max-width: 640px) {
  .fc-grid {
    grid-template-columns: 1fr;
  }
}
