/* Member Details Modal Styles */

/* Card Layout Adjustments for Show More Button */
.director-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Show More Button Styles - Match Activity Button */
.director-show-more-btn {
    background: #698EE9;
    color: white;
    border: none;
    padding: 0.2rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.director-show-more-btn:hover {
    background: #5a7ed4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 142, 233, 0.3);
    text-decoration: none;
}

.director-show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(105, 142, 233, 0.2);
    background: #4f6fbd;
    color: white;
}

.director-show-more-btn:focus {
    outline: 2px solid rgba(105, 142, 233, 0.3);
    outline-offset: 2px;
    box-shadow: none;
}

/* Modal Styles */
#memberDetailsModal .modal-dialog {
    max-width: 700px;
    width: 700px;
}

#memberDetailsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#memberDetailsModal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

#memberDetailsModal .modal-title {
    color: #495057;
    font-weight: 600;
    font-size: 1.25rem;
}

#memberDetailsModal .modal-body {
    padding: 1.5rem;
    background-color: #ffffff;
}

#memberDetailsModal .modal-footer {
    background: #ffffff;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
}


/* Member Description Section */
.member-description-section {
    margin-bottom: 1.5rem;
}

.detail-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.detail-section-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Simple Details List */
.details-grid {
    margin-bottom: 1.5rem;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: inline-block;
    font-weight: 600;
    color: #495057;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    min-width: 100px;
}

.detail-value {
    display: inline;
    color: #333;
    font-size: 0.9rem;
}

/* Education Section */
.education-value {
    display: block;
    margin-top: 0.25rem;
}

.education-item {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-bullet {
    color: #495057;
    font-weight: bold;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.education-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Links Section */
.member-links-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.member-links-section .detail-section-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.member-links-section .fiwi-link {
    color: #698EE9;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.member-links-section .fiwi-link:hover {
    text-decoration: underline;
    color: #698EE9;
}

/* Loading States */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error State */
#modalErrorContent .fa-exclamation-triangle {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    #memberDetailsModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
    
    .modal-member-header {
        padding: 1rem;
    }
    
    .modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    #memberDetailsModal .modal-body {
        padding: 1rem;
    }
    
    .details-grid {
        gap: 0.75rem;
    }
    
    .detail-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-member-header .row {
        text-align: center;
    }
    
    .modal-member-header .col-auto {
        margin: 0 auto 1rem auto;
    }
    
    .modal-member-header .col {
        text-align: center;
    }
}