/* Public Members Pages - Common Styles */

/* Container and Layout */
.members-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.members-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.members-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 32px;
}

.members-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.members-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 2px;
}

/* Results Summary */
.results-summary {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
}

/* Table Styles */
.members-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f3f4f6;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.members-table thead {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.members-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.members-table th:first-child {
    border-top-left-radius: 16px;
}

.members-table th:last-child {
    border-top-right-radius: 16px;
}

.members-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.members-table tbody tr:hover {
    background-color: #f8fafc;
}

.members-table tbody tr:last-child {
    border-bottom: none;
}

.members-table td {
    padding: 16px 12px;
    vertical-align: middle;
}

.member-photo-cell {
    width: 112px;
}

.member-photo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: fill;
    background: #e5e7eb;
    border: 2px solid #f3f4f6;
    transition: transform 0.2s;
}

.member-photo:hover {
    transform: scale(1.1);
}

.member-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f3f4f6;
    transition: transform 0.2s;
}

.member-photo-placeholder:hover {
    transform: scale(1.1);
}

.member-photo-placeholder span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.member-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.member-id {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 0.9rem;
}

.member-badge {
    font-weight: 500;
    color: #2563eb;
    padding: 4px 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 4px;
}

.member-committee-duration {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.member-contact {
    color: #6b7280;
    font-size: 0.9rem;
    max-width: 300px;
}

.member-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.member-action {
    text-align: center;
}

.member-action a {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.member-action a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.members-empty {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 40px;
    padding: 40px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #d1d5db;
}

.members-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.members-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.members-empty p {
    color: #6b7280;
    margin-bottom: 16px;
}

.members-empty a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.members-empty a:hover {
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination .pagination-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.pagination .pagination-links a,
.pagination .pagination-links span {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    background: white;
    transition: all 0.2s;
}

.pagination .pagination-links a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .pagination-links .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination .pagination-links .disabled {
    color: #9ca3af;
    background: #f9fafb;
    cursor: not-allowed;
}

/* Responsive Table */
@media (max-width: 768px) {
    .members-table-container {
        border-radius: 8px;
    }
    
    .members-table th,
    .members-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .member-photo,
    .member-photo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .member-photo-placeholder span {
        font-size: 1.2rem;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .search-input {
        min-width: 250px;
    }
}

/* Deceased member specific styles */
.deceased-header {
    color: #dc2626;
    border-bottom: 2px solid #fecaca;
}

.deceased-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.deceased-table thead {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.deceased-table tbody tr:hover {
    background-color: #fef2f2;
}

/* Adjustments for deceased members page */
.deceased-photo-cell {
    width: 60px;
}

.deceased-photo {
    width: 48px;
    height: 48px;
}