/* Job Findly Frontend Styles */

.job-findly-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filters */
.job-findly-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.job-findly-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.job-findly-filter-group {
    flex: 1;
    min-width: 200px;
}

.job-findly-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.job-findly-filter-group input,
.job-findly-filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.job-findly-filter-group input:focus,
.job-findly-filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.job-findly-search-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Results Header */
.job-findly-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.job-findly-results-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.job-findly-results-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* Job Items */
.job-findly-jobs-list {
    display: grid;
    gap: 20px;
}

.job-findly-job-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.job-findly-job-header {
    margin-bottom: 15px;
}

.job-findly-job-title h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.job-findly-job-link {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-findly-job-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.job-findly-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.job-findly-company,
.job-findly-location,
.job-findly-salary {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-findly-company .dashicons,
.job-findly-location .dashicons,
.job-findly-salary .dashicons {
    font-size: 16px;
    color: #999;
}

/* Job Content */
.job-findly-job-content {
    margin-bottom: 15px;
}

.job-findly-job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.job-findly-skills {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

/* Job Footer */
.job-findly-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.job-findly-job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-findly-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-findly-badge.source-badge {
    background: #6c757d;
    display: flex;
    align-items: center;
    gap: 3px;
}

.job-findly-badge.source-badge .dashicons {
    font-size: 12px;
}

.job-findly-job-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.job-findly-posted-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}

.job-findly-posted-date .dashicons {
    font-size: 14px;
}

.job-findly-apply-btn {
    background: #a9f9bb;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-findly-apply-btn:hover {
    background: #218838;
    color: #fff;
    text-decoration: none;
}

/* Pagination */
.job-findly-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.job-findly-prev-page,
.job-findly-next-page {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-findly-prev-page:hover,
.job-findly-next-page:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

.job-findly-page-numbers {
    display: flex;
    gap: 5px;
}

.job-findly-page-number {
    padding: 8px 12px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 35px;
    text-align: center;
}

.job-findly-page-number:hover {
    background: #e9ecef;
    color: #333;
    text-decoration: none;
}

.job-findly-page-number.current {
    background: #a9f9bb;
    color: #fff;
}

/* No Results */
.job-findly-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.job-findly-no-results-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.job-findly-no-results h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.job-findly-no-results p {
    margin: 0;
    font-size: 16px;
}

/* Search Container */
.job-findly-search-container {
    max-width: 920px;
    margin: 0 auto;
}

.job-findly-ajax-search-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.job-findly-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.job-findly-search-group {
    flex: 1;
    min-width: 150px;
}

.job-findly-search-input,
.job-findly-search-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.job-findly-search-submit {
    background: #7e3ad3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
}

.job-findly-search-results {
    margin-top: 20px;
}

.job-findly-loading {
    text-align: center;
    padding: 40px 20px;
}

.job-findly-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-findly-load-more {
    text-align: center;
    margin-top: 20px;
}

.job-findly-load-more-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.job-findly-load-more-btn:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-findly-filter-row,
    .job-findly-search-row {
        flex-direction: column;
    }
    
    .job-findly-filter-group,
    .job-findly-search-group {
        min-width: auto;
    }
    
    .job-findly-job-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-findly-job-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .job-findly-pagination {
        flex-wrap: wrap;
    }
    
    .job-findly-page-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Widget Styles */
.job-findly-widget {
    margin-bottom: 20px;
}

.job-findly-widget-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.job-findly-widget-item:last-child {
    border-bottom: none;
}

.job-findly-widget-title h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.job-findly-widget-title a {
    color: #007cba;
    text-decoration: none;
}

.job-findly-widget-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.job-findly-widget-company,
.job-findly-widget-location,
.job-findly-widget-salary,
.job-findly-widget-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.job-findly-widget-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.job-findly-view-all {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.job-findly-view-all:hover {
    color: #005a87;
    text-decoration: underline;
}

.job-findly-no-jobs {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
} 