/* Стилі для модального вікна спеціаліста - скопійовано з specialists.html */

.specialist-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.specialist-info-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.specialist-info-modal.closing {
    opacity: 0;
    pointer-events: none;
}

.specialist-info-modal-content {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.specialist-info-modal.show .specialist-info-modal-content {
    transform: scale(1);
}

.specialist-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.specialist-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: rotate(90deg);
}

.specialist-info-modal-content .specialist-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.specialist-photo-container {
    position: relative;
}

.specialist-photo-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
}

.specialist-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-title-section {
    flex: 1;
}

.specialist-title-section h2 {
    margin: 0 0 8px 0;
    color: #ecf0f1;
    font-size: 28px;
    font-weight: 700;
}

.specialist-occupation-large {
    font-size: 18px;
    color: #3498db;
    margin-bottom: 8px;
    font-weight: 500;
}

.specialist-location-large {
    color: #bdc3c7;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specialist-location-large i {
    color: #3498db;
}

.specialist-content {
    padding: 30px;
}

.specialist-section {
    margin-bottom: 30px;
}

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

.specialist-section h3 {
    margin: 0 0 15px 0;
    color: #ecf0f1;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialist-section h3 i {
    color: #3498db;
    font-size: 18px;
}

.specialist-description-large {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* ВАЖЛИВО:
   styles.css / force-dark-cards / light-background роблять h2/span чорними
   (body[style*="f5f7fa"] h2 тощо). Темна модалка має темний фон —
   ім'я спеціаліста має залишатися світлим.
   У світлій темі модалка біла — окремі правила нижче. */
html body:not(.light-theme) .specialist-info-modal-content,
html body:not(.light-theme) .specialist-info-modal-content p,
html body:not(.light-theme) .specialist-info-modal-content span,
html body:not(.light-theme) .specialist-info-modal-content div,
html body:not(.light-theme) .specialist-info-modal-content .detail-label,
html body:not(.light-theme) .specialist-info-modal-content .detail-value,
html body:not(.light-theme) .specialist-info-modal-content .specialist-description-large,
html body:not(.light-theme) .specialist-info-modal-content h2,
html body:not(.light-theme) .specialist-info-modal-content h3,
html body:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
html body.dark-theme .specialist-info-modal-content h2,
html body.dark-theme .specialist-info-modal-content .specialist-title-section h2,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content p,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content span,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content .detail-label,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content .detail-value,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content .specialist-description-large,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content h2,
html body.force-dark-cards:not(.light-theme) .specialist-info-modal-content h3,
html body.light-background-active:not(.light-theme) .specialist-info-modal-content h2,
html body.light-background-active:not(.light-theme) .specialist-info-modal-content h3,
html body[style*="f5f7fa"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="c3cfe2"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="e3ffe7"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="d9e7ff"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="ffffff"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="e2e8f0"]:not(.light-theme) .specialist-info-modal-content h2,
html body[style*="cbd5e0"]:not(.light-theme) .specialist-info-modal-content h2,
html body.dark-theme[style*="f5f7fa"] .specialist-info-modal-content h2,
html body.dark-theme[style*="c3cfe2"] .specialist-info-modal-content h2,
html body.dark-theme[style*="e3ffe7"] .specialist-info-modal-content h2,
html body.dark-theme[style*="d9e7ff"] .specialist-info-modal-content h2,
html body.dark-theme.force-dark-cards .specialist-info-modal-content h2,
html body.dark-theme.force-dark-cards .specialist-info-modal-content h3 {
    color: #ecf0f1 !important;
    -webkit-text-fill-color: #ecf0f1 !important;
}

html body:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
html body.dark-theme .specialist-info-modal-content .specialist-title-section h2,
html body.dark-theme.force-dark-cards .specialist-info-modal-content .specialist-title-section h2,
html body[style*="f5f7fa"]:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
html body[style*="ffffff"]:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
html body.light-background-active:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2 {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    text-shadow: none !important;
}

html body:not(.light-theme) .specialist-info-modal-content .specialist-occupation-large {
    color: #5dade2 !important;
    -webkit-text-fill-color: #5dade2 !important;
}

body.light-theme .specialist-modal-close {
    color: #2c3e50 !important;
    background: rgba(44, 62, 80, 0.08);
}

body.light-theme .specialist-modal-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c !important;
}

