/* Ofertas Laborales Widget Styles */

/* Job Offers List - Horizontal Scroll */
.rnz-job-offers-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Job List */
.rnz-job-offers-list::-webkit-scrollbar {
    height: 6px;
}

.rnz-job-offers-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.rnz-job-offers-list::-webkit-scrollbar-thumb {
    background: rgba(231, 76, 60, 0.5);
    border-radius: 10px;
}

.rnz-job-offers-list::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 76, 60, 0.7);
}

/* Job Card */
.rnz-job-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background-color: #2c2c2c;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.rnz-job-card:hover {
    background-color: #3a3a3a;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Job Icon */
.rnz-job-icon {
    font-size: 40px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rnz-job-icon svg {
    width: 40px;
    height: 40px;
    fill: #ffffff;
}

/* Job Image */
.rnz-job-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.rnz-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Job Name */
.rnz-job-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Modal Overlay */
.rnz-job-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rnz-job-modal-overlay.active {
    opacity: 1;
}

/* Modal Content */
.rnz-job-modal-content {
    position: relative;
    background-color: #2c3e50;
    border: 3px solid #e74c3c;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.rnz-job-modal-overlay.active .rnz-job-modal-content {
    transform: scale(1);
}

/* Modal Close Button */
.rnz-job-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.rnz-job-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Modal Icon Container */
.rnz-job-modal-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.rnz-job-modal-icon-container .rnz-job-icon {
    font-size: 60px;
    color: #ffffff;
}

.rnz-job-modal-icon-container .rnz-job-icon svg {
    width: 60px;
    height: 60px;
}

.rnz-job-modal-icon-container .rnz-job-image {
    width: 80px;
    height: 80px;
}

/* Modal Title */
.rnz-job-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 15px;
}

.rnz-job-modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e74c3c;
}

/* Modal Description */
.rnz-job-modal-description {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    text-align: center;
}

.rnz-job-modal-description p {
    margin: 0;
}

/* Modal Email Section */
.rnz-job-modal-email-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
}

.rnz-job-modal-email-label {
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.rnz-job-modal-email {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
    margin: 0;
}

.rnz-job-modal-email a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rnz-job-modal-email a:hover {
    color: #c0392b;
}

/* Modal Button */
.rnz-job-modal-button {
    display: block;
    width: 100%;
    padding: 15px 40px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rnz-job-modal-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Prevent Body Scroll When Modal is Open */
body.rnz-modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rnz-job-card {
        padding: 12px 20px;
    }

    .rnz-job-icon {
        font-size: 32px;
    }

    .rnz-job-icon svg {
        width: 32px;
        height: 32px;
    }

    .rnz-job-image {
        width: 32px;
        height: 32px;
    }

    .rnz-job-name {
        font-size: 14px;
    }

    .rnz-job-modal-content {
        padding: 30px 25px;
        width: 95%;
    }

    .rnz-job-modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rnz-job-modal-description {
        font-size: 14px;
        padding: 15px 20px;
    }

    .rnz-job-modal-email-label {
        font-size: 14px;
    }

    .rnz-job-modal-email {
        font-size: 16px;
    }

    .rnz-job-modal-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 480px) {
    .rnz-job-offers-list {
        gap: 10px;
    }

    .rnz-job-card {
        padding: 10px 15px;
        gap: 8px;
    }

    .rnz-job-modal-content {
        padding: 25px 20px;
    }

    .rnz-job-modal-title {
        font-size: 20px;
    }

    .rnz-job-modal-icon-container .rnz-job-icon {
        font-size: 50px;
    }

    .rnz-job-modal-icon-container .rnz-job-icon svg {
        width: 50px;
        height: 50px;
    }

    .rnz-job-modal-icon-container .rnz-job-image {
        width: 60px;
        height: 60px;
    }
}

/* Animation for Modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
    }

    to {
        transform: scale(1) translateY(0);
    }
}

.rnz-job-modal-overlay.active {
    animation: modalFadeIn 0.3s ease;
}

.rnz-job-modal-overlay.active .rnz-job-modal-content {
    animation: modalSlideIn 0.3s ease;
}