/* ========== GRID LAYOUT ========== */
.fc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.fc-card {
  width: calc(33.333% - 13.333px);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .fc-card { width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  .fc-card { width: 100%; }
}

/* ========== DRAW / COMPETITION CARDS (STATIC) ========== */
.fc-card.draw {
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fc-card.draw img {
  width: 100%;
  height: auto;
  display: block;
}
.fc-card.draw .fc-body {
  padding: 16px;
  text-align: center;
}
.fc-card.draw h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.fc-card.draw p {
  margin: 0;
  font-size: 14px;
  color: #444;
}
.fc-card.draw .fc-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
  border-radius: 12px;
}

/* ========== COUPON CARDS (FLIP) ========== */
.fc-card.coupon {
  perspective: 1000px;
  height: 320px;
}
.fc-card.coupon .fc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}
.fc-card.coupon:hover .fc-inner {
  transform: rotateY(180deg);
}

/* FRONT FACE */
.fc-card.coupon .fc-front,
.fc-card.coupon .fc-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fc-card.coupon .fc-front {
  background-size: cover;
  background-position: center;
  color: #fff;
}
.fc-card.coupon .fc-front h3 {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.fc-card.coupon .fcp-badge,
.fc-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  background: #d32f2f;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
}

/* BACK FACE */
.fc-card.coupon .fc-back {
  transform: rotateY(180deg);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.fc-card.coupon .fc-back .fc-description {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}
.fc-card.coupon .fc-code {
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: bold;
  display: block;
  margin-top: 20px;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 480px) {
  .fc-card.coupon .fc-front h3 { font-size: 16px; }
  .fc-card.coupon .fc-back .fc-description { font-size: 14px; }
}
