/* Profile Card Styles */

.pc-card-wrapper {
  --icon: none;
  --grain: none;
  --inner-gradient: linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%);
  --behind-glow-color: rgba(125, 190, 255, 0.67);
  --behind-glow-size: 50%;

  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0;
  --pointer-from-left: 0;
  --background-x: 50%;
  --background-y: 50%;
  --rotate-x: 0deg;
  --rotate-y: 0deg;

  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.pc-behind {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--behind-glow-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--behind-glow-color);
  filter: blur(80px);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  will-change: transform, opacity;
}

.pc-card-shell.active .pc-behind {
  opacity: 0.7;
}

.pc-card-shell {
  perspective: 1600px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  will-change: transform;
}

.pc-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.pc-card-shell.active .pc-card {
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.pc-inside {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pc-card-shell.active .pc-inside {
  transform: rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
}

/* Shine effect */
.pc-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity, background;
}

.pc-card-shell.active .pc-shine {
  opacity: 1;
}

/* Glare effect */
.pc-glare {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgba(102, 126, 234, 0.4) 0%,
    rgba(102, 126, 234, 0.2) 30%,
    transparent 70%
  );
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
  will-change: opacity, background;
}

.pc-card-shell.active .pc-glare {
  opacity: 0.8;
}

.pc-card-shell.entering .pc-glare {
  transition-duration: 0.18s;
}

/* Content */
.pc-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pc-avatar-content {
  align-items: center;
  justify-content: center;
  min-height: 350px;
  padding-top: 3rem;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(102, 126, 234, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.pc-card-shell.active .avatar {
  transform: translateZ(40px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(102, 126, 234, 0.5);
}

/* User Info Section */
.pc-user-info {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(13, 17, 23, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.pc-card-shell.active .pc-user-info {
  transform: translateZ(30px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(102, 126, 234, 0.4);
  flex-shrink: 0;
}

.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pc-user-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pc-handle {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(200, 200, 255, 0.95);
}

.pc-status {
  font-size: 0.75rem;
  color: rgba(102, 234, 126, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pc-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background: rgba(102, 234, 126, 0.9);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.pc-contact-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pc-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.pc-contact-btn:active {
  transform: translateY(0);
}

/* Details Section */
.pc-details {
  text-align: center;
  transition: transform 0.3s ease;
  will-change: transform;
}

.pc-card-shell.active .pc-details {
  transform: translateZ(20px);
}

.pc-details h3 {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.pc-details p {
  font-size: 1.1rem;
  color: rgba(200, 200, 255, 0.85);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .pc-card {
    min-height: 480px;
  }

  .avatar {
    width: 180px;
    height: 180px;
  }

  .pc-user-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .pc-user-details {
    flex-direction: column;
    align-items: center;
  }

  .pc-contact-btn {
    width: 100%;
  }

  .pc-details h3 {
    font-size: 1.5rem;
  }

  .pc-details p {
    font-size: 1rem;
  }
}

