/**
 * 365 Jobs Widget Enhancements CSS
 * 
 * CSS for improved Jobs widget display with new fields:
 * - Urgent badge
 * - Job quantity
 * - Industrial zone
 * - Better badges layout
 * 
 * @package 365-jobs-core
 * @version 1.2.0
 */

/* Job Post Box - Position Relative for Badges */
.job-post-box {
    position: relative;
}

/* Icon-Only Badge - Top Right Corner */
.job-badge-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: help;
    transition: transform 0.2s ease;
}

.job-badge-icon:hover {
    transform: scale(1.1);
}

.job-badge-icon i {
    font-size: 14px;
    color: #ffffff;
}

/* Urgent Badge - Red Circle */
.job-badge-urgent {
    background: #dc3545;
}

/* Featured Badge - Orange Circle */
.job-badge-featured {
    background: #ff9800;
    right: 50px; /* Stack next to urgent if both exist */
}

/* When only featured (no urgent) */
.job-post-box:not(.job-urgent) .job-badge-featured {
    right: 12px;
}

/* Job Type Badge - Below ribbon, clean style */
.job-type-badge {
    margin-bottom: 15px;
}

.job-type-badge .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
}

/* Urgent Job Highlight */
.vl-jobs-wrapper .job-post-box.job-urgent {
    border: 2px solid #dc3545;
}

/* Featured Job Highlight */
.vl-jobs-wrapper .job-post-box.job-featured {
    border: 2px solid #ff9800;
}

/* Work Info Meta */
.job-post-box .work-info .work-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.job-post-box .work-info .work-meta h6 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.2;
}

.job-post-box .work-info .work-meta .quantity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 3px;
}

.job-post-box .work-info .work-meta .quantity i {
    font-size: 12px;
}

/* Date Style */
.job-post-box .work-info .date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
}

.job-post-box .work-info .date i {
    font-size: 11px;
}

/* Company Logo & Placeholder */
.job-post-box .job-owners-area .image {
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-post-box .job-owners-area .image img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.job-post-box .company-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
}

/* Company Name */
.job-post-box .company-name {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Location with Icon */
.job-post-box .job-owners-area .text p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 13px;
}

.job-post-box .job-owners-area .text p i {
    font-size: 12px;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-post-box .work-info .work-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .job-post-box .job-badges {
        gap: 5px;
    }
    
    .job-post-box .tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* Load More Button Loading State */
.vl-load-more-btn .vl-load-more-spinner {
    margin-left: 8px;
}

.vl-load-more-btn.loading .vl-load-more-icon {
    display: none;
}

.vl-load-more-btn.loading .vl-load-more-spinner {
    display: inline-block !important;
}

.vl-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
