/* Enfection Vacancies - Frontend Styles */

/* Container */
.enfection-vacancies-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    
}

.enfection-vacancies-title {
    font-size: 45px;
    font-weight: 700;
    color: #ee6325;
    padding: 0 10px 50px 10px;
    text-align: center;
}

/* Grid Layout */
.enfection-vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Vacancy Card */
.vacancy-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vacancy-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #ee6325;
}

/* Card Header */
.vacancy-card-header {
    margin-bottom: 16px;
}

.vacancy-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #111827;
}

.vacancy-type {
    display: inline-block;
    background: #f5d9cc;
    color: #ee6325;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Location */
.vacancy-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ee6325;
    font-size: 14px;
    margin-bottom: 16px;
}

.location-icon {
    flex-shrink: 0;
    color: #ee6325;
}

/* Description */
.vacancy-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Actions */
.vacancy-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.vacancy-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vacancy-btn-apply {
    background: #ee6325;
    color: #ffffff;
}

.vacancy-btn-apply:hover {
    background: #ffffff;
    border: #ee6325 2px solid;
    color: #ee6325;
    transform: scale(1.02);
}

.vacancy-btn-view {
    background: #ffffff;
    color: #ee6325;
    border: 2px solid #ee6325;
}

.vacancy-btn-view:hover {
    background: #fff8f5;
}

/* Empty State */
.enfection-vacancies-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.enfection-vacancies-empty p {
    font-size: 16px;
    margin: 0;
}

/* Modal */
.vacancy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vacancy-modal.active {
    display: block;
}

.vacancy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.vacancy-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vacancy-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    z-index: 10;
}

.vacancy-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.vacancy-modal-body {
    padding: 40px;
}

/* Modal Content Styling */
.vacancy-modal-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f5d9cc;
}

.vacancy-modal-title {
    line-height: 1.3;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    padding-right: 40px;
}

.vacancy-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.vacancy-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 15px;
}

.vacancy-modal-type {
    display: inline-block;
    background: #f5d9cc;
    color: #ee6325;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.vacancy-modal-section {
    margin-bottom: 32px;
}

.vacancy-modal-section:last-child {
    margin-bottom: 0;
}

.vacancy-modal-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.vacancy-modal-section p,
.vacancy-modal-section ul,
.vacancy-modal-section ol {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.vacancy-modal-section ul,
.vacancy-modal-section ol {
    margin: 12px 0;
    padding-left: 24px;
}

.vacancy-modal-section li {
    margin-bottom: 8px;
}

.vacancy-modal-apply {
    text-align: center;
    padding-top: 24px;
    border-top: 2px solid #f5d9cc;
}

.vacancy-modal-apply-btn {
    display: inline-block;
    background: #ee6325;
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.vacancy-modal-apply-btn:hover {
    background: #ffffff;
    color: #ee6325 !important;
    border: #ee6325 2px solid;
    transform: scale(1.05);
}

/* Loading State */
.vacancy-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .enfection-vacancies-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vacancy-card {
        padding: 20px;
    }
    
    .vacancy-title {
        font-size: 18px;
    }
    
    .vacancy-actions {
        flex-direction: column;
    }
    
    .vacancy-btn {
        width: 100%;
    }
    
    .vacancy-modal-content {
        width: 95%;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    .vacancy-modal-body {
        padding: 24px 20px;
    }
    
    .vacancy-modal-title {
        font-size: 22px;
        padding-right: 30px;
    }
    
    .vacancy-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .vacancy-modal-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .enfection-vacancies-container {
        padding: 12px;
    }
    
    .vacancy-modal-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .vacancy-modal-section {
        margin-bottom: 24px;
    }
}

/* Print Styles */
@media print {
    .vacancy-modal-overlay,
    .vacancy-modal-close,
    .vacancy-modal-apply {
        display: none;
    }
    
    .vacancy-modal-content {
        box-shadow: none;
        margin: 0;
        width: 100%;
    }
}
