/**
 * Webisport Dashboard - Members Section Styles
 * 
 * Member-specific styles only.
 * Shared components (info-grid, detail-layout, avatars, etc.) are in components.css
 *
 * All values use Vuexy design tokens directly — no override section needed.
 */

/* ================================================
   Members Grid (Card View)
   ================================================ */

.webisport-dashboard .webisport-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ws-space-5);
    padding: var(--ws-space-2) 0;
}

/* ================================================
   Member Card
   ================================================ */

.webisport-dashboard .webisport-member-card {
    background: var(--ws-white);
    border: none;
    border-radius: var(--ws-radius);
    overflow: hidden;
    box-shadow: var(--ws-shadow);
    transition: all var(--ws-transition);
}

.webisport-dashboard .webisport-member-card:hover {
    box-shadow: var(--ws-shadow-md);
    transform: translateY(-2px);
}

.webisport-dashboard .webisport-member-card-header {
    display: flex;
    align-items: center;
    gap: var(--ws-space-4);
    padding: var(--ws-space-5);
    background: transparent;
    border-bottom: none;
}

.webisport-dashboard .webisport-member-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--ws-radius-full);
    object-fit: cover;
    border: 2px solid rgba(47, 43, 61, 0.08);
}

.webisport-dashboard .webisport-member-card-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-primary-alpha-16);
    color: var(--ws-primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.webisport-dashboard .webisport-member-card-avatar-placeholder.dashicons {
    line-height: 64px;
}

.webisport-dashboard .webisport-member-card-info {
    flex: 1;
    min-width: 0;
}

.webisport-dashboard .webisport-member-card-name {
    margin: 0 0 var(--ws-space-1) 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ws-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webisport-dashboard .webisport-member-card-body {
    padding: var(--ws-space-4) var(--ws-space-5);
}

.webisport-dashboard .webisport-member-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ws-space-2);
}

.webisport-dashboard .webisport-member-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ws-text-secondary);
}

.webisport-dashboard .webisport-member-meta-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--ws-primary-ink);
    background: var(--ws-primary-alpha-16);
}

.webisport-dashboard .webisport-member-card-actions {
    padding: var(--ws-space-3) var(--ws-space-5);
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: flex-end;
}

/* ================================================
   Member Detail
   ================================================ */

.webisport-dashboard .webisport-member-detail-placeholder {
    text-align: center;
    padding: 60px var(--ws-space-5);
}

.webisport-dashboard .webisport-member-detail-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--ws-gray-300);
    margin-bottom: var(--ws-space-5);
}

.webisport-dashboard .webisport-member-detail-placeholder h2 {
    margin: 0 0 var(--ws-space-2) 0;
    color: var(--ws-text);
}

.webisport-dashboard .webisport-member-detail-placeholder p {
    color: var(--ws-text-secondary);
    margin: 0;
}

/* ================================================
   Member Sidebar — Vuexy Customer Details Card
   ================================================ */

.webisport-dashboard .webisport-member-sidebar-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--ws-radius-full);
    object-fit: cover;
    border: 3px solid rgba(47, 43, 61, 0.08);
    box-shadow: var(--ws-shadow-sm);
}

.webisport-dashboard .webisport-member-sidebar-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-primary-alpha-16);
    color: var(--ws-primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border: 3px solid var(--ws-gray-200);
}

.webisport-dashboard .webisport-member-sidebar-avatar-placeholder.dashicons {
    line-height: 100px;
}

/* ================================================
   Permissions Grid
   ================================================ */

.webisport-dashboard .webisport-permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.webisport-dashboard .webisport-permission-section {
    background: var(--ws-bg, #f8f7fa);
    border-radius: 0.375rem;
    padding: 1rem;
}

.webisport-dashboard .webisport-permission-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #444050;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(47, 43, 61, 0.08);
}

.webisport-dashboard .webisport-permission-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.webisport-dashboard .webisport-permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    padding: 0.25rem 0;
}

.webisport-dashboard .webisport-perm-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ws-radius-full);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.webisport-dashboard .webisport-perm-granted .webisport-perm-icon {
    background: rgba(40, 199, 111, 0.16);
    color: #28c76f;
}

.webisport-dashboard .webisport-perm-denied .webisport-perm-icon {
    background: rgba(234, 84, 85, 0.16);
    color: #ea5455;
}

.webisport-dashboard .webisport-perm-granted .webisport-perm-label {
    color: #444050;
}

.webisport-dashboard .webisport-perm-denied .webisport-perm-label {
    color: #97959e;
}

