/* ================================
    CSS STYLES FOR Module packmembership
   ================================ */

/* Members List Card Styles */
.members-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.member-row {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.member-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.member-row td {
    padding: 0;
    border: none;
    display: block;
}

.avatar-cell {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.member-info-cell {
    padding: 15px;
    background: #ffffff;
}

.member-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.field-group {
    margin-bottom: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
}

.field-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.field-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.field-value {
    color: #212529;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f3f4;
}

.field-value:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.member-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.member-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.message-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.message-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.message-button:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

/* Header Styles */
.members-header {
    color: #495057;
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #667eea;
}

.member-settings-link {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #1976d2;
    font-size: 14px;
}

.settings-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}

.settings-link:hover {
    text-decoration: underline;
}

/* Member Profile Card Styles (for individual member view) */
.member-profile-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
}

.member-avatar {
    max-width: 80px;
    max-height: 100px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.member-avatar:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .members-table {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .member-profile-card {
        flex-direction: column;
    }
    
    .field-label {
        font-size: 11px;
    }
    
    .field-value {
        font-size: 13px;
    }
}
