/**
 * Pretpot Job Lists Widget Styles
 */
.pretpot-job-lists {
    --job-lists-bg: rgba(255, 255, 255, 0.1);
    --job-lists-bg-solid: rgba(255, 255, 255, 0.1);
    --job-lists-blur: 20px;
    --job-lists-border: rgba(255, 255, 255, 0.2);
    --job-lists-text: #000000;
    --job-lists-text-secondary: #666666;
    --job-lists-price: #000000;
    --job-lists-button-bg: #000000;
    --job-lists-button-text: #ffffff;
    --job-lists-item-spacing: 0px;
    --job-lists-padding: 0px;
    --job-lists-item-padding: 24px;
    
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Background Types - FIXED */
.pretpot-job-lists-bg-solid {
    background-color: var(--job-lists-bg-solid, rgba(255, 255, 255, 0.1)) !important;
}

.pretpot-job-lists-bg-image {
    background-image: var(--job-lists-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pretpot-job-lists-bg-video {
    position: relative;
}

.pretpot-job-lists-bg-glass {
    backdrop-filter: blur(var(--job-lists-blur));
    -webkit-backdrop-filter: blur(var(--job-lists-blur));
    background: var(--job-lists-bg);
    border: 1px solid var(--job-lists-border);
}

/* Video Background Elements */
.pretpot-job-lists-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.pretpot-job-lists-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--job-lists-video-overlay, rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Main Container */
.pretpot-job-lists-container {
    position: relative;
    z-index: 2;
    padding: var(--job-lists-padding);
}

/* Job Item - FIXED SPACING */
.pretpot-job-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: var(--job-lists-item-padding);
    margin-bottom: var(--job-lists-item-spacing);
    border: 1px solid var(--job-lists-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.pretpot-job-item:last-child {
    margin-bottom: 0;
}

.pretpot-job-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Job Logo/Image */
.pretpot-job-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.pretpot-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pretpot-job-logo-icon {
    font-size: 28px;
    color: var(--job-lists-text-secondary);
}

/* Job Content */
.pretpot-job-content {
    flex: 1;
    min-width: 0;
}

.pretpot-job-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--job-lists-text);
    line-height: 1.3;
}

.pretpot-job-description {
    margin: 0;
    font-size: 14px;
    color: var(--job-lists-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Job Meta (Price + Button) */
.pretpot-job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.pretpot-job-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--job-lists-price);
    white-space: nowrap;
}

.pretpot-job-price-prefix,
.pretpot-job-price-suffix {
    font-weight: 400;
    opacity: 0.8;
}

.pretpot-job-period {
    font-size: 13px;
    opacity: 0.7;
    margin-left: 4px;
}

/* Apply Button */
.pretpot-job-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--job-lists-button-bg);
    color: var(--job-lists-button-text);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.pretpot-job-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Loading State */
.pretpot-job-lists-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--job-lists-text-secondary);
}

.pretpot-job-lists-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--job-lists-border);
    border-top-color: var(--job-lists-text);
    border-radius: 50%;
    animation: job-lists-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes job-lists-spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.pretpot-job-lists-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--job-lists-text-secondary);
}

.pretpot-job-lists-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Error State */
.pretpot-job-lists-error {
    text-align: center;
    padding: 30px;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    margin: 20px;
}

/* Source Indicators */
.pretpot-job-lists-source-api .pretpot-job-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.pretpot-job-lists-source-api .pretpot-job-item:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .pretpot-job-item {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .pretpot-job-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .pretpot-job-logo {
        width: 50px;
        height: 50px;
    }
}