/* ================================================
   Link Styles
   ================================================ */

.webisport-dashboard .webisport-link {
    color: var(--ws-primary-ink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.webisport-dashboard .webisport-link:hover {
    color: #5a4fd4;
    text-decoration: underline;
}

/* ================================================
   Filter Bar Layout (Members specific)
   ================================================ */

.webisport-dashboard .members-filter-bar.webisport-filter-bar {
    align-items: flex-start;
}

.webisport-dashboard .members-filter-bar #members-search {
    min-width: min(100%, 220px);
    max-width: 300px;
}

.webisport-dashboard .members-filter-bar #members-wp_account-filter {
    min-width: min(100%, 260px);
    max-width: 360px;
}

.webisport-dashboard .members-filter-app {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ws-space-3);
}

.webisport-dashboard .members-filter-footclub {
    flex: 1 0 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--ws-space-3);
    padding: var(--ws-space-3);
    margin-top: var(--ws-space-1);
    background: rgba(var(--ws-primary-rgb), 0.06);
    border-radius: var(--ws-radius);
    border: 1px solid rgba(var(--ws-primary-border-rgb), 0.14);
}

.webisport-dashboard .members-filter-footclub__legend {
    flex: 1 0 100%;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ws-primary-ink);
    margin: 0;
}

.webisport-dashboard .members-filter-footclub .webisport-filter-select {
    min-width: min(100%, 150px);
    max-width: 220px;
}

.webisport-dashboard .webisport-filter-card[data-section="members"] .webisport-export-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.webisport-dashboard .webisport-filter-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ws-space-3);
    flex: 1;
}

.webisport-dashboard .webisport-filter-bar-right {
    display: flex;
    align-items: center;
    gap: var(--ws-space-3);
    margin-left: auto;
}

/* ================================================
   Relation Cards
   ================================================ */

.webisport-dashboard .webisport-relation-members {
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-3);
}

.webisport-dashboard .webisport-relation-card {
    display: flex;
    align-items: center;
    gap: var(--ws-space-4);
    padding: var(--ws-space-4);
    background: var(--ws-white);
    border: none;
    border-radius: var(--ws-radius);
    box-shadow: var(--ws-shadow);
    transition: background var(--ws-transition);
}

.webisport-dashboard .webisport-relation-card:hover {
    background: var(--ws-bg);
}

.webisport-dashboard .webisport-relation-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--ws-radius-full);
    object-fit: cover;
    border: 2px solid rgba(47, 43, 61, 0.08);
    box-shadow: var(--ws-shadow-sm);
}

.webisport-dashboard .webisport-relation-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--ws-radius-full);
    background: var(--ws-primary-alpha-16);
    color: var(--ws-primary-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.webisport-dashboard .webisport-relation-avatar-placeholder.dashicons {
    line-height: 48px;
}

.webisport-dashboard .webisport-relation-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ws-space-1);
}

.webisport-dashboard .webisport-relation-card-name {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ws-gray-800);
}

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 768px) {
    .webisport-dashboard .webisport-members-grid {
        grid-template-columns: 1fr;
    }

    .webisport-dashboard .webisport-filter-bar-left,
    .webisport-dashboard .webisport-filter-bar-right {
        justify-content: center;
        width: 100%;
    }

    .webisport-dashboard .webisport-member-card-header {
        flex-direction: column;
        text-align: center;
    }

    .webisport-dashboard .webisport-member-card-actions {
        justify-content: center;
    }

    .webisport-dashboard .webisport-member-sidebar-avatar,
    .webisport-dashboard .webisport-member-sidebar-avatar-placeholder {
        width: 80px;
        height: 80px;
    }

    .webisport-dashboard .webisport-member-sidebar-avatar-placeholder {
        font-size: 40px;
    }

    .webisport-dashboard .webisport-permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty state — membres list */
.members-empty-hint {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.members-empty-hint--muted {
    color: var(--webisport-text-muted, #6b7280);
}

/* ================================================
   Member Sidebar — Ident chips & contact lines
   ================================================ */

.webisport-dashboard .webisport-member-ident-chips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.webisport-dashboard .webisport-member-ident-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #444050;
}

.webisport-dashboard .webisport-member-ident-chip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.webisport-dashboard .webisport-member-ident-chip-value {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.webisport-dashboard .webisport-member-contact-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.webisport-dashboard .webisport-member-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: #6d6b77;
}

.webisport-dashboard .webisport-member-contact-line .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #97959e;
}

.webisport-dashboard .webisport-contact-dup-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ws-warning, #ff9f43);
    cursor: help;
}

