/* Public Profile Specific Styles */
body {
  padding-top: 80px; /* Space for fixed navbar */
}

.public-profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 6rem;
}

.profile-banner {
  background: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.profile-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.profile-content {
  position: relative;
  z-index: 2;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  margin: 0 auto 1rem;
  background: var(--bg-secondary);
  object-fit: cover;
}

.profile-username {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Badge Container for multiple badges */
.badges-container {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.profile-badge .badge-emoji {
  font-size: 1rem;
}

/* Premium Badge Tiers */
.profile-badge.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.8), rgba(205, 127, 50, 0.6));
  color: #fff;
  border: 1px solid rgba(205, 127, 50, 0.5);
}

.profile-badge.silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.8), rgba(192, 192, 192, 0.6));
  color: #1a1a1a;
  border: 1px solid rgba(192, 192, 192, 0.5);
}

.profile-badge.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 185, 0, 0.7));
  color: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

.profile-badge.platinum {
  background: linear-gradient(135deg, rgba(229, 228, 226, 0.9), rgba(200, 200, 200, 0.7));
  color: #1a1a1a;
  border: 1px solid rgba(229, 228, 226, 0.5);
}

.profile-badge.diamond {
  background: linear-gradient(135deg, rgba(185, 242, 255, 0.9), rgba(135, 206, 235, 0.7));
  color: #1a1a1a;
  border: 1px solid rgba(185, 242, 255, 0.5);
}

.profile-badge.star {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.7));
  color: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.6);
}

.profile-badge.elite {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.9), rgba(255, 140, 0, 0.7));
  color: #1a1a1a;
  border: 1px solid rgba(255, 170, 0, 0.5);
}

.profile-badge.legendary {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.9), rgba(128, 0, 128, 0.7));
  color: #fff;
  border: 1px solid rgba(155, 89, 182, 0.5);
}

.profile-badge.royal {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.95), rgba(243, 156, 18, 0.8));
  color: #1a1a1a;
  border: 2px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Community Badge */
.profile-badge.community {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.6));
  color: #fff;
  border: 1px solid rgba(52, 152, 219, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.stat-label {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-container {
  text-align: center;
  padding: 4rem 2rem;
  padding-top: 6rem;
}

.error-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* Panel Statistics section card */
.profile-stats-section { margin-bottom: 2rem; }

.profile-stats-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat rows in panel statistics */
.profile-stat-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-stat-row:last-child { border-bottom: none; }

.profile-stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.profile-stat-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA card */
.profile-cta-body { text-align: center; }

.profile-cta-title { margin-bottom: 1rem; }

.profile-cta-desc { margin-bottom: 1.5rem; }

/* Error card */
.profile-error-card {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.profile-error-body { padding: 3rem 2rem; }

.profile-error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Outline variant for cta-button */
.cta-button-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
