/* ============================================
   HERO PROFILE PAGE
   ============================================ */

.hero-page {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-page .section-title {
  margin-top: 1rem;
}

/* Profile Card */
.hero-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold), var(--accent-cyan));
}

.hero-avatar {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero-name-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--accent-gold);
  font-family: var(--font-title);
  font-size: 1.8rem;
  text-align: center;
  width: 300px;
  max-width: 100%;
  padding: 0.3rem;
  transition: border-color 0.3s;
}

.hero-name-input:focus {
  outline: none;
  border-bottom-color: var(--accent-gold);
}

.hero-title {
  color: var(--accent-purple);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.hero-level-display {
  margin-top: 1.5rem;
}

.level-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-title);
}

.level-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -0.3rem;
}

.hero-xp-bar {
  max-width: 400px;
  margin: 1rem auto 0;
}

.hero-xp-bar-track {
  width: 100%;
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.hero-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold-dim), var(--accent-gold));
  border-radius: 6px;
  transition: width 0.8s ease;
  position: relative;
}

.hero-xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 6px 6px 0;
  animation: xpShimmer 2s ease-in-out infinite;
}

@keyframes xpShimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.hero-xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.hero-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Badges Section */
.badges-section {
  margin-bottom: 2rem;
}

.badges-section h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
}

.badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 0.8rem;
  text-align: center;
  transition: all 0.3s;
}

.badge-card.earned {
  border-color: var(--accent-gold-dim);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.badge-card.locked {
  opacity: 0.35;
}

.badge-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.3rem;
}

.badge-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Skills Section */
.skills-section h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.skill-tag.unlocked {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.skill-tag.locked {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Reset Button */
.reset-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.btn-danger {
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: var(--accent-red);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
