/* ============================================
   Individual Bio Modal Styles
   ============================================ */

/* Modal container */
#amo-individual-modal.amo-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Dark overlay */
.amo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999998;
}

/* Modal content box */
.amo-modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 0 auto;
    top: 5vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    overflow: hidden;
}

/* Close button */
.amo-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000000;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.amo-modal-close:hover,
.amo-modal-close:focus {
    color: #333;
}

/* Modal body */
.amo-modal-body {
    padding: 40px 30px 30px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* Loading state */
.amo-modal-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

/* Individual details */
.amo-individual-details h4 {
    margin-top: 0;
    color: #333;
}

.amo-individual-details h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
}

.amo-individual-details p {
    margin: 10px 0;
    line-height: 1.6;
}

.amo-individual-details .amo-label {
    font-weight: 600;
    color: #666;
}

.amo-individual-details a {
    color: #0073aa;
    text-decoration: underline;
}

.amo-individual-details a:hover {
    color: #005a87;
}

/* Modal header section with image and name side by side */
.amo-modal-header-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Image styling */
.amo-individual-image-wrapper {
    flex-shrink: 0;
    width: 150px;
}

.amo-individual-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Name section */
.amo-individual-name-section {
    flex: 1;
    min-width: 0;
}

.amo-individual-name {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

/* Title */
.amo-individual-title {
    margin: 5px 0;
    font-style: italic;
    color: #555;
}

/* Organization section */
.amo-individual-organization {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.amo-org-name {
    font-size: 18px;
    font-weight: 600;
    margin: 5px 0 10px 0;
}

.amo-org-address {
    font-style: normal;
    margin: 10px 0;
}

/* Address section */
.amo-individual-address {
    margin: 15px 0;
}

.amo-individual-address address {
    font-style: normal;
    line-height: 1.6;
}

/* Contact section */
.amo-individual-contact {
    margin: 15px 0;
}

/* Social media */
.amo-individual-social {
    margin: 15px 0;
}

.amo-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.amo-social-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.amo-social-link:hover {
    background-color: #e0e0e0;
    text-decoration: none !important;
}

.amo-social-facebook {
    background-color: #1877f2;
    color: white;
}

.amo-social-facebook:hover {
    background-color: #0d65d9;
    color: white;
}

.amo-social-linkedin {
    background-color: #0077b5;
    color: white;
}

.amo-social-linkedin:hover {
    background-color: #006399;
    color: white;
}

.amo-social-twitter,
.amo-social-x {
    background-color: #000000;
    color: white;
}

.amo-social-twitter:hover,
.amo-social-x:hover {
    background-color: #333333;
    color: white;
}

.amo-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.amo-social-instagram:hover {
    background: linear-gradient(45deg, #d07c1f 0%, #c85a2e 25%, #be1f35 50%, #af1a54 75%, #9e106f 100%);
    color: white;
}

/* Bio section */
.amo-individual-bio {
    clear: both;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.amo-bio-content {
    line-height: 1.8;
}

/* Body state when modal is open */
body.amo-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .amo-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: calc(100vh - 40px);
        top: 20px;
    }

    .amo-modal-body {
        padding: 40px 20px 20px;
        max-height: calc(100vh - 100px);
    }

    .amo-modal-header-section {
        flex-direction: column;
        align-items: center;
    }

    .amo-individual-image-wrapper {
        width: 120px;
        margin-bottom: 15px;
    }

    .amo-individual-name-section {
        text-align: center;
    }

    .amo-social-links {
        flex-direction: column;
    }

    .amo-social-link {
        width: 100%;
    }
}
