/* Embed stylesheet - Labornum Team Manager */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 20px;
    background-color: transparent;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #333333;
    line-height: 1.5;
}

.team-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.team-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Centers the cards in the row */
    gap: 30px;
    width: 100%;
}

.team-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: none;
    /* Explicitly NO shadow */
    border-radius: 12px;
    padding: 30px 24px;
    width: 100%;
    max-width: 360px;
    /* Ensures equal card widths for 1 and 2 column configurations */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.team-row.cols-3 .team-card {
    max-width: calc(33.333% - 20px);
}

.team-row.cols-4 .team-card {
    max-width: calc(25% - 22.5px);
    padding: 20px 16px;
}

.team-card:hover {
    border-color: #cccccc;
}

.member-image-container {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    /* Completely round / maximum border-radius */
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.12);
    /* Minimal transparent grey border */
    flex-shrink: 0;
}

.member-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
    /* Black name */
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.member-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #000000;
    /* Black title */
    margin: 0 0 16px 0;

    letter-spacing: 0.05em;
}

.member-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    font-size: 0.95rem;
}

.member-link {
    color: #0066cc;
    /* Blue email and phone as requested */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease, text-decoration 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    word-break: break-word; /* Fix for email breaking into two lines unnecessarily */
}

.member-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #f0f7ff;
    color: #0066cc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}

.member-link:hover .member-icon-wrapper {
    background-color: #e0f0ff;
}

.member-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .team-row {
        flex-direction: column;
        align-items: center;
    }

    .team-card,
    .team-row.cols-3 .team-card,
    .team-row.cols-4 .team-card {
        max-width: 360px;
        padding: 30px 24px;
    }
}

@media (max-width: 380px) {
    .team-card {
        padding: 20px 16px;
    }
}

/* Modal Styles */
.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.email-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.email-modal {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    transform: translate(-50%, -30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.email-modal-overlay.active .email-modal {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.email-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.email-modal-close:hover {
    background-color: #f3f4f6;
    color: #333;
}

.email-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #111827;
}

.email-modal-input-group {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.email-modal-input-group input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #374151;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.email-modal-copy-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0;
    width: 48px;
    height: 100%;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.email-modal-copy-btn:hover {
    background-color: #0052a3;
}