/**
 * Solea Job Manager - Frontend Styles
 */

/* Container */
.solea-jobs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout */
.solea-jobs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.solea-jobs-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Job Card */
.solea-job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: soleaFadeInUp 0.5s ease forwards;
    opacity: 0;
}

.solea-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.solea-job-card:focus {
    outline: 2px solid #58BA2A;
    outline-offset: 2px;
}

/* Job Title */
.solea-job-title {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
}

/* Job Icon */
.solea-job-icon {
    flex-shrink: 0;
    margin-left: 15px;
    color: #58BA2A;
}

/* Empty State */
.solea-jobs-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Animation */
@keyframes soleaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Overlay */
.solea-job-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
}

.solea-job-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solea-job-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* Modal Content */
.solea-job-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: soleaModalIn 0.3s ease;
}

@keyframes soleaModalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.solea-job-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #58BA2A;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 36px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.solea-job-modal-close:hover {
    background: #4aa324;
    transform: scale(1.08);
}

.solea-job-modal-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* PDF Viewer */
.solea-job-pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .solea-jobs-grid {
        flex-direction: column;
    }

    .solea-jobs-column {
        width: 100%;
    }

    .solea-job-card {
        padding: 15px 20px;
    }

    .solea-job-title {
        font-size: 15px;
    }

    .solea-job-modal-content {
        width: 95%;
        height: 90vh;
        border-radius: 4px;
    }

    .solea-job-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
        line-height: 32px;
    }
}
