/**
 * Job Status Badges Styles - Complete Version
 * Version: 1.0.1
 * Compatibility: WordPress 5.0+, Elementor 3.0+
 */

/* ========================================
   Base Wrapper & Container
   ======================================== */

/* Main wrapper */
.job-status-wrapper-xyz789 {
    display: inline-block;
    margin: 10px 0;
    position: relative;
    min-height: 24px;
}

/* Badges container */
.job-status-badges-xyz789 {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    line-height: 1.4;
}

/* ========================================
   Base Badge Styles
   ======================================== */

/* Base badge style */
.status-badge-xyz789 {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: default;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
    position: relative;
}

/* ========================================
   Badge Variants
   ======================================== */

/* URGENT Badge - Red/Pink pill with white text */
.badge-urgent-xyz789 {
    background-color: #ff4757;
    background-image: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

/* URGENT Badge hover effect */
.badge-urgent-xyz789:hover {
    background-image: linear-gradient(135deg, #ff3838 0%, #ff2929 100%);
    box-shadow: 0 3px 6px rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

/* UNCATEGORIZED Badge - Green text, no background */
.badge-uncategorized-xyz789 {
    color: #0AAA4B;
    padding: 0;
    background: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Category Badge - Green text for actual categories */
.badge-category-xyz789 {
    color: #0AAA4B;
    padding: 0;
    background: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Category hover effect */
.badge-category-xyz789:hover,
.badge-uncategorized-xyz789:hover {
    color: #0AAA4B;
    text-shadow: 0 0 1px rgba(46, 213, 115, 0.3);
}

/* Type Badge - Gray text, no background */
.badge-type-xyz789 {
    color: #95a5a6;
    padding: 0;
    background: none;
    font-weight: 400;
    font-size: 14px;
    text-transform: capitalize;
}

/* Type hover effect */
.badge-type-xyz789:hover {
    color: #7f8c8d;
}

/* ========================================
   Loading & Error States
   ======================================== */

/* Loading state */
.job-status-loading-xyz789 {
    color: #a0a0a0;
    font-size: 14px;
    font-style: italic;
    padding: 5px 0;
    opacity: 0.7;
}

/* Loading animation */
.job-status-loading-xyz789::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 50%;
    background-color: #a0a0a0;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Error state */
.job-status-error-xyz789 {
    color: #ff4757;
    font-size: 14px;
    padding: 5px 10px;
    background-color: rgba(255, 71, 87, 0.1);
    border-radius: 4px;
    border-left: 3px solid #ff4757;
}

/* ========================================
   Animations
   ======================================== */

/* Fade in animation */
@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to loaded badges */
.job-status-wrapper-xyz789.loaded .status-badge-xyz789 {
    animation: fadeInBadge 0.3s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation for multiple badges */
.job-status-wrapper-xyz789.loaded .status-badge-xyz789:nth-child(1) {
    animation-delay: 0s;
}

.job-status-wrapper-xyz789.loaded .status-badge-xyz789:nth-child(2) {
    animation-delay: 0.1s;
}

.job-status-wrapper-xyz789.loaded .status-badge-xyz789:nth-child(3) {
    animation-delay: 0.2s;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet view */
@media (max-width: 768px) {
    .job-status-badges-xyz789 {
        gap: 10px;
    }
    
    .status-badge-xyz789 {
        font-size: 13px;
    }
}

/* Mobile view */
@media (max-width: 480px) {
    .job-status-wrapper-xyz789 {
        margin: 8px 0;
        width: 100%;
    }
    
    .job-status-badges-xyz789 {
        gap: 8px;
        width: 100%;
    }
    
    .status-badge-xyz789 {
        font-size: 12px;
    }
    
    .badge-urgent-xyz789 {
        font-size: 11px;
        padding: 5px 12px;
        border-radius: 14px;
    }
    
    .badge-category-xyz789,
    .badge-uncategorized-xyz789,
    .badge-type-xyz789 {
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .job-status-badges-xyz789 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ========================================
   Accessibility Features
   ======================================== */

/* Focus states for keyboard navigation */
.status-badge-xyz789:focus-visible {
    outline: 2px solid #4834d4;
    outline-offset: 2px;
    border-radius: 4px;
}

.badge-urgent-xyz789:focus-visible {
    outline-color: #ff4757;
}

.badge-category-xyz789:focus-visible,
.badge-uncategorized-xyz789:focus-visible {
    outline-color: #0AAA4B;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .badge-urgent-xyz789 {
        border: 2px solid currentColor;
        background-image: none;
    }
    
    .badge-category-xyz789,
    .badge-uncategorized-xyz789 {
        font-weight: 600;
        text-decoration: underline;
    }
    
    .badge-type-xyz789 {
        border: 1px solid currentColor;
        padding: 2px 6px;
        border-radius: 4px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .job-status-wrapper-xyz789.loaded .status-badge-xyz789 {
        animation: none;
        transition: none;
    }
    
    .badge-urgent-xyz789:hover {
        transform: none;
    }
    
    .job-status-loading-xyz789::after {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .badge-urgent-xyz789 {
        background-color: #ff5e74;
        background-image: linear-gradient(135deg, #ff5e74 0%, #ff4757 100%);
    }
    
    .badge-category-xyz789,
    .badge-uncategorized-xyz789 {
        color: #0AAA4B;
    }
    
    .badge-type-xyz789 {
        color: #b2bec3;
    }
    
    .job-status-error-xyz789 {
        background-color: rgba(255, 71, 87, 0.2);
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .job-status-wrapper-xyz789 {
        margin: 5px 0;
    }
    
    .status-badge-xyz789 {
        color: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .badge-urgent-xyz789 {
        background-color: transparent !important;
        background-image: none !important;
        border: 2px solid #ff4757 !important;
        color: #ff4757 !important;
        box-shadow: none !important;
    }
    
    .badge-category-xyz789,
    .badge-uncategorized-xyz789 {
        color: #0AAA4B !important;
        font-weight: 600 !important;
    }
    
    .badge-type-xyz789 {
        color: #666 !important;
    }
}

/* ========================================
   Elementor Specific Styles
   ======================================== */

/* Elementor editor mode */
.elementor-editor-active .job-status-wrapper-xyz789 {
    min-width: 200px;
    display: block;
}

/* Elementor widget container */
.elementor-widget-container .job-status-wrapper-xyz789 {
    width: auto;
    max-width: 100%;
}

/* Fix for Elementor column alignment */
.elementor-column .job-status-wrapper-xyz789 {
    display: inline-flex;
}

/* ========================================
   RTL Language Support
   ======================================== */

/* Right-to-left languages */
[dir="rtl"] .job-status-badges-xyz789 {
    direction: rtl;
}

[dir="rtl"] .badge-urgent-xyz789 {
    letter-spacing: 0;
}

[dir="rtl"] .job-status-error-xyz789 {
    border-left: none;
    border-right: 3px solid #ff4757;
}

/* ========================================
   Browser Compatibility
   ======================================== */

/* Firefox specific */
@-moz-document url-prefix() {
    .status-badge-xyz789 {
        font-weight: 500;
    }
}

/* Safari specific */
@supports (-webkit-appearance: none) {
    .job-status-badges-xyz789 {
        -webkit-flex-wrap: wrap;
    }
}

/* Edge Legacy */
@supports (-ms-ime-align: auto) {
    .job-status-badges-xyz789 {
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }
}

/* ========================================
   Custom Theme Integration
   ======================================== */

/* For themes with custom containers */
.entry-content .job-status-wrapper-xyz789,
.post-content .job-status-wrapper-xyz789,
.page-content .job-status-wrapper-xyz789 {
    margin: 15px 0;
}

/* For sidebar widgets */
.widget .job-status-wrapper-xyz789 {
    margin: 10px 0;
}

/* For archive pages */
.archive .job-status-wrapper-xyz789,
.category .job-status-wrapper-xyz789 {
    margin: 8px 0;
}

/* ========================================
   Utility Classes
   ======================================== */

/* Hide badges temporarily */
.job-status-wrapper-xyz789.hidden {
    display: none;
}

/* Inline display mode */
.job-status-wrapper-xyz789.inline {
    display: inline;
    margin: 0 5px;
}

/* Centered alignment */
.job-status-wrapper-xyz789.centered {
    text-align: center;
}

.job-status-wrapper-xyz789.centered .job-status-badges-xyz789 {
    justify-content: center;
}