/**
 * Job Board Styles
 * File: assets/css/style.css
 */

.job-board-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.job-board-container {
    background: #f5f5f5;
}

.job-board-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    min-height: 600px;
}

/* Sidebar Filters */
.job-board-sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

.clear-filters:hover {
    color: #0052a3;
}

.close-icon {
    font-size: 24px;
    line-height: 1;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #0052a3;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.filter-checkbox span {
    flex: 1;
}

.filter-checkbox .count {
    color: #999;
    font-size: 13px;
}

/* Main Content Area */
.job-board-main {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: #0052a3;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #0052a3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: #003d7a;
}

/* Job Listings */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Job Card */
.job-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-info {
    flex: 1;
}

.job-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.job-posted {
    font-size: 14px;
    color: #999;
}

.job-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.job-separator {
    color: #ddd;
}

.job-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
    font-size: 15px;
}

.job-actions {
    display: flex;
    gap: 12px;
}

.btn-see-more,
.btn-apply {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid;
}

.btn-see-more {
    background: white;
    color: #0052a3;
    border-color: #0052a3;
}

.btn-see-more:hover {
    background: #f0f7ff;
}

.btn-apply {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.btn-apply:hover {
    background: #e55a2b;
}

.no-jobs-found {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-board-header {
        grid-template-columns: 1fr;
    }
    
    .job-board-sidebar {
        order: 2;
    }
    
    .job-board-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .job-board-wrapper {
        padding: 10px;
    }
    
    .job-board-sidebar,
    .job-board-main {
        padding: 20px;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-button {
        justify-content: center;
    }
    
    .job-card-header {
        flex-direction: column;
    }
    
    .job-location {
        margin-top: 10px;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .btn-see-more,
    .btn-apply {
        width: 100%;
        text-align: center;
    }
}

/* Loading State */
.job-listings.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   Latest Jobs Shortcode Styles
======================================== */

/* Simple Layout */
.latest-jobs-simple {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.latest-jobs-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.simple-job-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.simple-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
}

.simple-job-item:last-child {
    border-bottom: none;
}

.simple-job-item:hover {
    background: #f8f9fa;
}

.simple-job-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
}

.simple-job-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    min-width: 300px;
}

.simple-job-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.simple-job-title a:hover {
    color: #0052a3;
}

.simple-job-location {
    color: #666;
    font-size: 15px;
}

.simple-job-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0052a3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: gap 0.3s;
    white-space: nowrap;
}

.simple-job-link:hover {
    gap: 12px;
}

.simple-job-link svg {
    flex-shrink: 0;
}

/* Detailed Layout */
.latest-jobs-detailed {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.detailed-job-list {
    display: grid;
    gap: 20px;
}

.detailed-job-list .job-card {
    margin: 0;
}

/* No Jobs Message */
.no-jobs-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 8px;
}

/* Responsive Styles for Latest Jobs */
@media (max-width: 768px) {
    .latest-jobs-simple,
    .latest-jobs-detailed {
        padding: 10px;
    }
    
    .latest-jobs-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .simple-job-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
    }
    
    .simple-job-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .simple-job-title {
        min-width: auto;
        font-size: 16px;
    }
    
    .simple-job-location {
        font-size: 14px;
    }
    
    .simple-job-link {
        align-self: flex-end;
    }
}