/* profile.css */
/* Extracted from templates/pages/profile.html */

/* ─── Profile Hero Banner ─── */
.profile-hero {
  position: relative;
  height: 180px;
  border-radius: var(--border-radius, 16px);
  overflow: hidden;
  margin-bottom: 0;
}

.profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.profile-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--bg-body, #F5F7FA) 100%);
}

.profile-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  cursor: pointer;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  border: 3px solid var(--lime-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(232, 232, 111, 0.3);
}

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

.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--lime-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-size: 14px;
  border: 3px solid var(--bg-body, #F5F7FA);
}

.profile-photo-input {
  display: none;
}

.upload-progress {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-progress .spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--lime-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Tournament Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 16px;
}

.stat-item {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark, #253C56);
  margin-bottom: 4px;
}

.stat-value.highlight {
  color: var(--lime-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-white-muted, #6B7B8D);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Achievements ─── */
.achievement-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 16px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  font-size: 12px;
  color: var(--navy-dark, #253C56);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.achievement-icon {
  font-size: 14px;
}