/* ==========================================================================
   TPC Classifica PWA — Eagles Golf
   File: /assets/css/tpc-classifica-pwa.css
   ========================================================================== */

/* --- Hero compatto -------------------------------------------------------- */
.tpc-pwa-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    padding: 36px 24px 24px;
    text-align: center;
    background: linear-gradient(170deg, #155D98 0%, #0a2a4a 50%, #010A10 100%);
    margin-bottom: 16px;
}
.tpc-pwa-hero-dots {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.2) 0 1px, transparent 1.5px 100%);
    background-size: 12px 12px;
    pointer-events: none;
}
.tpc-pwa-hero-logo {
    position: relative;
    width: 180px;
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.tpc-pwa-hero-meta {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
}
.tpc-pwa-hero-meta span + span::before {
    content: '·';
    margin-right: 12px;
}

/* --- Card classifica ------------------------------------------------------ */
.tpc-pwa-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 14px;
}

.tpc-pwa-card {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}
.tpc-pwa-card[open] {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}

.tpc-pwa-summary {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tpc-pwa-summary::-webkit-details-marker { display: none; }
.tpc-pwa-summary::marker { content: ''; }

/* Rank */
.tpc-pwa-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: rgba(255,255,255,0.5);
}
.tpc-pwa-rank--top {
    background: rgba(193,2,6,0.15);
    border-color: rgba(193,2,6,0.3);
    color: #C10206;
}

/* Nome */
.tpc-pwa-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
}

/* Totale */
.tpc-pwa-total {
    text-align: right;
}
.tpc-pwa-total strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 0.9;
    color: #fff;
}
.tpc-pwa-total small {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
}

/* --- Scores espansi (riga orizzontale, no wrap) -------------------------- */
.tpc-pwa-scores {
    padding: 2px 12px 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
}

.tpc-pwa-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.tpc-pwa-score-pill.barialto { background: #0d72b9; }
.tpc-pwa-score-pill.external { background: #0a537f; }
.tpc-pwa-score-pill.team { background: #f69220; }
.tpc-pwa-score-pill.empty {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}
.tpc-pwa-score-pill.zero {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.25);
}
