/* Zenhire Job Listings Styles v2 */

.zenhire-jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.zenhire-job-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    cursor: pointer;
}

.zenhire-job-card-link:hover,
.zenhire-job-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.zenhire-job-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.zenhire-job-card-link:hover .zenhire-job-card,
.zenhire-job-card-link:focus .zenhire-job-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.zenhire-job-header {
    margin-bottom: 16px;
}

.zenhire-job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.zenhire-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.zenhire-job-meta span {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
}

.zenhire-department {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.zenhire-location {
    background: #f3e5f5 !important;
    color: #7b1fa2 !important;
}

.zenhire-type {
    background: #e8f5e9 !important;
    color: #388e3c !important;
}

.zenhire-job-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0;
}

.zenhire-job-date {
    font-size: 13px;
    color: #888;
    margin: 12px 0;
}

.zenhire-job-actions {
 	margin-top: 0;
    padding-top: 0px;
    border-top: 0px;
}

.zenhire-apply-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background 0.3s ease;
    pointer-events: none;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    background: #29B5D6 !important;
    border: 0px solid #29B5D6 !important;
    text-transform: uppercase;
}

.zenhire-job-card-link:hover .zenhire-apply-button,
.zenhire-job-card-link:focus .zenhire-apply-button {
    background: #39ce6f !important;
    border: 0px solid #39ce6f !important;
}

.zenhire-jobs-count {
    text-transform: uppercase;
    padding-bottom:12px;
}


.zenhire-no-jobs {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 20px;
    color: black;
    font-weight: 700;
}

.zenhire-error {
    padding: 20px;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 6px;
    color: #c62828;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zenhire-job-card {
        padding: 16px;
    }
    
    .zenhire-job-title {
        font-size: 1.25rem;
    }
    
    .zenhire-job-meta {
        gap: 8px;
    }
    
    .zenhire-job-meta span {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .zenhire-apply-button {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .zenhire-job-card-link {
        margin-bottom: 16px;
    }
}

/* Loading State */
.zenhire-loading {
    text-align: center;
    padding: 40px;
}

.zenhire-loading:after {
    content: "Loading jobs...";
    font-size: 16px;
    color: #666;
}

/* Address Links Styles */
.zenhire-address-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
}

.zenhire-address-links .address-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.zenhire-address-links .address-link:hover {
    background: #2196f3;
    color: #ffffff;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.zenhire-address-links .address-link:active {
    transform: translateY(0);
}

/* Responsive Address Links */
@media (max-width: 768px) {
    .zenhire-address-links {
        gap: 8px;
    }
    
    .zenhire-address-links .address-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Address Select Menu Styles */
.zenhire-select {
    display: inline-block;
    padding: 12px 40px 12px 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
}

.zenhire-select:hover {
    border-color: #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.zenhire-select:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.zenhire-select option {
    padding: 10px;
    background: #ffffff;
    color: #2c3e50;
}

.zenhire-select option[value="0"] {
    color: #888;
}

/* Responsive Select Menu */
@media (max-width: 768px) {
    .zenhire-select {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        padding: 10px 36px 10px 14px;
    }
}

/* Dynamic Jobs Wrapper */
.zenhire-dynamic-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.zenhire-dynamic-controls {
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    /* border: 2px solid #000000; */
    -webkit-box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.33);
    box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.33);
}

.zenhire-select-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.zenhire-dynamic-select {
    flex: 1;
    min-width: 250px;
}

.zenhire-dynamic-jobs-container {
    min-height: 200px;
    position: relative;
}

.zenhire-loading-spinner:after {
    content: '' !important;
}

.zenhire-loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #39CE6F;
    font-size: 16px;
    font-weight: 500;
}

.zenhire-loading-spinner:before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e3f2fd;
    border-top-color: #39CE6F;
    border-radius: 50%;
    animation: zenhire-spin 0.8s linear infinite;
    margin-bottom: 25px;
    vertical-align: middle;
}

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

.zenhire-loading-spinner {
    color: transparent;  /* Hides the text */
    margin-left:50px;
}

.zenhire-dynamic-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Dynamic Controls */
@media (max-width: 768px) {
    .zenhire-dynamic-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .zenhire-select-label {
        font-size: 15px;
    }
    
    .zenhire-dynamic-select {
        width: 100%;
        min-width: auto;
    }
}