/* LookCat - Profile Styles */

/* === PROFILE AVATAR === */
.profile-header {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.profile-avatar {
  width: 150px; height: 150px; min-width: 150px; min-height: 150px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  border: none; box-shadow: 0 6px 16px rgba(0,0,0,.1);
  cursor: pointer; transition: transform .2s; position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar:active { transform: scale(0.95); }
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0; width: 28px; height: 28px;
  background: var(--orange); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 14px;
  border: 2px solid #fff; color: #fff;
}

/* === AVATAR SCREEN === */
#avatarScreen { align-items: center; gap: 12px; padding-top: calc(var(--top-h) + var(--safe-top) + 16px); }
#avatarScreen .avatar-screen-title {
  font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900;
  color: var(--text);
}
#avatarScreen .avatar-screen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  width: 100%; max-width: 340px;
}
#avatarScreen .avatar-screen-current {
  width: 120px; height: 120px; min-height: 120px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; margin-bottom: 4px;
}
#avatarScreen .avatar-screen-current img { width: 100%; height: 100%; object-fit: cover; }

/* === NAV AVATAR === */

/* === PROFILE SCREEN === */
#profileScreen { gap: 16px; align-items: center; padding-top: calc(var(--top-h) + var(--safe-top) + 12px); }
.profile-mascot { width: 100px; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.1)); }
.profile-name {
  font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900; color: var(--text);
}
.profile-lang { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.level-ring { position: relative; width: 100px; height: 100px; }
.level-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.level-ring .bg { fill: none; stroke: #EEE; stroke-width: 6; }
.level-ring .fill { fill: none; stroke: url(#levelGrad); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.level-num-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.level-num-center .num {
  font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 900; color: var(--orange); line-height: 1;
}
.level-num-center .lbl { font-size: 11px; font-weight: 700; color: var(--text-soft); }

.profile-stats { display: flex; gap: 12px; width: 100%; max-width: 360px; justify-content: center; align-items: stretch; }
.profile-stats .level-ring { width: 44px; height: 44px; margin: 0 auto 2px; }
.profile-stats .level-ring .num { font-size: 24px !important; }
.profile-stats .stat-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 14px 8px;
  text-align: center; box-shadow: var(--shadow-soft); border: 2px solid var(--orange-light);
}
.stat-card .stat-num { font-family: 'Nunito', sans-serif; font-size: 28px; font-weight: 900; color: var(--orange); }
.stat-card .stat-label { font-size: 12px; color: var(--text-soft); font-weight: 700; }
.stat-card:last-child { border-color: var(--green-pale); }
.stat-card:last-child .stat-num { color: var(--green); }

.profile-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 4px; }
.profile-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 50px; border: 2px solid #E8E4DE;
  background: var(--card); color: var(--text);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.profile-action-btn:active { transform: scale(0.97); border-color: var(--orange); }
.profile-action-btn.danger { color: #E53935; border-color: #FFCDD2; }
.profile-action-btn.danger:active { border-color: #E53935; }
.logout-link {
  color: #CCC; font-size: 13px; font-weight: 700; cursor: pointer;
  background: none; border: none; margin-top: 8px; transition: color .2s;
}
.logout-link:hover { color: #E53935; }
