 /* Контейнер умного поиска */
.smart-search {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Поле ввода */
.smart-search__input {
    width: 100%;
    padding: .58rem 1rem;
    padding-right:2rem;
    border:1px solid transparent;
    border-left: 1px solid var(--color-brand-light);
    border-right: 1px solid var(--color-brand-light);
    font-size:inherit;
}

/* .smart-search__input:focus{
    background:var(--color-white);
    color:var(--color-brand);
} */

.smart-search__input::placeholder {
  color: var(--color-white);
  opacity: .9;
  font-size:inherit;
}
.smart-search__input:focus {
    border: 1px solid var(--color-white);
}

.smart-search__button{position:absolute; top:0; bottom:0; margin:auto; right:0; padding:.5rem .75rem; display:inline-flex; align-items: center;}
.smart-search__button svg{width:1.25rem; height:1.25rem;}
.smart-search__button:hover{color:var(--color-bg-accent-light)}

/* Выпадающий блок */
.smart-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    background:var(--color-white);
    color:var(--color-brand);
}

.smart-search__results.is-show{
    display: block;
}

.smart-search__empty{padding:1rem;}

.result-item{  line-height:1.2;}
.result-item__link, .no-results{display:flex; padding:.5rem 1rem;}
.result-item__link:hover{background:var(--color-gray-opacity); }
.result-item small{opacity: .5; margin-left:.5rem; display:inline-block;}

/* Секции внутри выпадающего блока */
.smart-section {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.smart-section:last-child {
    border-bottom: none;
}

.smart-section strong {
    display: block;
    padding: 0 15px 8px 15px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Пункты результатов */
.smart-item {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.smart-item:hover {
    background: #f5f5f5;
}

.smart-item.project {
    border-left: 3px solid #4CAF50;
}

.smart-item.album {
    border-left: 3px solid #2196F3;
}

/* Заголовок проекта */
.smart-item-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.smart-item-type {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

/* Подсказки из истории */
.smart-hint {
    padding: 8px 15px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smart-hint:hover {
    background: #f5f5f5;
}

.smart-hint-query {
    font-weight: 500;
}

.smart-hint-count {
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 12px;
}

/* Сообщение "ничего не найдено" */
.smart-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 47em) {
    .smart-search {
        width: 100%;
    }

    .smart-search__results {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: 60vh;
    }
}