/* 3D Trading Card Styles */
.card-3d-wrapper {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-3d {
  width: 340px;
  height: 500px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 25px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.1);
  transition: box-shadow 0.2s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Specular Lighting Glow Effect */
.card-glass-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.25) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-3d:hover .card-glass-glow {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateZ(30px);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-glow);
  padding: 4px 12px;
  border-radius: 20px;
}

.card-icon {
  color: var(--primary-glow);
  font-size: 1.2rem;
}

.card-avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
  transform: translateZ(40px);
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: var(--primary-glow);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.card-body {
  transform: translateZ(30px);
  text-align: center;
}

.card-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.card-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Stat Progress Bars */
.card-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.stat-item {
  font-size: 0.8rem;
}

.stat-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-glow), var(--secondary-glow));
  border-radius: 3px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 15px;
  transform: translateZ(20px);
}