/**
 * Card Layout Styles
 */

/* Card container */
.cjl-card-layout .cjl-jobs-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

/* Job controls bar */
.cjl-job-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.cjl-job-sort {
    display: flex;
    align-items: center;
}

.cjl-job-sort label {
    margin-right: 8px;
    font-weight: 500;
}

.cjl-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

/* Card item */
.cjl-job-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.cjl-job-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Featured job */
.cjl-job-featured {
    border-left: 4px solid #ff9800;
}

.cjl-featured-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff9800;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 0 0 10px;
    z-index: 1;
}

/* Card header */
.cjl-job-card-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cjl-company-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 15px;
}

.cjl-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    padding: 5px;
    background-color: #fff;
}

.cjl-job-card-title {
    flex-grow: 1;
}

.cjl-job-card-title h3 {
    font-size: 18px;
    margin: 0 0 5px;
    line-height: 1.3;
}

.cjl-job-card-title h3 a {
    color: #333;
    text-decoration: none;
}

.cjl-job-card-title h3 a:hover {
    color: #0073aa;
}

.cjl-company-name {
    font-size: 14px;
    color: #666;
}

.cjl-company-name a {
    color: #666;
    text-decoration: none;
}

.cjl-company-name a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.cjl-job-type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 15px;
    white-space: nowrap;
}

.cjl-job-type-full-time {
    background-color: #e3f9e3;
    color: #1e7e1e;
}

.cjl-job-type-part-time {
    background-color: #e3f0ff;
    color: #1a5db1;
}

.cjl-job-type-contract {
    background-color: #fff5e3;
    color: #c77700;
}

.cjl-job-type-freelance {
    background-color: #f5e3ff;
    color: #8e24aa;
}

.cjl-job-type-internship {
    background-color: #e3fff5;
    color: #00796b;
}

/* Card content */
.cjl-job-card-content {
    padding: 20px;
}

.cjl-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.cjl-job-meta > div {
    display: flex;
    align-items: center;
}

.cjl-job-meta i {
    margin-right: 8px;
    color: #888;
}

.cjl-job-excerpt {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

.cjl-job-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.cjl-category-tag {
    background-color: #f0f0f0;
    color: #555;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Card footer */
.cjl-job-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cjl-apply-button {
    padding: 8px 16px;
}

.cjl-button-outline {
    background-color: transparent;
    border: 1px solid #0073aa;
    color: #0073aa;
}

.cjl-button-outline:hover {
    background-color: #f0f7fc;
}

.cjl-save-job {
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.cjl-save-job i {
    margin-right: 5px;
}

/* No jobs found */
.cjl-no-jobs {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.cjl-no-jobs-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.cjl-no-jobs h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #333;
}

.cjl-no-jobs p {
    margin: 0 0 20px;
    color: #666;
}

/* Icons */
.cjl-icon-map-marker:before {
    content: "\f041"; /* Font Awesome icon code */
}

.cjl-icon-dollar:before {
    content: "\f155";
}

.cjl-icon-calendar:before {
    content: "\f073";
}

.cjl-icon-bookmark:before {
    content: "\f02e";
}

.cjl-icon-search:before {
    content: "\f002";
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .cjl-job-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cjl-job-card-header {
        flex-wrap: wrap;
    }
    
    .cjl-job-type-badge {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .cjl-job-meta {
        flex-direction: column;
        gap: 8px;
    }
}