/* SKN Jobs Frontend Styles */

/* Reset and Base Styles */
.skn-jobs-services-grid,
.skn-jobs-jobs-grid,
.skn-jobs-workers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.skn-jobs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Service Cards */
.skn-jobs-service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skn-jobs-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.service-title a {
    color: #333;
    text-decoration: none;
}

.service-title a:hover {
    color: #007cba;
}

.service-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
}

.service-price {
    font-size: 20px;
    font-weight: 700;
    color: #2E7D32;
}

.price-type {
    font-size: 14px;
    color: #666;
}

.service-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.service-location .dashicons {
    margin-right: 5px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.service-provider {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.service-provider .dashicons {
    margin-right: 5px;
}

.service-link {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.service-link:hover {
    background: #005a87;
    color: white;
}

/* Job Cards */
.skn-jobs-job-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skn-jobs-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.job-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-content {
    padding: 20px;
}

.job-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

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

.job-title a:hover {
    color: #007cba;
}

.job-description {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.job-budget {
    font-size: 20px;
    font-weight: 700;
    color: #2E7D32;
}

.budget-type {
    font-size: 14px;
    color: #666;
}

.job-location {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.job-location .dashicons {
    margin-right: 5px;
}

.job-urgency {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.urgency-low {
    background: #e8f5e8;
    color: #2e7d32;
}

.urgency-medium {
    background: #fff3e0;
    color: #f57c00;
}

.urgency-high {
    background: #ffebee;
    color: #d32f2f;
}

.urgency-urgent {
    background: #fce4ec;
    color: #c2185b;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.job-client {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.job-client .dashicons {
    margin-right: 5px;
}

.job-applications {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.job-applications .dashicons {
    margin-right: 5px;
}

.job-link {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.job-link:hover {
    background: #005a87;
    color: white;
}

/* Worker Cards */
.skn-jobs-worker-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.skn-jobs-worker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.worker-avatar {
    padding: 20px;
    background: #f8f9fa;
}

.worker-content {
    padding: 20px;
}

.worker-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.worker-name a {
    color: #333;
    text-decoration: none;
}

.worker-name a:hover {
    color: #007cba;
}

.worker-bio {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.worker-meta {
    margin: 0 0 15px 0;
}

.worker-location,
.worker-jobs {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.worker-location .dashicons,
.worker-jobs .dashicons {
    margin-right: 5px;
}

.worker-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.worker-link {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.worker-link:hover {
    background: #005a87;
    color: white;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.category-card p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.category-count {
    display: block;
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.category-link {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #005a87;
    color: white;
}

/* Search Form */
.skn-jobs-search-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
}

.search-input-group {
    display: flex;
    margin-bottom: 15px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input-group input:focus {
    border-color: #007cba;
}

.search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #005a87;
}

.search-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-filters select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-filters select:focus {
    border-color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skn-jobs-services-grid,
    .skn-jobs-jobs-grid,
    .skn-jobs-workers-grid,
    .skn-jobs-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .service-meta,
    .job-meta,
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-filters select {
        width: 100%;
    }
}

/* Loading States */
.skn-jobs-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.skn-jobs-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Error States */
.skn-jobs-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* Success States */
.skn-jobs-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}
