/**
 * SimpleJobs Frontend Styles
 * Theme-agnostic styling for job listings
 */

/* Job Listings Archive */
.simplejobs-archive {
    margin: 2rem 0;
}

.simplejobs-filters {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.simplejobs-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

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

.job-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.job-title a {
    text-decoration: none;
    color: #2c3e50;
}

.job-title a:hover {
    color: #3498db;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.job-meta span {
    background: #ecf0f1;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #7f8c8d;
}

.job-excerpt {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.5;
}

.job-actions {
    text-align: right;
}

/* Single Job Listing */
.job-listing-content {
    max-width: 800px;
    margin: 0 auto;
}

.job-listing-header {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.job-listing-title {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

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

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-meta-item strong {
    color: #34495e;
}

.job-section {
    margin-bottom: 2.5rem;
}

.job-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.job-contact-info {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.job-salary-info {
    background: #f1f8e9;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: #2980b9;
    color: white;
}

.button-primary {
    background: #3498db;
}

.button-primary:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simplejobs-filter-form {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-listing-meta {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

/* No jobs found message */
.no-jobs-found {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Loading states */
.simplejobs-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pagination */
.jobs-pagination {
    text-align: center;
}

.jobs-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

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