/* ═══════════════════════════════════════
   Player Profile Page Styles
   ═══════════════════════════════════════ */

/* Profile Header */
.prof-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    margin-bottom: 16px;
}
.prof-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(212,175,55,.08);
    border: 2px solid rgba(212,175,55,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.prof-avatar-icon { font-size: 2rem; }
.prof-info { flex: 1; min-width: 0; }
.prof-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}
.prof-title {
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.prof-meta {
    font-size: .78rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.prof-bio {
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Stats Grid */
.prof-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 680px) { .prof-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.prof-stat-card {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}
.psc-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold, #d4af37);
    font-family: 'JetBrains Mono', monospace;
}
.psc-label {
    font-size: .72rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Titles Grid — 4-column banner cards matching stats grid */
.prof-titles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (max-width: 680px) { .prof-titles-grid { grid-template-columns: repeat(2, 1fr); } }
.ptb-card {
    position: relative;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: default;
    transition: border-color .2s, transform .15s;
}
.ptb-card.ptb-earned {
    border-color: rgba(212,175,55,.25);
}
.ptb-card.ptb-earned:hover {
    border-color: rgba(212,175,55,.5);
    transform: translateY(-1px);
}
.ptb-card.ptb-locked {
    opacity: .45;
    filter: saturate(0.2);
}
.ptb-banner {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}
.ptb-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,11,15,0.88) 0%, rgba(10,11,15,0.35) 50%, rgba(10,11,15,0.15) 100%);
}
.ptb-lock {
    position: absolute;
    top: 6px; right: 6px;
    font-size: .6rem;
    z-index: 3;
    opacity: .7;
}
.ptb-label {
    position: relative;
    z-index: 2;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: var(--font-heading, 'Georgia', serif);
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
    padding: 6px 4px;
    text-align: center;
    line-height: 1.2;
}

/* Realm List */
.prof-realms-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.prof-realm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 5px;
}
.prr-icon { font-size: 1rem; width: 24px; text-align: center; }
.prr-info { flex: 1; min-width: 0; }
.prr-name { font-size: .82rem; font-weight: 600; color: var(--text); }
.prr-world { font-size: .72rem; color: var(--text-dim); }
.prr-status {
    font-size: .65rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}
.prr-status.active { background: rgba(76,175,80,.15); color: #6c6; }
.prr-status.starting { background: rgba(33,150,243,.15); color: #5ba8d4; }
.prr-status.ended { background: rgba(255,255,255,.05); color: var(--text-muted); }
.prr-race { font-size: .75rem; color: var(--text-dim); width: 70px; }
.prr-joined { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }

/* Cards (used on profile) */
.card {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 16px;
}

/* Form elements for edit */
.prof-header .btn { flex-shrink: 0; }
