/* ============================================================
   PROFILE.CSS — личный кабинет
   ============================================================ */

.profile-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.profile-avatar-wrap { display: flex; align-items: center; gap: 24px; }
.profile-avatar {
  width: 80px; height: 80px;
  background: var(--card);
  border: 2px solid rgba(212,175,55,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.profile-avatar svg { width: 38px; height: 38px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.profile-avatar__online {
  position: absolute; bottom: 1px; right: 1px;
  width: 16px; height: 16px; background: var(--green);
  border-radius: 50%; border: 2px solid var(--bg);
}
.profile-name {
  font-family: Georgia, serif;
  font-size: clamp(22px, 4vw, 32px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #fff; margin-bottom: 6px;
}
.profile-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---- LEVEL BAR ---- */
.level-bar-wrap {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 32px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.level-circle {
  width: 72px; height: 72px; flex-shrink: 0;
  background: rgba(212,175,55,0.08);
  border: 2px solid rgba(212,175,55,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.level-circle__num {
  font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1;
}
.level-info { flex: 1; min-width: 200px; }
.level-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.level-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.progress-bar-wrap {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 8px;
}
.progress-bar {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 100px; overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), rgba(212,175,55,0.55));
  border-radius: 100px; transition: width 1s ease;
}
.level-hours {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; flex-shrink: 0;
}
.level-hours svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.level-hours strong { color: #fff; font-weight: 700; margin: 0 4px; }

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(255,255,255,0.12); }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stat-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon--gold  { color: var(--gold);  background: rgba(212,175,55,0.1);  border-color: rgba(212,175,55,0.25); }
.stat-icon--green { color: var(--green); background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.25); }
.stat-icon--blue  { color: var(--blue);  background: rgba(59,130,246,0.1);  border-color: rgba(59,130,246,0.25); }
.stat-icon--red   { color: var(--red);   background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.25); }
.stat-value { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.stat-sub   { font-size: 11px; color: rgba(136,136,136,0.6); margin-top: 2px; }

/* ---- CHARACTER DETAILS ---- */
.char-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 24px;
}
.char-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.char-panel__title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; margin-bottom: 24px;
}
.hp-item { margin-bottom: 20px; }
.hp-item:last-child { margin-bottom: 0; }
.hp-item__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.hp-item__label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.hp-item__label svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-item__val { font-size: 13px; font-weight: 700; color: #fff; }
.hp-bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.hp-bar__fill { height: 100%; border-radius: 100px; transition: width 1s ease; }
.hp-bar__fill--red  { background: var(--red); }
.hp-bar__fill--blue { background: var(--blue); }

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row__label {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
}
.info-row__label svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-row__val { color: #fff; font-weight: 500; text-align: right; }

/* ---- QUICK LINKS ---- */
.quick-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.quick-link {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: all 0.2s;
}
.quick-link:hover { border-color: rgba(212,175,55,0.3); background: var(--card2); }
.quick-link__body { display: flex; align-items: center; gap: 14px; }
.quick-link__icon { color: var(--gold); }
.quick-link__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick-link__title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.quick-link__desc { font-size: 12px; color: var(--muted); }
.quick-link__arrow { color: var(--muted); transition: color 0.2s; }
.quick-link__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.quick-link:hover .quick-link__arrow { color: var(--gold); }

/* ---- NO CHARACTER ---- */
.no-char {
  text-align: center; padding: 96px 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.no-char svg { width: 56px; height: 56px; stroke: rgba(136,136,136,0.3); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 20px; display: block; }
.no-char h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 8px; }
.no-char p { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .char-details { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
