/**
 * Staff Modal Styles
 */

/* Staff Card Styles - extends base .card class */
.staff-card {
    cursor: pointer;
}

.staff-card .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
}

.staff-card .wp-block-post-featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card .wp-block-post-featured-image:hover img {
    transform: scale(1.05);
}

.staff-card .wp-block-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #191919;
}

.staff-card .staff-department {
    margin: 0 0 1rem 0;
    color: #4c4c4c;
    font-style: italic;
}

.staff-card .view-profile-btn {
    margin-top: 1rem;
}

/* Modal Styles */
.staff-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-modal.active {
    display: block;
    opacity: 1;
}

.staff-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.staff-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #ffffff;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.staff-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.staff-modal-close:hover {
    background: #ffffff;
}

.staff-modal-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    padding: 2rem;
}

.staff-modal-image-container {
    position: relative;
}

.staff-modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1;
}

.staff-modal-info {
    display: flex;
    flex-direction: column;
}

.staff-modal-name {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #191919;
}

.staff-modal-department {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: var(--color-custom-primary-green, #3d8a28);
    font-weight: 600;
}

.staff-modal-bio {
    color: #4c4c4c;
    line-height: 1.6;
}

.staff-modal-bio p {
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .staff-modal-content {
        max-width: 95%;
        margin: 2.5vh auto;
    }

    .staff-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .staff-modal-name {
        font-size: 1.5rem;
    }

    .staff-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}
