/**
 * Job Board Styles
 * Mounee Consulting Theme
 */

/* Job Openings Section (Front Page) */
.job-openings-section {
    padding: 80px 0;
    background: #f8fafc;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.job-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: #1e293b;
}

.job-header h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.job-header h3 a:hover {
    color: #0f172a;
}

.job-company {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.job-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-type-full-time {
    background: #dbeafe;
    color: #1e40af;
}

.job-type-part-time {
    background: #fef3c7;
    color: #92400e;
}

.job-type-contract {
    background: #e0e7ff;
    color: #4338ca;
}

.job-location,
.job-salary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9rem;
}

.job-location svg,
.job-salary svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.job-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.job-deadline {
    color: #f59e0b;
    font-weight: 500;
}

.job-apply-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.job-apply-link:hover {
    color: #f59e0b;
}

.job-openings-cta {
    text-align: center;
    margin-top: 40px;
}

.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-jobs-message p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px;
}

/* Archive Page */
.page-header.jobs-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.page-header .page-title {
    font-size: 3rem;
    margin-bottom: 16px;
    color: white;
}

.page-header .page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.jobs-archive-section {
    padding: 60px 0;
    background: #f8fafc;
}

/* Filter Bar */
.jobs-filter-bar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.jobs-search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #0f172a;
}

.filter-select {
    cursor: pointer;
}

/* Job Listings Grid */
.jobs-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.no-jobs-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.no-jobs-found svg {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-jobs-found h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.no-jobs-found p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Pagination */
.jobs-pagination {
    margin-top: 60px;
    text-align: center;
}

.jobs-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: white;
    color: #0f172a;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
}

.jobs-pagination .page-numbers:hover,
.jobs-pagination .page-numbers.current {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* Single Job Page */
.single-job-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 60px;
}

.job-header-content {
    max-width: 900px;
}

.job-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: white;
}

.job-company-name {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.job-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
}

.job-meta-item svg {
    width: 18px;
    height: 18px;
}

.single-job-content {
    padding: 60px 0;
    background: #f8fafc;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.job-main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.job-description h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #0f172a;
}

.job-description p {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.job-description ul,
.job-description ol {
    margin: 20px 0;
    padding-left: 24px;
}

.job-description li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #475569;
}

/* Application Form */
.job-application-form {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.job-application-form h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #0f172a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="file"],
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0f172a;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
    display: block;
}

.external-apply {
    margin-top: 60px;
    padding: 40px;
    background: #fef3c7;
    border-radius: 12px;
    text-align: center;
}

.external-apply h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: #0f172a;
}

.external-apply p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 24px;
}

/* Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-summary-card,
.share-job-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.job-summary-card h3,
.share-job-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #0f172a;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-item span {
    color: #1e293b;
    font-weight: 500;
    text-align: right;
}

.deadline-date {
    color: #f59e0b !important;
    font-weight: 600 !important;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.share-btn.linkedin {
    background: #0a66c2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.email {
    background: #64748b;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.back-to-jobs {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .job-content-grid {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .jobs-search-form {
        grid-template-columns: 1fr;
    }

    .jobs-grid,
    .jobs-listing-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-header .page-title {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1.8rem;
    }

    .job-main-content {
        padding: 24px;
    }
}
