/* ═══════════ 3D FAN CARD VIEW ═══════════ */

.card-fan-viewport {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 20px 0;
  user-select: none;
  -webkit-user-select: none;
}

.card-fan-track {
  position: relative;
  width: 200px;
  height: 280px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.card-fan-item {
  position: absolute;
  top: 0; left: 0;
  width: 200px;
  height: 280px;
  transform-origin: center bottom;
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
  cursor: pointer;
  will-change: transform, opacity;
}

/* Hide card-meta in fan view */
.card-fan-item .card-meta { display: none; }

/* Make card-item and card fill the fan item */
.card-fan-item .card-item {
  width: 100%;
  height: 100%;
}
.card-fan-item .card {
  width: 100%;
  height: 100%;
}

/* Active card glow */
.card-fan-item.fan-active .card {
  box-shadow: 0 0 40px rgba(204, 0, 0, 0.4), 0 0 80px rgba(204, 0, 0, 0.15);
}

/* Card info below fan */
.card-fan-info {
  text-align: center;
  margin-top: 20px;
  min-height: 60px;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
}
.card-fan-info-block {
  display: inline-block;
  width: 200px;
  text-align: center;
}

.card-fan-info-num {
  font-family: 'Clash Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-fan-info-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.card-fan-info-badge {
  margin-top: 12px;
}

/* Navigation dots */
.card-fan-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.card-fan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.card-fan-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .card-fan-viewport {
    height: 360px;
    padding: 10px 0;
  }
  .card-fan-track {
    width: 170px;
    height: 238px;
  }
  .card-fan-item {
    width: 170px;
    height: 238px;
  }
}
