/* =============================================================
   PLAYER PROFILE MODAL
   ============================================================= */

.pp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pp-modal {
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.pp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.pp-close:hover { background: rgba(255,255,255,0.2); }

/* Header */
.pp-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 16px;
}

.pp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c9952a;
    flex-shrink: 0;
}
.pp-avatar--initials {
    background: linear-gradient(135deg, #c9952a, #1b4332);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

/* Wrapper cliquable pour changer son avatar (uniquement sur son propre profil) */
.pp-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    cursor: pointer;
}
.pp-avatar-wrap .pp-avatar { width: 64px; height: 64px; }
.pp-avatar-edit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pp-avatar-wrap:hover .pp-avatar-edit { opacity: 1; }
.pp-avatar-wrap:hover .pp-avatar { filter: brightness(0.8); }

.pp-header-info { flex: 1; min-width: 0; }
.pp-pseudo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-since {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* Stats */
.pp-stats {
    display: flex;
    gap: 4px;
    padding: 0 24px 16px;
}
.pp-stat {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 4px;
}
.pp-stat-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #c9952a;
}
.pp-stat-lbl {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.pp-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 24px;
}
.pp-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.pp-tab:hover { color: rgba(255,255,255,0.8); }
.pp-tab--active {
    color: #c9952a;
    border-bottom-color: #c9952a;
}

/* Content */
.pp-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
}
.pp-tab-pane { display: none; }
.pp-tab-pane--active { display: block; }

.pp-empty {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 24px 0;
}

/* Item row */
.pp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}
.pp-item:hover { background: rgba(255,255,255,0.05); }

.pp-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.pp-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.pp-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pp-item-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
}

.pp-status--alive { color: #4CAF7D; }
.pp-status--dead { color: #e57373; }

.pp-go-btn {
    background: rgba(201,149,42,0.15);
    border: 1px solid rgba(201,149,42,0.3);
    color: #c9952a;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.pp-go-btn:hover {
    background: rgba(201,149,42,0.3);
    border-color: #c9952a;
}

.pp-not-placed {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}
