/* ============================================================================
   PRODUCT HERO CARD - Flip card for product detail pages
   Adapted from heroes-store flip pattern
   ============================================================================ */

.ph-card-section {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}

.ph-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ph-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.25rem;
}

.ph-card-frame {
  width: 240px;
  height: 340px;
  perspective: 1000px;
  cursor: pointer;
  position: relative;
}

.ph-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.ph-card-frame.ph-flipped .ph-card {
  transform: rotateY(180deg);
}

.ph-card-front,
.ph-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.ph-card-front {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
  display: flex;
  flex-direction: column;
}

.ph-outer-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.ph-inner-card {
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.ph-hero-image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px;
}

.ph-hero-image {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.ph-name-container {
  text-align: center;
  padding: 6px 4px;
}

.ph-hero-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
}

.ph-card-back {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
  border: 3px solid #fbbf24;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ph-card-back-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ph-fact-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 12px 0;
}

.ph-fact-text {
  font-size: 0.85rem;
  color: #e0e7ff;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 11;
  line-clamp: 11;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Status badge */
.ph-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.ph-status-badge.ph-included {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #7c3aed;
}

.ph-status-badge.ph-owned {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #059669;
}

.ph-flip-hint {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}