/* Стили поиска */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 23, 29, 0.9);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: #F6F9FA;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    background: #FFFFFF;
}

.search-input {
    flex: 1;
    font-family: Hero_regular;
    font-size: 18px;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #12171D;
}

.search-input::placeholder {
    color: #595D5E;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #595D5E;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.search-results-container {
    max-height: 60vh;
    overflow-y: auto;
}

.search-results {
    padding: 20px;
}

/* Загрузка поиска */
.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E0E0E0;
    border-top: 3px solid #595D5E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    font-family: Hero_regular;
    color: #595D5E;
    font-size: 16px;
}

/* Результаты поиска */
.search-results-header {
    font-family: Hero_regular;
    font-size: 14px;
    color: #595D5E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
}

.search-result-item {
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(116, 128, 127, 0.1);
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-family: Hero_regular;
    font-size: 16px;
    color: #12171D;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.search-result-title:hover {
    color: #595D5E;
}

.search-result-description {
    font-family: Hero_light;
    font-size: 14px;
    color: #595D5E;
    margin-bottom: 8px;
}

.search-result-match {
    font-family: Hero_light;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.search-result-match mark {
    background: #FFE066;
    color: #12171D;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Отсутствие результатов */
.search-no-results, .search-error {
    text-align: center;
    padding: 40px 20px;
}

.search-no-results p, .search-error p {
    font-family: Hero_regular;
    color: #595D5E;
    margin-bottom: 10px;
}

/* Мобильные стили для поиска */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 5vh;
    }
    
    .search-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 10px 0;
    }
} 