.webisport-dashboard .webisport-contact-dup-warning .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: currentColor;
}

.webisport-dashboard .webisport-verification-issues-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid #f59e0b;
    border-radius: 0.25rem;
}

.webisport-dashboard .webisport-verification-issues-callout .dashicons {
    color: #b45309;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.webisport-dashboard .webisport-verification-issues-callout strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #b45309;
    font-size: 0.875rem;
}

.webisport-dashboard .webisport-verification-issues-list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.875rem;
    color: #6d6b77;
    line-height: 1.5;
}

.webisport-dashboard .webisport-verification-issues-list li + li {
    margin-top: 0.35rem;
}

.webisport-dashboard .webisport-verification-issues-list a {
    color: #b45309;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.webisport-dashboard .webisport-verification-issues-list a:hover {
    color: #92400e;
}

/* ================================================
   Status cards row — Compte App / Licence
   ================================================ */

.webisport-dashboard .webisport-status-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.webisport-dashboard .webisport-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(47, 43, 61, 0.08);
    border-radius: var(--ws-radius-md, 6px);
    box-shadow: var(--ws-shadow-sm, 0 2px 4px rgba(47, 43, 61, 0.06));
}

.webisport-dashboard .webisport-status-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ws-radius-md, 6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--ws-primary-rgb), 0.12);
    color: var(--ws-primary-ink);
    flex-shrink: 0;
}

.webisport-dashboard .webisport-status-card-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.webisport-dashboard .webisport-status-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.webisport-dashboard .webisport-status-card-value {
    font-size: 15px;
    font-weight: 700;
    color: #444050;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.webisport-dashboard .webisport-status-card-label {
    font-size: 12px;
    font-weight: 500;
    color: #97959e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.webisport-dashboard .webisport-status-card-success .webisport-status-card-icon {
    background: rgba(40, 199, 111, 0.16);
    color: #28c76f;
}

.webisport-dashboard .webisport-status-card-success .webisport-status-card-value {
    color: #28c76f;
}

.webisport-dashboard .webisport-status-card-warning .webisport-status-card-icon {
    background: rgba(255, 159, 67, 0.16);
    color: #ff9f43;
}

.webisport-dashboard .webisport-status-card-warning .webisport-status-card-value {
    color: #ff9f43;
}

.webisport-dashboard .webisport-status-card-info .webisport-status-card-icon {
    background: rgba(0, 207, 232, 0.16);
    color: #00cfe8;
}

.webisport-dashboard .webisport-status-card-info .webisport-status-card-value {
    color: #00cfe8;
}

.webisport-dashboard .webisport-status-card-danger .webisport-status-card-icon {
    background: rgba(234, 84, 85, 0.16);
    color: #ea5455;
}

.webisport-dashboard .webisport-status-card-danger .webisport-status-card-value {
    color: #ea5455;
}

.webisport-dashboard .webisport-status-card-neutral .webisport-status-card-icon {
    background: rgba(151, 149, 158, 0.16);
    color: #97959e;
}

.webisport-dashboard .webisport-status-card-neutral .webisport-status-card-value {
    color: #6d6b77;
}

/* ================================================
   Inscription widgets — fiche Footclub (2 × 4 grid)
   ================================================ */

.webisport-dashboard .webisport-inscription-widgets {
    margin-bottom: 1.25rem;
}

.webisport-dashboard .webisport-inscription-widgets .webisport-stat-cards-row {
    margin-bottom: 1rem;
}

.webisport-dashboard .webisport-inscription-widgets .webisport-stat-cards-row:last-child {
    margin-bottom: 0;
}

.webisport-dashboard .webisport-inscription-widgets .webisport-stat-card-status .webisport-stat-value {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
    .webisport-dashboard .webisport-inscription-widgets .webisport-stat-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .webisport-dashboard .webisport-status-cards-row {
        grid-template-columns: 1fr;
    }

    .webisport-dashboard .webisport-inscription-widgets .webisport-stat-cards-row {
        grid-template-columns: 1fr;
    }
}

.webisport-educator-prospect-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 123, 255, 0.25);
    background: rgba(0, 123, 255, 0.08);
}

.webisport-educator-prospect-callout .dashicons {
    color: var(--ws-primary-ink, #007bff);
    margin-top: 0.15rem;
}

.webisport-educator-prospect-callout p {
    margin: 0.35rem 0 0;
}

.webisport-educator-prospect-notes {
    color: var(--ws-text-muted, #6d6b77);
}
