/* =========================================================================
   Файл: /_assets/_css/modules/search.css
   Описание: Стили страницы каталога поиска (/search), кнопки симпатии и Match-окна
   ========================================================================= */

.search-page [hidden] {
    display: none !important;
}

.search-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.search-meta-count {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.search-meta-count b {
    color: var(--text-primary);
    font-weight: 800;
}

/* Кнопка быстрой симпатии (♥) поверх фото карточки */
.card-like-fab {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.card-like-fab:hover {
    transform: scale(1.08);
    border-color: var(--accent);
    color: var(--accent);
}

.card-like-fab:active {
    transform: scale(0.93);
}

.card-like-fab.is-liked {
    background: var(--accent-grad);
    border-color: transparent;
    color: var(--bg-main);
    box-shadow: var(--accent-glow);
}

/* Скелетон загрузки сетки */
.cards-grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

/* Пустое состояние (заглушка) */
.search-empty-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 44px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.search-empty-ico {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-empty-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-primary);
}

.search-empty-text {
    margin: 0 0 6px;
    max-width: 440px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Модалка взаимной симпатии (Match) */
.search-match-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 6px 4px;
}

.search-match-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
}

.search-match-av {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-elevated);
    box-shadow: var(--card-shadow);
}

.search-match-av:first-child {
    margin-right: -12px;
}

.search-match-av:last-child {
    margin-left: -12px;
}

.search-match-heart {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}
