/* ============================================
   PROFILES.CSS — Profile Page Only
   Relies on variables defined in style.css
   ============================================ */

main { padding: 20px; }

#member { text-align: center; margin-bottom: 20px; }

#member h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1em; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: inline-block;
  padding: 12px 24px; border-radius: 10px;
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ── Profiles Grid ───────────────────────────── */
.profiles-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 20px; padding: 10px;
}

.player-profiles { flex: 0 1 auto; }

/* ── Profile Cards ───────────────────────────── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  min-width: 260px; max-width: 340px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative; overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  opacity: 0.5;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border-color: var(--border-accent);
}

.player-name {
  margin-top: 0; margin-bottom: 14px;
  padding: 8px 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1em; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-accent);
}

/* ── Profile Details ─────────────────────────── */
.profile-details {
  display: flex; flex-direction: column; gap: 6px;
}

.profile-details p {
  margin: 0; font-size: 0.9em;
  color: var(--text-primary);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.profile-details p:last-child { border-bottom: none; }
.profile-details strong { color: var(--text-primary); }

/* All links in profile details — explicit color */
.profile-details a {
  display: inline-block;
  color: var(--text-primary);
  transition: color 0.2s;
}

.profile-details a:hover { color: var(--accent); opacity: 1; }

/* Stats box */
#border_box {
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
  width: 100%; padding: 8px 10px;
  border-radius: 8px; margin-top: 4px;
}

#border_box p {
  border-bottom: 1px solid var(--border);
  font-size: 0.88em; color: var(--text-primary);
}

#border_box p:last-child { border-bottom: none; }

/* ── Role Badges ─────────────────────────────── */
#active   { color: #000000; background-color: #32c232; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#sub      { color: #ffffff; background-color: #005700; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#coach    { color: #000000; background-color: #00ffdd; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#rookie   { color: #000000; background-color: #ffd700; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#inactive { color: #ffffff; background-color: #880101; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#retired  { color: #ffffff; background-color: #3d3daa; padding: 2px 6px; border-radius: 5px; font-size: 0.82em; }
#notfound { color: var(--text-primary); }

/* ── Rank Badge ──────────────────────────────── */
#rank {
  padding: 2px 8px; border-radius: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.9em;
  color: var(--text-primary);
}

/* ── Member Regional Cards ───────────────────── */
.profile-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}

.profile-card ul li {
  font-size: 0.88em; color: var(--text-primary);
  padding: 4px 0; border-bottom: 1px solid var(--border);
}

.profile-card ul li a { color: var(--text-primary); }
.profile-card ul li a:hover { color: var(--accent); opacity: 1; }
.profile-card ul li:last-child { border-bottom: none; }

/* ── Responsive ──────────────────────────────── */
@media screen and (max-width: 768px) {
  .profiles-grid { flex-direction: column; align-items: center; }
  .profile-card { min-width: 90vw; max-width: 95vw; }
}
