/*
    =================================================================
    Featured Projects Modal Styles
    Adapted from projects_nonprofit.css for a consistent look.
    =================================================================
*/

/* Using a prefix 'fp-' to avoid conflicts */

.fp-modal {
    box-sizing: border-box;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.fp-modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.fp-modal-content {
    box-sizing: border-box;
    background-color: var(--white, #fff);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease-out;
}

.fp-modal.is-visible .fp-modal-content {
    transform: scale(1);
    opacity: 1;
}

.fp-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f7f8fa;
    border-bottom: 1px solid var(--light-gray, #dee2e6);
}

.fp-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.fp-modal-close {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--gray, #6c757d);
    font-size: 1.5rem;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fp-modal-close:hover {
    background-color: #d9dde2;
    transform: rotate(90deg);
}

.fp-modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    line-height: 1.6;
}

.fp-modal-body h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray, #6c757d);
    margin-top: 20px;
    margin-bottom: 10px;
}

.fp-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-skill-tag {
    background-color: #e7e5ff;
    color: #4d41b3;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
