/* Profile Page Styles */
.profile {
  padding: calc(var(--nav-height) + 2rem) 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.profile__header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(127, 92, 255, 0.3);
  flex-shrink: 0;
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__info h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Orbitron', sans-serif;
}

.profile__info p {
  font-size: 1rem;
  color: #8b92a9;
  margin-bottom: 1rem;
}

.profile__badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--bronze {
  background: linear-gradient(135deg, #CD7F32, #B8860B);
  color: #fff;
}

.badge--silver {
  background: linear-gradient(135deg, #C0C0C0, #808080);
  color: #fff;
}

.badge--gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
}

/* Stats Grid */
.profile__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 92, 255, 0.3);
}

.stat-card h3 {
  font-size: 0.9rem;
  color: #8b92a9;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

/* Achievements */
.profile__achievements {
  margin-bottom: 3rem;
}

.profile__achievements h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 92, 255, 0.3);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.achievement-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.achievement-card p {
  font-size: 0.9rem;
  color: #8b92a9;
  line-height: 1.4;
}

/* Activity Timeline */
.profile__activity h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(127, 92, 255, 0.2);
  border: 1px solid rgba(127, 92, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.activity-content span {
  font-size: 0.85rem;
  color: #8b92a9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile {
    padding: calc(var(--nav-height) + 1rem) 1rem 2rem;
  }

  .profile__header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .profile__avatar {
    width: 100px;
    height: 100px;
  }

  .profile__info h1 {
    font-size: 1.75rem;
  }

  .profile__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile__stats {
    grid-template-columns: 1fr;
  }
}
