/**
 * Style 3 - Job Listing Cards
 * New vertical card layout with fixed structure
 */

/* Main container */
.jobsearch-joblisting-style3 {
    width: 100%;
}

.jobsearch-joblisting-style3 .jobsearch-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Individual card */
.jobsearch-style3-card {
    display: flex;
    padding: 0 !important;
    margin: 0 !important;
}

.jobsearch-joblisting-style3-wrap {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 20px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.jobsearch-joblisting-style3-wrap:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Heart/Favorite Button (Top Right - Absolute) */
.jobsearch-style3-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.jobsearch-style3-favorite a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e4e4e4;
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.jobsearch-style3-favorite a:hover {
    background: #fff;
    color: #e74c3c;
    border-color: #e74c3c;
}

.jobsearch-style3-favorite a.bookmark-active {
    background: #fff;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Company Logo (Bottom Right - Absolute) */
.jobsearch-style3-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    overflow: hidden;
    z-index: 5;
}

.jobsearch-style3-logo figure {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobsearch-style3-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.jobsearch-style3-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* Job Title (H2) */
.jobsearch-style3-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 60px 12px 0;
    padding: 0;
    line-height: 1.4;
    color: #333;
}

.jobsearch-style3-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jobsearch-style3-title a:hover {
    color: #007bff;
}

/* Salary */
.jobsearch-style3-salary {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin: 0 0 12px 0;
    padding: 8px 0;
}

/* Location + Company */
.jobsearch-style3-location-company {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jobsearch-style3-location-company i {
    color: #ff6b5a;
    flex-shrink: 0;
}

/* Job Type Badges */
.jobsearch-style3-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px 0;
    padding: 8px 0;
}

.jobsearch-style3-badges .jobsearch-option-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.jobsearch-style3-badges .jobsearch-option-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

/* Meta Info - Time + Views */
.jobsearch-style3-meta {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.style3-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.style3-meta-item i {
    font-size: 13px;
    color: #bbb;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    .jobsearch-joblisting-style3 .jobsearch-row {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .jobsearch-joblisting-style3-wrap {
        min-height: 320px;
        padding: 16px;
    }

    .jobsearch-style3-title {
        font-size: 16px;
        margin-right: 50px;
    }

    .jobsearch-style3-logo {
        width: 60px;
        height: 60px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .jobsearch-joblisting-style3 .jobsearch-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .jobsearch-joblisting-style3-wrap {
        min-height: auto;
        padding: 14px;
    }

    .jobsearch-style3-title {
        font-size: 15px;
        margin-right: 40px;
        margin-bottom: 8px;
    }

    .jobsearch-style3-salary {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .jobsearch-style3-location-company {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .jobsearch-style3-badges {
        margin-bottom: 8px;
        gap: 4px;
    }

    .jobsearch-style3-badges .jobsearch-option-btn {
        padding: 3px 8px;
        font-size: 10px;
    }

    .jobsearch-style3-logo {
        width: 50px;
        height: 50px;
        bottom: 8px;
        right: 8px;
    }

    .jobsearch-style3-favorite {
        top: 8px;
        right: 8px;
    }

    .jobsearch-style3-favorite a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .jobsearch-style3-meta {
        gap: 12px;
        font-size: 11px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .jobsearch-joblisting-style3-wrap {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }

    .jobsearch-style3-favorite a {
        background: #333;
        border-color: #555;
        color: #999;
    }

    .jobsearch-style3-favorite a:hover,
    .jobsearch-style3-favorite a.bookmark-active {
        background: #2a2a2a;
        color: #ff6b5a;
        border-color: #ff6b5a;
    }

    .jobsearch-style3-title,
    .jobsearch-style3-title a {
        color: #e0e0e0;
    }

    .jobsearch-style3-title a:hover {
        color: #5a9fd4;
    }

    .jobsearch-style3-location-company {
        color: #999;
    }

    .jobsearch-style3-badges .jobsearch-option-btn {
        background: #333;
        border-color: #555;
        color: #ccc;
    }

    .jobsearch-style3-badges .jobsearch-option-btn:hover {
        background: #404040;
        border-color: #666;
    }

    .jobsearch-style3-meta {
        border-top-color: #444;
        color: #999;
    }

    .jobsearch-style3-logo {
        background: #333;
        border-color: #444;
    }
}
