/* vacancy.css - Стили для страницы вакансии */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f9fafb;
    --dark: #1f2937;
}

/* Основные стили для vacancy.php */
.vacancy-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 20px;
}

.vacancy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Карточка вакансии */
.vacancy-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.vacancy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
}

.vacancy-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.vacancy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
}

.meta-item i {
    color: rgba(255,255,255,0.8);
}

.vacancy-content {
    padding: 2rem;
}

/* Секции описания */
.description-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.job-description {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #4a5568;
}

.job-description p {
    margin-bottom: 1rem;
}

.job-description ul, .job-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.job-description li {
    margin-bottom: 0.5rem;
}

/* Боковая панель */
.sidebar-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Контакты */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: background 0.3s;
}

.contact-info .contact-item:hover {
    background: #edf2f7;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #4299e1;
    color: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details .contact-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.contact-details .contact-value {
    font-weight: 600;
    color: #2d3748;
}

.contact-details a {
    color: inherit;
    text-decoration: none;
}

.contact-details a:hover {
    color: #4299e1;
}

/* Кнопки */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-apply {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(66, 153, 225, 0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #cbd5e0;
    color: #2d3748;
    text-decoration: none;
}

/* Похожие вакансии */
.related-jobs {
    margin-top: 3rem;
}

.related-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-job-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #4299e1;
    text-decoration: none;
    color: inherit;
}

.related-job-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.related-job-meta {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-job-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Бейджи */
.hebrew-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
    font-family: 'Arial', sans-serif;
    direction: rtl;
}

.urgent-badge {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.urgent-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Защита телефона */
.phone-protected {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.phone-protected:hover {
    background: #e2e8f0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #718096;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vacancy-title {
        font-size: 1.5rem;
    }
    
    .vacancy-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-apply, .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .related-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-card {
        padding: 1rem;
    }
    
    .vacancy-content {
        padding: 1.5rem;
    }
    
    .vacancy-header {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .vacancy-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .job-description {
        font-size: 1rem;
    }
}