/**
 * Public styles for Job Listing Plugin
 */

/* Job Listings Container */
.job-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Job Listing Item */
.job-listing-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.job-listing-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Job Header */
.job-listing-header {
    margin-bottom: 15px;
}

.job-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.job-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #0073aa;
}

.company-name {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.job-meta .dashicons {
    margin-right: 5px;
    color: #0073aa;
}

.job-type {
    background: #e7f3ff;
    padding: 4px 12px;
    border-radius: 4px;
    color: #0073aa;
    font-weight: 500;
}

/* Job Excerpt */
.job-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

/* Job Actions */
.job-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-view-job {
    background: #0073aa;
    color: #fff;
}

.btn-view-job:hover {
    background: #005a87;
}

/* Pagination */
.job-listings-pagination {
    margin-top: 30px;
    text-align: center;
}

.job-listings-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.job-listings-pagination .page-numbers.current,
.job-listings-pagination .page-numbers:hover {
    background: #0073aa;
    color: #fff;
}

/* No Jobs Found */
.no-jobs-found {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Single Job Listing */
.single-job-listing {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
}

.job-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.job-header .job-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.company-info {
    margin-top: 10px;
}

.company-info .company-name {
    font-size: 20px;
    margin-bottom: 5px;
}

.company-website {
    color: #0073aa;
    text-decoration: none;
}

.company-website:hover {
    text-decoration: underline;
}

/* Job Meta Container */
.job-meta-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.job-meta-item {
    padding: 10px;
}

.job-meta-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.job-type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.expired-label {
    color: #dc3232;
    font-weight: 600;
}

/* Job Content */
.job-content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.job-content h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #333;
}

.job-requirements ul {
    list-style: none;
    padding: 0;
}

.job-requirements li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.job-requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
}

/* Application Section */
.job-application-section {
    background: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-application-section h3 {
    margin-top: 0;
    color: #0073aa;
}

.btn-apply {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    font-size: 16px;
}

.btn-apply:hover {
    background: #005a87;
    color: #fff;
}

.application-email-note {
    margin-top: 15px;
    color: #666;
}

/* Job Footer */
.job-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.job-share {
    margin-bottom: 20px;
}

.job-share strong {
    display: block;
    margin-bottom: 10px;
}

.job-share a {
    display: inline-block;
    margin-right: 15px;
    color: #0073aa;
    text-decoration: none;
}

.job-share a:hover {
    text-decoration: underline;
}

.job-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.job-navigation a {
    color: #0073aa;
    text-decoration: none;
}

.job-navigation a:hover {
    text-decoration: underline;
}

/* Job Search Form */
.job-search-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.search-field input[type="text"],
.search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-search {
    background: #0073aa;
    color: #fff;
    padding: 10px 25px;
}

.btn-search:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .job-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .job-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .job-listing-item {
        padding: 15px;
    }
    
    .job-title {
        font-size: 20px;
    }
    
    .single-job-listing {
        padding: 15px;
    }
    
    .job-header .job-title {
        font-size: 24px;
    }
}
