/* Job Plugin Frontend Styles */

/* Jobs List */
.job-jobs-list {
    margin: 2rem 0;
}

.job-jobs-list[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    border-color: #0073aa;
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #1d2327;
}

.job-title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #005177;
}

.job-category {
    display: inline-block;
    background: #f0f6fc;
    color: #0073aa;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f1;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #50575e;
    font-size: 14px;
}

.job-meta-item .dashicons {
    color: #646970;
    font-size: 16px;
}

.job-excerpt {
    color: #50575e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.job-actions {
    text-align: center;
}

.job-apply-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-apply-button:hover {
    background: #005177;
    transform: translateY(-2px);
}

/* Single Job */
.job-single {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 2rem auto;
}

.job-header-large {
    text-align: center;
    margin-bottom: 2rem;
}

.job-title-large {
    margin: 0 0 1rem 0;
    font-size: 2.2rem;
    color: #1d2327;
}

.job-category-large {
    display: inline-block;
    background: #f0f6fc;
    color: #0073aa;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.job-meta-large {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f1;
}

.job-meta-large .job-meta-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.job-content {
    line-height: 1.8;
    color: #1d2327;
    margin-bottom: 2rem;
}

.job-content h1,
.job-content h2,
.job-content h3,
.job-content h4,
.job-content h5,
.job-content h6 {
    color: #1d2327;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.job-content p {
    margin-bottom: 1rem;
}

.job-content ul,
.job-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.job-content li {
    margin-bottom: 0.5rem;
}

/* Job Application Form */
.job-apply-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f1;
}

.job-apply-section h3 {
    margin: 0 0 1.5rem 0;
    color: #1d2327;
    font-size: 1.5rem;
}

.job-application-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
}

.application-form .job-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.application-form .job-form-group {
    margin-bottom: 1.5rem;
}

.application-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1d2327;
}

.application-form input,
.application-form textarea,
.application-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.application-form input:focus,
.application-form textarea:focus,
.application-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.application-form textarea {
    resize: vertical;
    min-height: 120px;
}

.application-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.application-button:hover {
    background: #005177;
    transform: translateY(-2px);
}

.job-application-success {
    background: #00a32a;
    color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.job-application-error,
.job-application-errors {
    background: #d63638;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.job-application-errors ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.job-application-errors li {
    margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .job-jobs-list[data-layout="grid"] {
        grid-template-columns: 1fr;
    }
    
    .application-form .job-form-row {
        grid-template-columns: 1fr;
    }
    
    .job-single {
        padding: 1.5rem;
    }
}

.job-no-jobs,
.job-no-job,
.job-error {
    text-align: center;
    padding: 2rem;
    background: #f6f7f7;
    border-radius: 8px;
    color: #646970;
    margin: 2rem 0;
}