/* ==========================================================================
   PWA Players — Eagles Golf
   File: /assets/css/pwa-players.css
   ========================================================================== */
.pwa-player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* ── Modale card giocatore (stile sito pubblico) ── */
.pwa-pc-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pwa-pc-modal.hidden { display: none; }
.pwa-pc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pwa-pc-dialog {
    position: relative;
    width: 100%;
    max-width: 340px;
    z-index: 1;
    animation: pwaPcIn 0.22s ease-out;
}
@keyframes pwaPcIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.pwa-pc-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-outer {
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.pc-inner {
    border-radius: 1.25rem;
    background: #131313;
    padding: 0.75rem;
}
.pc-hero {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: linear-gradient(165deg, #1a1a1a 0%, #0a0a0a 85%);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pc-watermark {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-style: italic;
    color: white;
    opacity: 0.12;
    mix-blend-mode: overlay;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}
.pc-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(0.2);
}
.pc-badge {
    position: absolute;
    z-index: 2;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #C10206;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #131313;
    line-height: 1;
}
.pc-info {
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
}
.pc-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}
.pc-club {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0.25rem 0 0;
}
.pc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0 0.25rem;
}
.pc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.85rem 0;
}
.pc-stat:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.06);
}
.pc-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}
.pc-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.15rem;
}
