/* Job Posts Plugin — Public Stylesheet
 * Extracted from inline styles for browser caching on high-traffic sites.
 * Version: 1.0.0
 */

/* ── Layout ─────────────────────────────────────────────────── */
.job-single-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
}
.job-content  { flex: 1; min-width: 0; max-width: calc(100% - 330px); }
.job-sidebar  { flex: 0 0 300px; }

/* ── Job header ─────────────────────────────────────────────── */
.job-title { font-size: 2.2em; margin-bottom: 15px; color: #333; }

.job-company-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.job-company-logo img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    border-radius: 7px;
}
.job-company-info h2   { margin: 0 0 5px 0; color: #2271b1; font-size: 1.8em; }
.job-company-info .industry { color: #666; font-size: 0.9em; }

/* ── Meta badges ─────────────────────────────────────────────── */
.job-meta {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}
.job-meta span {
    display: inline-block;
    padding: 8px 15px;
    background: #2271b1;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
}
.job-meta .location  { background: #d63384; }
.job-meta .work-mode { background: #0e3ac7; }

/* ── Content sections ───────────────────────────────────────── */
.job-section       { margin: 30px 0; }
.job-section h2    { color: #2271b1; font-size: 1.8em; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #2271b1; }
.job-section-content { line-height: 1.8; color: #333; }

/* ── Salary & deadline ──────────────────────────────────────── */
.job-salary {
    margin: 20px 0;
    padding: 20px;
    background: #e7f3ff;
    border-left: 4px solid #2271b1;
    border-radius: 5px;
    font-size: 1.3em;
    font-weight: 600;
}
.job-deadline {
    margin: 30px 0;
    padding: 20px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 1.1em;
}
.job-deadline.expired {
    background: #ffebee;
    border-left-color: #f44336;
}

/* ── Apply button ───────────────────────────────────────────── */
.job-apply-button { margin: 30px 0; text-align: center; position: relative; z-index: 9999; }
.button-apply {
    display: inline-block;
    padding: 15px 40px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(34, 113, 177, 0.3);
    position: relative;
    z-index: 9999;
}
.button-apply:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(34, 113, 177, 0.4);
    color: white;
}

/* ── Related jobs / grid ────────────────────────────────────── */
.job-related        { margin: 50px 0; }
.job-related h2     { color: #333; font-size: 2em; margin-bottom: 25px; text-align: center; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

/* ── Job cards ──────────────────────────────────────────────── */
.job-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid #ddd;
}
.job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
.job-card a             { text-decoration: none; color: inherit; display: block; }
.job-card-content       { padding: 20px; }
.job-card-company       { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.job-card-company img   { max-width: 50px; max-height: 50px; object-fit: contain; }
.job-card-title         { font-size: 1.2em; margin: 10px 0; color: #333; font-weight: 600; }
.job-card-meta          { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.job-card-meta span     { font-size: 0.8em; padding: 5px 10px; background: #f0f0f0; border-radius: 3px; }

/* ── Closed badge ───────────────────────────────────────────── */
.job-closed-badge {
    display: inline-block;
    background: #dc3232;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    color: #2271b1;
    font-size: 1.3em;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
}

.recent-jobs          { list-style: none; padding: 0; margin: 0; }
.recent-jobs li       { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.recent-jobs li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.recent-jobs a        { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #333; transition: color 0.3s; }
.recent-jobs a:hover  { color: #2271b1; }
.recent-jobs img      { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; border: 1px solid #ddd; border-radius: 5px; padding: 0; background: #fff; }
.recent-jobs .no-logo-placeholder { width: 50px; height: 50px; background: #f0f0f0; border-radius: 5px; flex-shrink: 0; border: 1px solid #ddd; }
.recent-jobs span     { font-size: 0.9em; line-height: 1.4; flex: 1; }

/* ── Jobs listing page ──────────────────────────────────────── */
.jobs-list-container  { max-width: 1200px; margin: 0 auto; padding: 20px; }
.jobs-pagination      { margin: 40px 0; text-align: center; }
.jobs-pagination a,
.jobs-pagination span { display: inline-block; padding: 8px 15px; margin: 0 5px; background: #f5f5f5; color: #333; text-decoration: none; border-radius: 5px; transition: all 0.3s; }
.jobs-pagination a:hover { background: #2271b1; color: white; }
.jobs-pagination .current { background: #2271b1; color: white; font-weight: bold; }

/* ── Social share (hidden by default, shown floating on mobile) */
.sassy-social-share-container { display: none; }

/* ── Position cards ─────────────────────────────────────────── */
.job-positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 25px 0;
}
.position-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.position-card:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 16px rgba(34, 113, 177, 0.15);
    transform: translateY(-3px);
}
.position-card-header         { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.position-logo                { max-width: 60px; max-height: 60px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.position-title-section h3    { margin: 0 0 5px 0; font-size: 1.3em; color: #1d2327; line-height: 1.3; }
.position-company             { margin: 0; color: #2271b1; font-weight: 600; font-size: 0.95em; }
.position-meta                { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.position-meta span           { display: inline-block; padding: 6px 12px; background: #f0f0f0; color: #333; border-radius: 5px; font-size: 0.85em; font-weight: 500; }
.position-location            { background: #d63384 !important; color: white !important; }
.position-type                { background: #2271b1 !important; color: white !important; }
.position-work-mode           { background: #0e3ac7 !important; color: white !important; }
.position-excerpt             { color: #555; font-size: 0.95em; line-height: 1.6; margin: 15px 0; }
.position-link-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s;
}
.position-link-button:hover {
    background: #135e96;
    color: white;
    transform: translateX(3px);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .job-single-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .job-content  { max-width: 100%; }
    
    .sassy-social-share-container {
        display: flex;
        position: fixed;
        bottom: 53px;
        left: 5px;
        z-index: 9999;
        background: #dbf0f7;
        padding: 2px 5px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        align-items: center;
        gap: 10px;
    }
    .sassy-social-share-container .share-title {
        font-weight: 600;
        color: #333;
        font-size: 17px;
        margin: 0;
        white-space: nowrap;
    }
    .job-sidebar                    { flex: 1; }
    .job-grid                       { grid-template-columns: 1fr; }
    .job-title                      { font-size: 1.8em; }
    .job-meta                       { gap: 5px; padding: 10px 0; }
    .job-meta span                  { padding: 5px 10px; font-size: 0.8em; }
    .recent-jobs img,
    .recent-jobs .no-logo-placeholder { width: 40px; height: 40px; }
    .job-company-info h2            { font-size: 1.2em; }
    .job-company-header             { margin-bottom: 0; padding: 5px 8px; background: #ececec; margin-left: -8px; margin-right: -8px; }
    .job-positions-grid             { grid-template-columns: 1fr; gap: 20px; }
    .position-ad-container          { max-width: 350px; }
    .position-card                  { padding: 20px; }
}

@media (max-width: 480px) {
  .position-ad-container          { max-width: 330px; }  
}
