/* HR Recruitment Plugin Frontend Styles */

/* Container for all plugin elements */
.hrr-job-list,
.hrr-job-single,
.hrr-application-form {
    margin: 2em 0;
    font-family: inherit;
}

/* Job List */
.hrr-job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
}

.hrr-job-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

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

.hrr-job-item h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #111827;
}

.hrr-job-item p {
    margin: 0 0 1rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.hrr-apply-link {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.hrr-apply-link:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

/* Single Job */
.hrr-job-single {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.hrr-job-single h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: #111827;
}

.hrr-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.hrr-job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.hrr-job-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #374151;
}

.hrr-apply-button {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background 0.2s ease;
}

.hrr-apply-button:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

/* Application Form */
.hrr-application-form {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.hrr-application-form h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #111827;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.5;
    background: #fff;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.hrr-application-form button[type="submit"] {
    background: #2563eb;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hrr-application-form button[type="submit"]:hover {
    background: #1d4ed8;
}

/* Form messages */
#hrr-form-message {
    margin: 1rem 0;
}

#hrr-form-message .success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 4px solid #10b981;
}

#hrr-form-message .error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border-left: 4px solid #ef4444;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hrr-job-list {
        grid-template-columns: 1fr;
    }
    
    .hrr-job-item {
        padding: 1rem;
    }
    
    .hrr-application-form {
        padding: 1rem;
    }
}