/* =====================================================
   BizMela - Job Board
===================================================== */

body.bm-job-board-body{
    background:#f5f7fb;
}

/* ==========================
   Job Board Container
========================== */

.bm-job-board{
    width:92%;
    max-width:1100px;
    margin:35px auto 60px;
}

.bm-job-board-header{
    margin-bottom:30px;
}

.bm-job-board-header h1{
    margin:0 0 6px;
    font-size:32px;
    font-weight:700;
    color:#1f2937;
}

.bm-job-board-header p{
    margin:0;
    font-size:15px;
    color:#6b7280;
}

/* ==========================
   Filter Bar
========================== */

.bm-job-filters{
    background:#fff;
    border-radius:14px;
    padding:20px 24px;
    margin-bottom:28px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    display:flex;
    gap:14px;
    align-items:flex-end;
    flex-wrap:wrap;
}

.bm-filter-group{
    flex:1;
    min-width:180px;
}

.bm-filter-group label{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    font-weight:600;
    color:#374151;
}

.bm-filter-group select,
.bm-filter-group input[type="text"]{
    width:100%;
    padding:10px 14px;
    border:1px solid #d8dce3;
    border-radius:8px;
    font-size:14px;
    background:#fff;
    appearance:none;
    outline:none;
    transition:.3s;
}

.bm-filter-group select:focus,
.bm-filter-group input[type="text"]:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.bm-filter-btn{
    padding:10px 24px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    height:42px;
}

.bm-filter-btn:hover{
    background:#1d4ed8;
}

.bm-filter-reset{
    padding:10px 18px;
    background:#fff;
    color:#374151;
    border:1px solid #d8dce3;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    text-decoration:none;
    height:42px;
    display:inline-flex;
    align-items:center;
}

.bm-filter-reset:hover{
    background:#f3f4f6;
    border-color:#9ca3af;
}

/* ==========================
   Job Cards Grid
========================== */

.bm-job-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));
    gap:20px;
}

/* ==========================
   Job Card
========================== */

.bm-job-card{
    background:#fff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    transition:.3s;
    display:flex;
    flex-direction:column;
    position:relative;
    border:1px solid transparent;
}

.bm-job-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border-color:#e5e7eb;
}

.bm-job-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:14px;
    gap:10px;
}

.bm-job-card-title{
    margin:0 0 4px;
    font-size:18px;
    font-weight:700;
    color:#111827;
}

.bm-job-card-title a{
    color:#111827;
    text-decoration:none;
    transition:.2s;
}

.bm-job-card-title a:hover{
    color:#2563eb;
}

.bm-job-card-company{
    font-size:14px;
    color:#6b7280;
    margin:0;
}

/* ==========================
   Job Type Badge
========================== */

.bm-job-badge{
    display:inline-flex;
    align-items:center;
    padding:4px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    flex-shrink:0;
}

.bm-badge-full-time{
    background:#dbeafe;
    color:#1d4ed8;
}

.bm-badge-part-time{
    background:#dcfce7;
    color:#15803d;
}

.bm-badge-contract{
    background:#fef3c7;
    color:#b45309;
}

.bm-badge-freelance{
    background:#f3e8ff;
    color:#7c3aed;
}

.bm-badge-internship{
    background:#fce7f3;
    color:#be185d;
}

/* ==========================
   Job Card Meta
========================== */

.bm-job-card-meta{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:14px;
    font-size:13px;
    color:#6b7280;
}

.bm-job-card-meta span{
    display:inline-flex;
    align-items:center;
    gap:5px;
}

.bm-job-card-meta svg{
    width:15px;
    height:15px;
    flex-shrink:0;
}

/* ==========================
   Job Card Footer
========================== */

.bm-job-card-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:auto;
    padding-top:14px;
    border-top:1px solid #f3f4f6;
}

.bm-job-card-date{
    font-size:12px;
    color:#9ca3af;
}

