/*
 * GOLPOOGRO - Component: Profile Header
 * Lux dark glassmorphism & cinematic depth layout
 */

.profile-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xxl);
  position: relative;
  width: 100%;
}

.ambient-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  pointer-events: none;
  filter: blur(140px);
  z-index: 1;
  opacity: 0.15;
}

.glow-top {
  top: -100px;
  right: 5%;
  background: var(--accent-gold);
}

.glow-bottom {
  bottom: 20%;
  left: -50px;
  background: var(--accent-teal);
}

.profile-header-card {
  z-index: 2;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding-bottom: var(--spacing-md) !important;
  will-change: transform;
}

.header-banner-wrapper {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
}

.profile-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-cinematic);
}

.profile-banner:hover {
  transform: scale(1.05);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(4, 9, 20, 0) 40%, rgba(4, 9, 20, 0.85) 100%);
}

.header-main-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-xl) var(--spacing-sm) var(--spacing-xl);
  margin-top: -65px;
  position: relative;
  z-index: 5;
  align-items: flex-end;
}

.avatar-column {
  flex-shrink: 0;
}

.avatar-ring-glow {
  padding: 6px;
  background: linear-gradient(135deg, #1e40af 0%, var(--accent-gold) 50%, #93c5fd 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
  position: relative;
  animation: avatarGlowPulse 4s ease-in-out infinite alternate;
}

.avatar-container {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  overflow: visible;
  background: var(--bg-primary);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 4px solid var(--bg-primary);
}

.online-status-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  z-index: 10;
}

.status-online {
  background: #10b981;
  animation: pulseEco 2s infinite;
}

.info-column {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.name-badge-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.profile-full-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.verification-badge-container {
  display: flex;
  align-items: center;
  color: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.verification-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  color: #fff;
  stroke: #3b82f6;
  background: transparent;
  border-radius: var(--radius-full);
}

.user-role-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-username {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-top: 2px;
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: var(--spacing-md);
  max-width: 600px;
}

.profile-meta-row {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-gold);
}

.social-links-row {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-cinematic);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.profile-actions-column {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  align-self: flex-end;
  margin-bottom: 5px;
}

.btn-premium-glass {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease-cinematic) !important;
}

.btn-premium-glass:hover {
  background: var(--bg-glass-hover) !important;
  border-color: var(--accent-gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15) !important;
}

@keyframes avatarGlowPulse {
  0% {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.18);
  }
  100% {
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
  }
}

@keyframes pulseEco {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Tablet & Mobile responsive headers overrides */
@media (max-width: 991px) {
  .header-banner-wrapper {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .header-banner-wrapper {
    height: 75px !important;
  }

  .header-main-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -35px !important;
    gap: var(--spacing-xs) !important;
    padding: 0 var(--spacing-sm) var(--spacing-xs) var(--spacing-sm) !important;
  }
  
  .avatar-ring-glow {
    padding: 3px !important;
  }

  .avatar-container {
    width: 70px !important;
    height: 70px !important;
  }

  .profile-full-name {
    font-size: 1.15rem !important;
  }

  .verification-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .profile-username {
    font-size: 0.8rem !important;
  }

  .name-badge-row {
    justify-content: center;
    gap: 4px !important;
  }
  
  .profile-bio {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    margin: 4px auto 0 auto !important;
    max-width: 90%;
  }
  
  .profile-meta-row {
    justify-content: center;
    gap: var(--spacing-sm) !important;
    margin-top: 4px !important;
    font-size: 0.72rem !important;
  }
  
  .social-links-row {
    justify-content: center;
    margin-top: 4px !important;
    gap: 8px !important;
  }

  .social-link {
    width: 24px !important;
    height: 24px !important;
  }

  .social-link svg {
    width: 11px !important;
    height: 11px !important;
  }
  
  .profile-actions-column {
    align-self: center;
    justify-content: center;
    width: 100%;
    margin-top: var(--spacing-xs) !important;
  }

  .profile-actions-column button,
  .profile-actions-column a {
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    height: 28px !important;
    line-height: 1.2 !important;
  }
}
