/* ═══════════════════════════════════════
   Tarot — Card of the Day styles
   ═══════════════════════════════════════ */

.tarot-section {
  padding: 0 4px;
}

.tarot-header {
  text-align: center;
  margin-bottom: 24px;
}
.tarot-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  animation: tarot-float 3s ease-in-out infinite;
}
.tarot-title {
  margin: 0;
  font-size: 22px;
  color: var(--text-heading);
  font-weight: 700;
}
.tarot-sub {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ─── Card stage ─── */
.tarot-stage {
  display: flex;
  justify-content: center;
  perspective: 900px;
  margin-bottom: 24px;
}

.tarot-card-wrap {
  width: 210px;
  height: 350px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.tarot-card-wrap.revealed {
  transform: rotateY(180deg);
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* ─── Card back ─── */
.tarot-card-back,
.tarot-card-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.35),
    0 0 40px rgba(138, 43, 226, 0.15);
}

.tarot-card-back {
  background: linear-gradient(135deg, #1a0533, #2d1b69, #1a0533);
  border: 2px solid rgba(186, 135, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tarot-card-back-pattern {
  width: 80%;
  height: 85%;
  border: 1px solid rgba(186, 135, 255, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 10px,
      rgba(186, 135, 255, 0.05) 10px,
      rgba(186, 135, 255, 0.05) 20px);
}
.tarot-card-back-pattern span {
  font-size: 56px;
  color: rgba(186, 135, 255, 0.6);
  text-shadow: 0 0 20px rgba(186, 135, 255, 0.5);
  animation: tarot-pulse 2s ease-in-out infinite;
}

/* ─── Card front ─── */
.tarot-card-front {
  transform: rotateY(180deg);
  background: #f5f0e8;
  border: 2px solid #c9a96e;
}
.tarot-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tarot-card-num {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ─── Reveal button ─── */
.tarot-reveal-btn {
  display: block;
  margin: 0 auto;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 28px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tarot-reveal-btn:active {
  transform: scale(0.95);
}

/* ─── Description area ─── */
.tarot-desc {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  margin-top: 4px;
  border: 1px solid var(--border-color);
}
.tarot-card-name {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text-heading);
  text-align: center;
  font-weight: 700;
}
.tarot-meaning {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}
.tarot-love {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(168, 85, 247, 0.08);
  border-radius: 12px;
  padding: 12px;
}
.tarot-love-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.tarot-love p {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

/* ─── Animations ─── */
@keyframes tarot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes tarot-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