.bm-job-card-actions{
    display:flex;
    gap:8px;
}

.bm-view-btn{
    display:inline-flex;
    align-items:center;
    padding:7px 16px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
    background:#f3f4f6;
    color:#374151;
    border:1px solid #e5e7eb;
}

.bm-view-btn:hover{
    background:#e5e7eb;
    color:#111827;
}

.bm-apply-btn{
    display:inline-flex;
    align-items:center;
    padding:7px 18px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
    transition:.3s;
    background:#2563eb;
    color:#fff;
    border:none;
    cursor:pointer;
}

.bm-apply-btn:hover{
    background:#1d4ed8;
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(37,99,235,.3);
}

.bm-apply-btn:disabled{
    background:#9ca3af;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}

/* ==========================
   Empty State
========================== */

.bm-job-empty{
    grid-column:1/-1;
    text-align:center;
    padding:60px 20px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
}

.bm-job-empty svg{
    width:60px;
    height:60px;
    color:#d1d5db;
    margin-bottom:15px;
}

.bm-job-empty h3{
    margin:0 0 8px;
    font-size:20px;
    color:#374151;
}

.bm-job-empty p{
    margin:0;
    color:#9ca3af;
    font-size:14px;
}

/* ==========================
   Results Count
========================== */

.bm-job-results{
    margin-bottom:18px;
    font-size:14px;
    color:#6b7280;
}

.bm-job-results strong{
    color:#111827;
}

/* =====================================================
   Single Job Page
===================================================== */

.bm-single-job{
    width:92%;
    max-width:800px;
    margin:35px auto 60px;
}

.bm-single-job-card{
    background:#fff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 5px 18px rgba(0,0,0,.05);
}

/* Header */

.bm-single-header{
    margin-bottom:24px;
    padding-bottom:20px;
    border-bottom:1px solid #f3f4f6;
}

.bm-single-header-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
    margin-bottom:12px;
}

.bm-single-title{
    margin:0 0 6px;
    font-size:28px;
    font-weight:700;
    color:#111827;
}

.bm-single-company{
    font-size:16px;
    color:#6b7280;
    margin:0;
}

.bm-single-company a{
    color:#2563eb;
    text-decoration:none;
}

.bm-single-company a:hover{
    text-decoration:underline;
}

/* Status Badge */

.bm-status-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    flex-shrink:0;
}

.bm-status-open{
    background:#dcfce7;
    color:#15803d;
}

.bm-status-closed{
    background:#fee2e2;
    color:#dc2626;
}

.bm-status-filled{
    background:#fef3c7;
    color:#b45309;
}

/* Meta Grid */

.bm-single-meta{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
    gap:16px;
    margin-bottom:24px;
}

.bm-meta-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:14px;
    background:#f9fafb;
    border-radius:10px;
}

.bm-meta-icon{
    width:36px;
    height:36px;
    background:#eff6ff;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.bm-meta-icon svg{
    width:18px;
    height:18px;
    color:#2563eb;
}

.bm-meta-label{
    font-size:12px;
    color:#9ca3af;
    margin-bottom:2px;
}

.bm-meta-value{
    font-size:14px;
    font-weight:600;
    color:#111827;
}

/* Skills */

.bm-single-skills{
    margin-bottom:24px;
}

.bm-single-skills h3{
    margin:0 0 10px;
    font-size:16px;
    font-weight:600;
    color:#374151;
}

.bm-skills-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.bm-skill-tag{
    display:inline-flex;
    padding:5px 14px;
    background:#eff6ff;
    color:#2563eb;
    border-radius:20px;
    font-size:13px;
    font-weight:500;
}

/* Description */

.bm-single-description{
    margin-bottom:28px;
}

.bm-single-description h3{
    margin:0 0 12px;
    font-size:16px;
    font-weight:600;
    color:#374151;
}

.bm-single-description-content{
    font-size:15px;
    line-height:1.7;
    color:#4b5563;
}