.specialist-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    color: #3498db;
}

.detail-value {
    color: #ecf0f1;
    font-size: 16px;
    font-weight: 500;
}

/* Спеціальні стилі для статусу пошуку роботи */
.detail-item .detail-value[data-status="active"] {
    color: #2ecc71;
    font-weight: 600;
}

.detail-item .detail-value[data-status="passive"] {
    color: #f39c12;
    font-weight: 600;
}

.detail-item .detail-value[data-status="employed"] {
    color: #3498db;
    font-weight: 600;
}

.detail-item .detail-value[data-status="paused"] {
    color: #95a5a6;
    font-weight: 600;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag-large {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.portfolio-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    font-weight: 600;
    border-radius: 8px;
    height: 120px;
    font-size: 16px;
}

.resume-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    flex-wrap: wrap;
}

.resume-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.resume-details {
    flex: 1;
    min-width: 0;
}

.resume-filename {
    color: #ecf0f1;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.25;
}

.resume-filesize {
    color: #95a5a6;
    font-size: 0.8rem;
}

.resume-actions {
    display: flex;
    gap: 10px;
}

.view-resume-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    text-decoration: none;
}

.view-resume-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: none;
    box-shadow: none;
}

.specialist-modal-footer {
    padding: 20px 30px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.specialist-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-specialist-btn-large {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-specialist-btn-large:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Стилі для кнопки закриття */
.specialist-info-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
}

/* Адаптивність */
@media (max-width: 768px) {
    .specialist-info-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .specialist-info-modal-content .specialist-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .specialist-photo-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .specialist-title-section h2 {
        font-size: 24px;
    }

    html body:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
    html body.dark-theme .specialist-info-modal-content .specialist-title-section h2,
    html body.dark-theme.force-dark-cards .specialist-info-modal-content .specialist-title-section h2,
    html body[style*="f5f7fa"]:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
    html body[style*="ffffff"]:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2,
    html body.light-background-active:not(.light-theme) .specialist-info-modal-content .specialist-title-section h2 {
        font-size: 24px !important;
    }
    
    .specialist-occupation-large {
        font-size: 16px;
    }
    
    .specialist-location-large {
        font-size: 14px;
        justify-content: center;
    }
    
    .specialist-content {
        padding: 20px;
    }
    
    .specialist-section h3 {
        font-size: 18px;
    }
    
    .specialist-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .resume-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .specialist-modal-footer {
        padding: 15px 20px 20px 20px;
    }
    
    .contact-specialist-btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* Стилі для світлої теми */
body.light-theme .specialist-info-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
}

body.light-theme .specialist-info-modal-content .specialist-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .specialist-title-section h2 {
    color: #2c3e50;
}

body.light-theme .specialist-occupation-large {
    color: #3498db;
}

body.light-theme .specialist-location-large {
    color: #6c757d;
}

body.light-theme .specialist-section h3 {
    color: #2c3e50;
}

body.light-theme .specialist-description-large {
    color: #495057;
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid #3498db;
}

body.light-theme .detail-item {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

body.light-theme .detail-label {
    color: #6c757d;
}

body.light-theme .detail-value {
    color: #2c3e50;
}

body.light-theme .resume-section {
    background: rgba(52, 152, 219, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

body.light-theme .resume-filename {
    color: #2c3e50;
}

body.light-theme .resume-filesize {
    color: #6c757d;
}

body.light-theme .specialist-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .portfolio-item {
    background: rgba(52, 152, 219, 0.05);
} 