/* ============================================================ */
/* Frontend Table Styles (Mobile-first)
/* ============================================================ */

.wjl-table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    background: #fff;
}

.wjl-jobs-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    text-align: left;
    font-family: inherit;
}

.wjl-jobs-table th,
.wjl-jobs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.wjl-jobs-table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wjl-jobs-table tbody tr {
    transition: background-color 0.2s;
}

.wjl-jobs-table tbody tr:hover {
    background-color: #f1f5f9;
}

.wjl-highlight-date {
    color: #e11d48;
    font-weight: 600;
}

.wjl-btn-small {
    display: inline-block;
    padding: 6px 12px;
    background-color: #3b82f6;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.wjl-btn-small:hover {
    background-color: #2563eb;
}

@media (max-width: 768px) {
    .wjl-jobs-table thead {
        display: none;
    }
    .wjl-jobs-table, 
    .wjl-jobs-table tbody, 
    .wjl-jobs-table tr, 
    .wjl-jobs-table td {
        display: block;
        width: 100%;
    }
    .wjl-jobs-table tr {
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    .wjl-jobs-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        white-space: normal;
        border-bottom: 1px solid #f1f5f9;
    }
    .wjl-jobs-table td:last-child {
        border-bottom: 0;
    }
    .wjl-jobs-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #64748b;
    }
}

/* ============================================================ */
/* Single Job Details Page Styles
/* ============================================================ */

.wjl-single-job-details {
    margin: 30px 0;
    font-family: inherit;
    color: #334155;
}

.wjl-job-overview {
    background: #f0f0f0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.wjl-job-overview h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.wjl-overview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.wjl-overview-list li {
    background: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    font-size: 0.95rem;
    list-style: none;
}

.wjl-overview-list li strong {
    color: #475569;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.wjl-job-description {
    margin-bottom: 40px;
}

.wjl-job-description h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.wjl-job-links {
    background-color: #ecfeff;
    border: 1px solid #cffafe;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.wjl-job-links h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0891b2;
}

.wjl-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.wjl-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    font-size: 1rem;
}

.wjl-btn-primary {
    background-color: #10b981;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.4);
}
.wjl-btn-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.wjl-btn-secondary {
    background-color: #f43f5e;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(244, 63, 94, 0.4);
}
.wjl-btn-secondary:hover {
    background-color: #e11d48;
    transform: translateY(-2px);
}

.wjl-btn-outline {
    background-color: transparent;
    color: #0891b2 !important;
    border: 2px solid #0891b2;
}
.wjl-btn-outline:hover {
    background-color: #0891b2;
    color: #fff !important;
}