/* Apply Section */

.bm-single-apply{
    padding-top:20px;
    border-top:1px solid #f3f4f6;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.bm-single-apply-info{
    font-size:13px;
    color:#9ca3af;
}

.bm-single-apply-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 28px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.bm-single-apply-btn:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(37,99,235,.3);
}

.bm-single-apply-btn:disabled{
    background:#9ca3af;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}

.bm-single-apply-btn svg{
    width:18px;
    height:18px;
}

/* Back Link */

.bm-back-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:20px;
    color:#6b7280;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:.2s;
}

.bm-back-link:hover{
    color:#2563eb;
}

.bm-back-link svg{
    width:16px;
    height:16px;
}

/* =====================================================
   Apply Modal
===================================================== */

.bm-apply-modal-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9999;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.bm-apply-modal-overlay.active{
    display:flex;
}

.bm-apply-modal{
    background:#fff;
    border-radius:16px;
    width:100%;
    max-width:500px;
    max-height:90vh;
    overflow-y:auto;
    padding:30px;
    position:relative;
    animation:modalSlideIn .3s ease;
}

@keyframes modalSlideIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.bm-apply-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    width:32px;
    height:32px;
    border:none;
    background:#f3f4f6;
    border-radius:50%;
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6b7280;
    transition:.2s;
}

.bm-apply-modal-close:hover{
    background:#e5e7eb;
    color:#111827;
}

.bm-apply-modal h2{
    margin:0 0 6px;
    font-size:22px;
    font-weight:700;
    color:#111827;
}

.bm-apply-modal .bm-apply-subtitle{
    margin:0 0 22px;
    font-size:14px;
    color:#6b7280;
}

/* Apply Form Fields */

.bm-apply-form .bm-apply-field{
    margin-bottom:16px;
}

.bm-apply-form .bm-apply-field label{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    font-weight:600;
    color:#374151;
}

.bm-apply-form .bm-apply-field input,
.bm-apply-form .bm-apply-field select{
    width:100%;
    padding:10px 14px;
    border:1px solid #d8dce3;
    border-radius:8px;
    font-size:14px;
    outline:none;
    transition:.3s;
}

.bm-apply-form .bm-apply-field input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.bm-apply-form .bm-apply-field input[type="file"]{
    padding:8px;
    border-style:dashed;
    background:#fafafa;
    cursor:pointer;
}

.bm-apply-form .bm-apply-field small{
    display:block;
    margin-top:4px;
    font-size:12px;
    color:#9ca3af;
}

.bm-apply-submit{
    width:100%;
    padding:12px;
    background:#2563eb;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    margin-top:6px;
}

.bm-apply-submit:hover{
    background:#1d4ed8;
}

.bm-apply-submit:disabled{
    background:#9ca3af;
    cursor:not-allowed;
}

/* =====================================================
   Responsive
===================================================== */

@media (max-width:768px){

    .bm-job-board{
        width:95%;
    }

    .bm-job-filters{
        flex-direction:column;
    }

    .bm-filter-group{
        min-width:100%;
    }

    .bm-filter-btn,
    .bm-filter-reset{
        width:100%;
        justify-content:center;
    }

    .bm-job-grid{
        grid-template-columns:1fr;
    }

    .bm-single-job{
        width:95%;
    }

    .bm-single-job-card{
        padding:20px;
    }

    .bm-single-header-top{
        flex-direction:column;
    }

    .bm-single-title{
        font-size:24px;
    }

    .bm-single-meta{
        grid-template-columns:1fr;
    }

    .bm-single-apply{
        flex-direction:column;
        gap:12px;
        align-items:stretch;
        text-align:center;
    }

    .bm-apply-modal{
        padding:22px;
    }
}

@media (max-width:480px){

    .bm-job-board-header h1{
        font-size:26px;
    }

    .bm-job-card{
        padding:18px;
    }

    .bm-single-job-card{
        padding:16px;
    }
}
