/* Profile — Fouriele dark theme */

body.fouriele-profile .profile-shell {
  align-items: stretch;
  max-width: 40rem;
}

body.fouriele-profile .game-nav {
  justify-content: space-between;
}

.profile-header {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
  width: 100%;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar {
  font-size: 2.25rem;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 50%;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-details h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, #d1d5db, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.user-details p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.user-details small {
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.85rem;
}

.stats-overview,
.recent-activity {
  width: 100%;
  margin-bottom: 2rem;
}

.stats-overview h2,
.recent-activity h2 {
  color: #e2e8f0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.stat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: rgba(203, 213, 225, 0.4);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.activity-list {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  overflow: hidden;
}

.activity-item {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  transition: background 0.15s;
}

.activity-item:hover {
  background: rgba(30, 41, 59, 0.5);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-song {
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
  color: #f1f5f9;
}

.activity-details {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.activity-result {
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.activity-result.correct {
  background: rgba(20, 83, 45, 0.35);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.activity-result.incorrect {
  background: rgba(127, 29, 29, 0.35);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.activity-difficulty {
  background: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.activity-time {
  color: #64748b;
  font-size: 0.8rem;
}

.no-activity {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.85rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.no-activity p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.btn-profile-play {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(to right, #4b5563, #374151);
  color: #fff;
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s;
}

.btn-profile-play:hover {
  background: linear-gradient(to right, #6b7280, #4b5563);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .user-info {
    flex-direction: column;
    text-align: center;
  }

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