/* ==========================================
   SHARE MODAL
========================================== */

#vacancies-filter-page .share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 1rem;

    overflow-y: auto;
}


/* IMPORTANTE:
   debe estar después de .share-modal */
#vacancies-filter-page .share-modal.hidden {
    display: none;
}


/* Fondo */
#vacancies-filter-page .share-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(17, 24, 39, 0.6);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* Caja */
#vacancies-filter-page .share-modal__dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 28rem;

    padding: 1.5rem;

    background: #ffffff;

    border-radius: 0.75rem;

    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25);

    animation: shareModalIn 160ms ease-out;
}


/* HEADER */

#vacancies-filter-page .share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;

    border-bottom: 1px solid #f3f4f6;
}


#vacancies-filter-page .share-modal__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    margin: 0;

    font-size: 1.125rem;
    font-weight: 700;

    color: #111827;
}


#vacancies-filter-page .share-modal__title-icon {
    width: 1.25rem;
    height: 1.25rem;

    color: #0057a8;
}


#vacancies-filter-page .share-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0.375rem;

    border: 0;
    border-radius: 0.5rem;

    background: transparent;
    color: #9ca3af;

    cursor: pointer;

    transition:
        background-color 150ms ease,
        color 150ms ease;
}


#vacancies-filter-page .share-modal__close:hover {
    background: #f3f4f6;
    color: #4b5563;
}


#vacancies-filter-page .share-modal__close-icon {
    width: 1.25rem;
    height: 1.25rem;
}


/* SECCIONES */

#vacancies-filter-page .share-modal__section {
    margin-top: 1.25rem;
}


#vacancies-filter-page .share-modal__label {
    display: block;

    margin-bottom: 0.375rem;

    font-size: 0.75rem;
    font-weight: 600;

    color: #4b5563;
}


/* URL */

#vacancies-filter-page .share-modal__url-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


#vacancies-filter-page .share-modal__input {
    min-width: 0;
    flex: 1;

    padding: 0.625rem;

    border: 1px solid #d1d5db;
    border-radius: 0.5rem;

    background: #f9fafb;

    color: #374151;

    font-family: monospace;
    font-size: 0.75rem;

    outline: none;
}


#vacancies-filter-page .share-modal__copy {
    display: flex;
    align-items: center;
    gap: 0.375rem;

    flex-shrink: 0;

    padding: 0.625rem 0.875rem;

    border: 0;
    border-radius: 0.5rem;

    background: #0057a8;
    color: #ffffff;

    font-size: 0.75rem;
    font-weight: 500;

    cursor: pointer;

    transition: background-color 150ms ease;
}


#vacancies-filter-page .share-modal__copy:hover {
    background: #00447f;
}


#vacancies-filter-page .share-modal__copy-icon {
    width: 1rem;
    height: 1rem;
}


/* REDES */

#vacancies-filter-page .share-modal__social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.625rem;
}


#vacancies-filter-page .share-modal__social {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 0.5rem;

    padding: 0.625rem;

    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;

    color: #374151;
    background: #ffffff;

    font-size: 0.75rem;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}


#vacancies-filter-page .share-modal__social:hover {
    background: #f9fafb;
    border-color: #93c5fd;
    color: #0057a8;
}


/* ANIMACIÓN */

@keyframes shareModalIn {

    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* RESPONSIVE */

@media (max-width: 480px) {

    #vacancies-filter-page .share-modal {
        padding: 0.75rem;
    }


    #vacancies-filter-page .share-modal__dialog {
        padding: 1.25rem;
    }


    #vacancies-filter-page .share-modal__social-grid {
        grid-template-columns: 1fr;
    }


    #vacancies-filter-page .share-modal__url-row {
        flex-direction: column;
        align-items: stretch;
    }


    #vacancies-filter-page .share-modal__copy {
        justify-content: center;
    }

}
