/* ============================================================
   MEMBRE BLOCKS - STYLES
   ============================================================ */

.bps-member-wrap { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.bps-member-header-admin { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; background: #fff; padding: 20px 25px; border-radius: 12px; border: 1px solid #e5e7eb; margin-bottom: 20px; }
.bps-member-header-admin h1 { margin: 0; font-size: 24px; font-weight: 700; color: #1f2937; }
.bps-subtitle { margin: 4px 0 0 0; color: #6b7280; font-size: 14px; }
.bps-member-info { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.bps-member-name { font-weight: 600; color: #1f2937; }

.bps-member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }
.bps-stat-card { background: #fff; padding: 20px; border-radius: 12px; text-align: center; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: transform 0.2s; }
.bps-stat-card:hover { transform: translateY(-2px); }
.bps-stat-number { display: block; font-size: 28px; font-weight: 700; color: #1f2937; }
.bps-stat-label { display: block; font-size: 13px; color: #6b7280; margin-top: 5px; }

.bps-table-container { background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.bps-member-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bps-member-table thead { background: #f8f9fa; }
.bps-member-table th { padding: 14px 16px; text-align: left; font-weight: 600; color: #4b5563; border-bottom: 2px solid #e5e7eb; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.bps-member-table td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.bps-member-table tr.row-unlocked td { border-left: 3px solid #22c55e; }
.bps-member-table tr.row-locked td { border-left: 3px solid #ef4444; }

.col-icon { width: 60px; }
.col-title { width: auto; }
.col-status { width: 140px; }
.col-badge { width: 110px; }
.block-icon { width: 40px; height: 40px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid #e5e7eb; }
.col-title strong { display: block; font-size: 14px; color: #1f2937; }
.block-desc { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.block-link { display: inline-block; margin-top: 4px; font-size: 12px; color: #800020; text-decoration: none; font-weight: 500; }
.block-link:hover { text-decoration: underline; }

.status-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-badge.unlocked { background: #d1fae5; color: #065f46; }
.status-badge.locked { background: #fee2e2; color: #991b1b; }
.status-hint { display: block; font-size: 11px; color: #6b7280; margin-top: 2px; }

.level-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.level-badge.gratuit { background: #d1fae5; color: #065f46; }
.level-badge.premium { background: #fef3c7; color: #92400e; }

.bps-profile-card { background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; padding: 30px; max-width: 600px; margin-top: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.bps-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.bps-profile-avatar img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #800020; object-fit: cover; }
.bps-profile-info h2 { margin: 0 0 5px 0; font-size: 22px; font-weight: 700; color: #1f2937; }
.bps-profile-email { margin: 0 0 3px 0; color: #6b7280; font-size: 14px; }
.bps-profile-level { margin: 0; }

.bps-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding: 20px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
.bps-profile-stat { text-align: center; }
.bps-profile-stat-value { display: block; font-size: 24px; font-weight: 700; color: #800020; }
.bps-profile-stat-label { display: block; font-size: 12px; color: #6b7280; }

.bps-profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bps-empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: 12px; border: 1px solid #e5e7eb; }
.bps-empty-icon { font-size: 48px; display: block; margin-bottom: 15px; }
.bps-empty-state h3 { font-size: 20px; margin: 0 0 10px 0; color: #1f2937; }
.bps-empty-state p { color: #6b7280; margin: 0; }

@media (max-width: 1024px) { .bps-member-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .bps-member-header-admin { flex-direction: column; align-items: flex-start; } .bps-member-stats { grid-template-columns: repeat(2, 1fr); } .bps-table-container { overflow-x: auto; } .bps-member-table { min-width: 600px; } .bps-profile-header { flex-direction: column; text-align: center; } }
@media (max-width: 480px) { .bps-member-stats { grid-template-columns: 1fr 1fr; gap: 10px; } .bps-stat-card { padding: 14px; } .bps-stat-number { font-size: 22px; } .col-status { width: 100px; } .col-badge { width: 80px; } .bps-profile-stats { grid-template-columns: 1fr; } .bps-profile-actions { flex-direction: column; } .bps-profile-actions .button { width: 100%; text-align: center; } }