/**
 * Стили блока "Свежие вакансии" (развернутый вид)
 * Файл: /local/templates/opk/include_areas/main_vacancies_extended.css
 */

/* Vacancies Extended Block */
.main-vacancies-extended {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Title */
.vacancies-extended-title {
    color: #02254E;
    font-size: 36px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 30px 0;
    word-wrap: break-word;
}

/* Grid */
.vacancies-extended-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Vacancy Card */
.vacancy-extended-card {
    width: 610px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.vacancy-extended-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Header */
.vacancy-extended-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.vacancy-extended-name {
    color: #02254E;
    font-size: 18px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    word-wrap: break-word;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vacancy-extended-name:hover {
    color: #E32125;
}

.vacancy-extended-salary {
    padding: 6px 10px;
    background: #034B9E;
    border-radius: 90px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
    display: inline-block;
}

/* Description */
.vacancy-extended-description {
    color: rgba(2, 37, 78, 0.40);
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    word-wrap: break-word;

    /* Ограничение в 3 строки */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.vacancy-extended-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Company */
.vacancy-extended-company {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.vacancy-extended-company:hover {
    opacity: 0.8;
}

.company-logo-extended {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.company-logo-extended-placeholder {
    width: 40px;
    height: 40px;
    background: #D9D9D9;
    border-radius: 9999px;
    flex-shrink: 0;
}

.company-name-extended {
    color: #02254E;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    word-wrap: break-word;
}

/* Button Response */
.btn-response {
    width: 137px;
    height: 48px;
    padding: 10px 24px;
    border-radius: 900px;
    border: 1px solid rgba(227, 33, 37, 0.60);
    background: transparent;
    color: rgba(227, 33, 37, 0.60);
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-response:hover {
    background: #E32125;
    border-color: #E32125;
    color: #FFFFFF;
}

/* Modal */
.response-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.response-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.response-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    z-index: 1;
}

.response-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.response-modal-close:hover {
    color: #333;
}

.response-modal-title {
    color: #02254E;
    font-size: 20px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.response-modal-vacancy {
    color: rgba(2, 37, 78, 0.60);
    font-size: 15px;
    margin: 0 0 20px 0;
}

.response-form .form-group {
    margin-bottom: 20px;
}

.response-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.response-form .form-textarea,
.response-form .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.response-form .form-textarea:focus,
.response-form .form-select:focus {
    outline: none;
    border-color: #02254E;
    box-shadow: 0 0 0 3px rgba(2, 37, 78, 0.1);
}

.response-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.response-form-actions .btn {
    padding: 12px 24px;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-form-actions .btn-secondary {
    background: #F5F7FA;
    border: 1px solid #D1D5DB;
    color: #333;
}

.response-form-actions .btn-secondary:hover {
    background: #EBEEF2;
}

.response-form-actions .btn-primary {
    background: #E32125;
    border: 1px solid #E32125;
    color: #FFFFFF;
}

.response-form-actions .btn-primary:hover {
    background: #C41D20;
}

/* Responsive */
@media (max-width: 1280px) {
    .vacancy-extended-card {
        width: calc(50% - 10px);
        min-width: 400px;
    }
}

@media (max-width: 1024px) {
    .vacancy-extended-card {
        width: 100%;
        min-width: 100%;
    }

    .vacancies-extended-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-vacancies-extended {
        margin-top: 30px;
    }

    .vacancy-extended-card {
        padding: 20px;
        gap: 16px;
        border-radius: 16px;
    }

    .vacancy-extended-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-response {
        width: 100%;
    }

    .response-modal-content {
        margin: 20px;
        padding: 20px;
    }

    .response-form-actions {
        flex-direction: column;
    }

    .response-form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vacancy-extended-name {
        font-size: 16px;
    }

    .vacancy-extended-description {
        font-size: 14px;
    }

    .vacancies-extended-title {
        font-size: 24px;
    }
}