/**
 * SimpleJobs Frontend Template Styles
 * 
 * @package SimpleJobs
 * @version 1.0.0
 */

/* Container and Layout */
.simplejobs-single-job,
.simplejobs-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    max-width: 100%;
}

/* Job Header */
.job-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.job-title {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.2;
}

/* Job Meta Information */
.job-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
}

.job-meta-info span {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
    color: #495057;
}

.job-meta-info span i.dashicons {
    margin-right: 0.5rem;
    color: #FE6A13;
}

/* Job Badges */
.job-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.job-badge-featured {
    background: #FE6A13;
    color: white;
}

.job-badge-expired {
    background: #dc3545;
    color: white;
}

.job-badge-filled {
    background: #6c757d;
    color: white;
}

/* Job Content Sections */
.job-content-sections {
    margin: 2rem 0;
}

.job-content-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.job-content-section:last-child {
    border-bottom: none;
}

.job-content-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FE6A13;
    display: inline-block;
}

.job-content-section .section-content {
    color: #555;
    line-height: 1.6;
}

.job-content-section .section-content ul,
.job-content-section .section-content ol {
    padding-left: 1.5rem;
}

.job-content-section .section-content li {
    margin-bottom: 0.5rem;
}

/* Job Application Section */
.job-application-section {
    background: #f8f9fa;
    border: 2px solid #FE6A13;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.job-application-actions {
    margin-top: 1rem;
}

.job-apply-button {
    background: #FE6A13;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.job-apply-button:hover {
    background: #e55a0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 106, 19, 0.3);
    text-decoration: none;
    color: white;
}

/* Job Status Messages */
.job-status {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.job-status-filled {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.job-status-expired {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Job Filters */
.job-filters-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

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

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.filter-button {
    background: #FE6A13;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.filter-button:hover {
    background: #e55a0f;
}

.clear-filters {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    margin-top: 0.5rem;
}

.clear-filters:hover {
    color: #FE6A13;
}

/* Archive Styles */
.archive-header,
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-title,

.page-title {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #333;
}

.job-count {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.job-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-card .job-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
}

.job-card .job-title a:hover {
    color: #FE6A13;
}

/* Related Jobs */
.related-jobs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.related-jobs h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

/* No Jobs Found */
.no-jobs-found {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.no-jobs-found h2 {
    color: #333;
    margin-bottom: 1rem;
}

.no-jobs-found p {
    color: #666;
    margin-bottom: 1.5rem;
}

.no-jobs-found .button {
    background: #FE6A13;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.no-jobs-found .button:hover {
    background: #e55a0f;
    text-decoration: none;
    color: white;
}

/* Pagination */
.navigation.pagination {
    text-align: center;
    margin: 2rem 0;
}

.navigation.pagination .nav-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span.current {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navigation.pagination .nav-links a:hover {
    background: #FE6A13;
    color: white;
    border-color: #FE6A13;
}

.navigation.pagination .nav-links span.current {
    background: #FE6A13;
    color: white;
    border-color: #FE6A13;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simplejobs-single-job,
    .simplejobs-archive {
        padding: 1rem 0.5rem;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
    
    .archive-title,
    .page-title {
        font-size: 2rem;
    }
    
    .job-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-apply-button {
        width: 100%;
        padding: 1rem;
    }
    
    .navigation.pagination .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Responsive Filters */
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .job-content-section h3 {
        font-size: 1.1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-application-section {
        padding: 1.5rem 1rem;
    }
}