/* ============================================================
   Radio Tech — Members (auth, profil, top membri)
   Se încarcă DUPĂ style.css. Refolosește variabilele Studio Noir.
   ============================================================ */

/* Alias-uri pentru tokenii vechi (Neon Aurora) folosiți în acest fișier */
:root {
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-soft: rgba(255, 176, 32, 0.08);
  --glow-violet: rgba(255, 176, 32, 0.22);
}

/* ============ Top membri (index) ============ */
.top-members__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}
.top-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
}
.top-member__rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--text-0);
  flex: none;
}
.top-member:nth-child(1) .top-member__rank {
  background: linear-gradient(135deg, #ffc94d, #ffb020);
  color: #0a0a0c;
  border-color: transparent;
}
.top-member:nth-child(2) .top-member__rank {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: #0a0a0c;
  border-color: transparent;
}
.top-member:nth-child(3) .top-member__rank {
  background: linear-gradient(135deg, #ff9a5c, #ff7a45);
  color: #0a0a0c;
  border-color: transparent;
}
.top-member__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid var(--line-strong);
}
.top-member__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  font-weight: 700;
  color: var(--text-0);
}
.top-member__name {
  flex: 1;
  font-weight: 600;
  color: var(--text-0);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-member__pts {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-3);
  white-space: nowrap;
}
.top-members__cta {
  text-align: center;
  margin-top: 18px;
}
.top-members__cta a {
  font-size: 14px;
  color: var(--text-2);
}
.top-members__cta a:hover { color: var(--accent); }

/* ============ Pagini de autentificare ============ */
.auth-page { min-height: 100vh; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 96px 20px 48px;
  position: relative;
  z-index: 1;
}
.auth-back {
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.15s ease;
}
.auth-back:hover { color: var(--accent); }

.auth-card {
  width: min(460px, 100%);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.auth-logo { margin-bottom: 6px; }
.auth-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.auth-sub { margin: 0 0 6px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

.auth-msg {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin: 0;
  text-align: left;
  line-height: 1.5;
}
.auth-msg--err { background: rgba(248, 113, 113, 0.12); color: var(--err); border: 1px solid rgba(248, 113, 113, 0.3); }
.auth-msg--warn { background: rgba(251, 191, 36, 0.1); color: var(--warn); border: 1px solid rgba(251, 191, 36, 0.3); }
.auth-msg--ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.3); }
.auth-msg code { font-family: var(--mono); font-size: 12px; word-break: break-all; }

.btn-google {
  width: 100%;
  background: #fff !important;
  color: #1f2937 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  gap: 12px;
  animation: none !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35) !important;
}
.btn-google:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}
.btn-google.is-disabled { opacity: 0.5; pointer-events: none; }

.auth-foot { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.auth-foot a { color: var(--accent); font-weight: 600; }

.auth-perks {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
}
.auth-perks li {
  padding: 10px 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-1);
}

/* ============ Profil ============ */
.profile-card {
  width: min(560px, 100%);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  flex: none;
}
.profile-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #0a0a0c;
  font-size: 28px;
  font-weight: 800;
}
.profile-name { margin: 0; font-size: 24px; font-weight: 800; color: var(--text-0); }
.profile-email { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }

.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.profile-stat { padding: 16px 12px; border-radius: var(--radius); text-align: center; }
.profile-stat__val { display: block; font-size: 18px; font-weight: 800; color: var(--text-0); font-family: var(--mono); }
.profile-stat__lbl { display: block; font-size: 12px; color: var(--text-2); margin-top: 4px; }

.profile-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.profile-empty { color: var(--text-2); font-size: 14px; margin: 0; }

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.activity-item__label { flex: 1; color: var(--text-0); font-weight: 500; }
.activity-item__meta { color: var(--text-2); font-size: 12px; font-family: var(--mono); }
.activity-item__pts { color: var(--accent-3); font-family: var(--mono); font-size: 13px; }

.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.profile-actions form { display: inline-flex; }
.btn--danger {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--err);
}
.btn--danger:hover { background: rgba(248, 113, 113, 0.18); box-shadow: 0 0 20px rgba(248, 113, 113, 0.25); }

/* ============ Responsive ============ */
@media (max-width: 560px) {
  .profile-card { padding: 24px 20px; }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; text-align: center; }
  .activity-item { flex-wrap: wrap; }
}

/* ============ Header: stare cont ============ */
.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(167, 139, 250, 0.08);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  max-width: 180px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.header-auth:hover {
  background: rgba(167, 139, 250, 0.16);
  color: var(--text-0);
  box-shadow: var(--glow-violet);
}
.header-auth__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--text-0);
  flex: none;
  overflow: hidden;
}
.header-auth__avatar img { width: 100%; height: 100%; object-fit: cover; }
.header-auth__txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .header-auth__txt { display: none; }
  .header-auth { padding: 8px; }
}
.top-members__empty {
  margin: 0;
  padding: 20px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(167, 139, 250, 0.05);
  color: var(--text-2);
  font-size: 15px;
  text-align: center;
}
/* ============ Formulare de autentificare (email + parolă) ============ */
.gsi-slot {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gsi-slot > div { margin: 0 auto; }

.auth-sep {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: var(--text-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-sep::before,
.auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.auth-sep span { white-space: nowrap; }

.auth-form {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.auth-form .field { margin-bottom: 14px; }

.auth-form .field input[type="text"],
.auth-form .field input[type="email"],
.auth-form .field input[type="password"] {
  width: 100%;
  background: rgba(6, 3, 18, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-0);
  font: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.2s;
  caret-color: var(--accent-3);
}
.auth-form .field input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(232, 121, 249, 0.15);
}
.auth-form .field input::placeholder { color: var(--text-2); opacity: 0.7; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { padding-right: 46px !important; }

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pw-toggle:hover { background: rgba(167, 139, 250, 0.14); color: var(--text-0); }
.pw-toggle.is-on { color: var(--accent); }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.auth-submit { width: 100%; margin-top: 2px; }

.auth-card .auth-msg { margin: 0; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
}

/* ---- Profile edit form (v2) ---- */
.profile-hint {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-field__lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.profile-field input[type="text"],
.profile-field input[type="date"],
.profile-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--text-0);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, background .18s ease;
}
.profile-field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.profile-field input:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.07);
}
.profile-field input::placeholder,
.profile-field textarea::placeholder { color: var(--text-2); opacity: .7; }
.profile-field--color .profile-color {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.profile-color input[type="color"] {
  width: 52px;
  height: 40px;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.profile-color__hint { font-size: 13px; color: var(--text-2); }
.profile-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.5;
  cursor: pointer;
}
.profile-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.member-role-pill {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn--danger { color: var(--err) !important; border-color: rgba(255,92,92,.4) !important; }
.btn--danger:hover { background: rgba(255,92,92,.12) !important; }

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
  .profile-actions .btn,
  .profile-actions form { width: 100%; }
  .profile-actions form .btn { width: 100%; }
}
