/* ═══════════════════════════════════════════════════════════════════════════
   EBD Player Widget – Frontend Styles
   Spelerspaspoort in dezelfde basisstijl als de team widget
   ═══════════════════════════════════════════════════════════════════════════ */

.ebd-pw-wrap {
    max-width: 560px;
}

.ebd-pw-header {
    display: block;
    min-height: 0;
    padding: 18px 20px 16px;
}

.ebd-pw-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.ebd-pw-photo-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebd-pw-photo-wrap::before {
    content: attr(data-pw-initial);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.ebd-pw-photo-wrap--has-photo::before {
    display: none;
}

.ebd-pw-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ebd-pw-hero-main {
    min-width: 0;
    text-align: center;
}

.ebd-pw-name {
    display: block;
    margin: 0 0 2px;
    line-height: 1.15;
}


.ebd-pw-club-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.ebd-pw-club-logo {
    width: 18px;
    height: 18px;
    min-width: 18px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

.ebd-pw-club-name {
    color: rgba(255,255,255,0.86);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    min-width: 0;
    word-break: break-word;
}

.ebd-pw-header-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.ebd-pw-header-stat {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    text-align: center;
    min-width: 0;
}

.ebd-pw-header-stat-label {
    display: block;
    color: rgba(255,255,255,0.76);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 4px;
}

.ebd-pw-header-stat-value {
    display: block;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    word-break: break-word;
}

.ebd-pw-panel {
    display: block;
}

.ebd-pw-grid,
.ebd-pw-season-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ebd-pw-row {
    background: var(--tw-bg2);
    border: 1px solid var(--tw-border);
    border-radius: 8px;
    padding: 12px 14px;
    min-width: 0;
}

.ebd-pw-row--full {
    grid-column: 1 / -1;
}

.ebd-pw-label {
    display: block;
    margin-bottom: 4px;
    min-width: 0;
}

.ebd-pw-value {
    display: block;
    min-width: 0;
    word-break: break-word;
}

.ebd-pw-season-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--tw-border);
}

.ebd-pw-section-title {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--tw-text);
    margin-bottom: 4px;
}

.ebd-pw-section-subtitle {
    font-size: 12px;
    line-height: 1.35;
    color: var(--tw-muted);
    margin-bottom: 12px;
}

@media (max-width: 640px) {
    .ebd-pw-header {
        padding: 16px;
    }

    .ebd-pw-panel {
        padding: 14px 16px;
    }

    .ebd-pw-hero {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .ebd-pw-photo-wrap {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .ebd-pw-photo-wrap::before {
        font-size: 22px;
    }

    .ebd-pw-name {
        font-size: 17px;
    }

    .ebd-pw-club-name,
    .ebd-pw-header-stat-value,
    .ebd-pw-value {
        font-size: 12px;
        line-height: 1.3;
    }

    .ebd-pw-header-stat-label,
    .ebd-pw-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .ebd-pw-header-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .ebd-pw-grid,
    .ebd-pw-season-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ebd-pw-row {
        padding: 10px 12px;
    }
}
