/**
 * BPW Members List Styles - Minimal styling to work with theme
 */

.bpw-members-search {
    margin-bottom: 30px;
}

.bpw-search-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.bpw-search-form input[type="text"] {
    flex: 1;
    min-width: 250px;
}

.bpw-search-form select {
    min-width: 200px;
}

.bpw-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.bpw-member-card {
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s;
}

.bpw-member-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
}

.bpw-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bpw-member-info {
    padding: 20px;
}

.bpw-member-name {
    font-weight: 600;
    margin: 0 0 0.1em 0;
}

.bpw-member-title {
    margin: 0.1em 0 0.5em 0;
    font-size: 0.9em;
}

.bpw-member-sector,
.bpw-member-phone,
.bpw-member-mobile,
.bpw-member-email {
    margin: 0;
    font-size: 0.9em;
}

.bpw-member-email a {
    text-decoration: none;
}

.bpw-no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* Popup Styles */
.bpw-member-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s;
    background-color: rgba(0, 0, 0, 0.7);
}

.bpw-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.bpw-popup-close {
    position: absolute;
    top: 0;
    right: 0.4em;
    color: #000000;
    font-size: 3em;
    cursor: pointer;
    z-index: 10;
}

.bpw-popup-close:hover {
    color: #000;
}

#bpw-member-popup-body {
    padding: 20px;
}

.bpw-popup-header {
    display: flex;
    gap: 1em 1em;
    margin-bottom: 1em;
}

.bpw-popup-photo {
    width: 150px;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.bpw-popup-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bpw-popup-header-info h2 {
    margin: 0 0 0.2em 0;
}

.bpw-popup-details {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 1em;
    margin-bottom: 1em;
}

.bpw-popup-detail-label {
    font-weight: 600;
}

.bpw-popup-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #000000;
}

.bpw-popup-description h3 {
    margin: 0 0 15px 0;
}

.bpw-popup-description p {
    /* line-height: 1.6; */
}

.bpw-popup-professional-title {
    margin: 0.3em 0 0 0;
    font-weight: 600;
}

.bpw-popup-business-name {
}

.bpw-search-form .button {
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .bpw-search-form {
        flex-direction: column;
    }

    
    .bpw-search-form input,
    .bpw-search-form select {
        width: 100%;
        min-width: 100%;
    }
    
    .bpw-members-grid {
        /* grid-template-columns: 1fr; */
    }
    
    .bpw-popup-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .bpw-popup-header {
        flex-direction: column;
    }
    
    .bpw-popup-details {
        grid-template-columns: 1fr;
    }
}

