/* Professional Job Bank Board Styles */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Job Results Container */
.professional-job-results {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 400px;
}

/* Professional Job Card */
.professional-job-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.professional-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #2c5aa0;
}

.professional-job-card.selected {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
    border-color: #2c5aa0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

/* Deadline states */
.professional-job-card.urgent {
    border-left: 5px solid #dc3545;
}

.professional-job-card.tomorrow {
    border-left: 5px solid #fd7e14;
}

.professional-job-card.soon {
    border-left: 5px solid #ffc107;
}

.professional-job-card.expired {
    opacity: 0.7;
    border-left: 5px solid #6c757d;
}

/* Job Card Header */
.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-selection {
    flex-shrink: 0;
}

.job-checkbox {
    display: none;
}

.checkbox-label {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.job-checkbox:checked + .checkbox-label {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

.job-checkbox:checked + .checkbox-label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.job-main-info {
    flex: 1;
}

.job-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.job-company-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Provider Badges */
.provider-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.provider-badge.upgraded {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.provider-badge.nikita {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.provider-badge.verama {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.provider-badge.wetal {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.provider-badge.magnit {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* Deadline Indicator */
.deadline-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.deadline-indicator.urgent {
    background: #dc3545;
    color: white;
}

.deadline-indicator.tomorrow {
    background: #fd7e14;
    color: white;
}

.deadline-indicator.soon {
    background: #ffc107;
    color: #212529;
}

.deadline-indicator.expired {
    background: #6c757d;
    color: white;
}

/* Job Metadata */
.job-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.meta-item i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.meta-item.deadline {
    color: #dc3545;
    font-weight: 600;
}

.meta-item.deadline i {
    color: #dc3545;
}

/* Job Description */
.job-description {
    margin-bottom: 1rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Job Actions */
.job-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-view-job,
.btn-quick-match,
.btn-apply {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-view-job {
    background: #e9ecef;
    color: #495057;
}

.btn-view-job:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

.btn-quick-match {
    background: #ffc107;
    color: #212529;
}

.btn-quick-match:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-apply {
    background: #28a745;
    color: white;
    margin-left: auto;
}

.btn-apply:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

/* Job Details Modal */
.job-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #212529;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #212529;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.job-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.meta-card i {
    font-size: 1.5rem;
    color: #6c757d;
    flex-shrink: 0;
}

.meta-card strong {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.meta-card p {
    margin: 0;
    color: #212529;
    font-weight: 500;
}

.job-content h3 {
    margin: 0 0 1rem 0;
    color: #212529;
}

.content-text {
    color: #495057;
    line-height: 1.7;
}

.content-text p {
    margin: 0 0 1rem 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Quick Feedback */
.quick-feedback {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}

.quick-feedback.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .job-card-header {
        flex-wrap: wrap;
    }
    
    .deadline-indicator {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .job-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-actions {
        flex-wrap: wrap;
    }
    
    .btn-apply {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}