/* ------------------ Profile Page Styles ------------------ */

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

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

.profile-header-bg {
  height: 120px;
  background: linear-gradient(135deg, var(--main-neon), var(--purple-neon));
  opacity: 0.6;
}

.profile-avatar-wrapper {
  margin-top: -60px;
  display: inline-block;
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.profile-identity {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-tag {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.rank-badge {
  margin-top: 0.5rem;
  padding: 4px 12px;
  background: rgba(204, 255, 0, 0.1);
  color: var(--lime-neon);
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Grid Layout for Details and Stats */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-title {
  font-size: 1.1rem;
  color: var(--main-neon);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.info-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-group p {
  font-size: 0.95rem;
  font-weight: 600;
}

.edit-btn {
  margin-top: auto;
  padding: 10px;
  background-color: var(--bg-btn);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.edit-btn:hover {
  border-color: var(--main-neon);
  color: var(--main-neon);
}

/* Stats Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
  height: 100%;
  align-items: center;
}

.stat-box {
  background-color: var(--bg-btn);
  padding: 1rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lime-neon);
}

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

/* Logout Actions */
.actions-card {
  display: flex;
  justify-content: flex-end;
}

.logout-btn {
  padding: 10px 24px;
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.logout-btn:hover {
  background-color: #ff4444;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* Mobile Responsiveness for Profile */
@media (max-width: 768px) {
  .profile-container {
    padding-top: 1rem;
  }

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

  .actions-card {
    justify-content: center;
  }

  .logout-btn {
    width: 100%;
    justify-content: center;
    margin: 0 0.5rem 1rem 0.5rem;
  }
}
