/* Blue Arcade — User styles */
/* Mirrors default theme user.css for backwards compatibility */

.user-avatar img {
  width: 38px;
}
.user-avatar {
  margin-left: 12px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
ul.user-links {
  position: absolute;
  background: var(--bg);
  right: 0;
  top: calc(100% + 8px);
  z-index: 2;
  text-align: left;
  list-style: none;
  font-weight: normal;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
}
ul.user-links li {
  padding: 10px 20px;
  min-width: 220px;
  color: var(--text);
  font-size: 0.9rem;
}
ul.user-links.hidden { display: none; }
.user-links hr { margin: 6px 0; border-color: var(--border-light); }

#mainNav .container {
  position: relative;
}

.section {
  background-color: var(--bg);
  border-radius: var(--radius-xl);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.page-title {
  margin-top: 5px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-username {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 16px;
}

.user-page {
  background-color: var(--soft-bg);
  min-height: 100vh;
}

.user-page .single-title {
  margin-top: 0;
  margin-bottom: 10px;
  padding-top: 20px;
  font-size: 1.4rem;
}

.user-page .section-title {
  font-weight: 700;
  margin-bottom: 14px;
}

.profile-bio { margin-top: 8px; }
.profile-join { color: var(--muted); font-style: italic; }

.progress-bar { background-color: var(--primary) !important; }

.level-badge {
  float: left;
  margin-right: 10px;
}

.profile-game-item {
  max-width: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-right: 12px;
}

.profile-gamelist-horizontal {
  position: relative;
}

.profile-gamelist-horizontal ul {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  gap: 10px;
}

.profile-gamelist-horizontal li {
  display: inline-block;
  text-align: center;
  flex-shrink: 0;
}

.profile-comment-item {
  position: relative;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius-xl);
  margin-top: 16px;
  background: var(--bg);
}

.comment-date { font-style: italic; color: var(--muted); font-size: 0.8rem; }

.btn-left {
  position: absolute;
  left: 0;
  background-color: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 4px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-right {
  position: absolute;
  right: 0;
  background-color: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 4px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-left:hover, .btn-right:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.label-xp { color: var(--primary); font-weight: 600; font-size: 0.8rem; }

.delete-comment {
  position: absolute;
  right: 12px;
  bottom: 10px;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.delete-comment:hover { color: #dc3545; }

.input-hidden {
  position: absolute;
  left: -9999px;
}

input[type=radio]:checked + label > img {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.2);
}

.avatar-chooser .col-3 {
  padding-right: 4px;
  padding-left: 4px;
}

[dir="rtl"] .user-links {
  left: 0;
  right: initial;
  text-align: right;
}
