/* Лайки: кнопка на странице мода и вкладки "Популярного". Профиль и его настройки - profile.*.css */

:root {
    --sm-teal: #127C80;
    --sm-teal-light: #31B0B5;
    --sm-teal-soft: #E6F5F4;
    --sm-teal-border: #7FCFC5;
    --sm-text: #1F1F1F;
    --sm-text-muted: #8A8A8A;
    --sm-surface: #F7F7F7;
    --sm-like: #E5484D;
}

.popular-sorts [hidden] {
    display: none !important;
}

/* ---------- Кнопка лайка на странице мода ---------- */

.mod__buttons__flex_wrapper--with-like {
    max-width: 480px;
    justify-content: center;
    align-items: stretch;
}

.mod__like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 3px 10px;
    padding: 0 14px;
    min-height: 45px;
    border: 1px solid #E3B3B5;
    border-radius: 3px;
    background: #fff;
    color: var(--sm-like);
    font: 600 14px "Montserrat", sans-serif;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, transform .2s;
}

.mod__like-button:hover {
    background: #FDF0F0;
}

.mod__like-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.mod__like-button--active {
    background: var(--sm-like);
    border-color: var(--sm-like);
    color: #fff;
}

.mod__like-button--active:hover {
    background: #D63A3F;
}

.mod__like-button--active .mod__like-icon {
    fill: currentColor;
}

.mod__like-button--pulse {
    transform: scale(1.08);
}

/* ---------- Популярное ---------- */

.popular-sorts {
    flex: 1 0 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.popular-sorts__item {
    padding: 9px 16px;
    border: 1px solid var(--sm-teal-border);
    border-radius: 20px;
    color: var(--sm-text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .2s;
}

.popular-sorts__item:hover {
    background: var(--sm-teal-soft);
}

.popular-sorts__item--active,
.popular-sorts__item--active:hover {
    background: var(--sm-teal);
    border-color: var(--sm-teal);
    color: #fff;
}

.popular-sorts__empty {
    flex: 1 0 100%;
    margin-top: 40px;
    color: var(--sm-text-muted);
}

.mods__likes {
    color: var(--sm-like);
    font-weight: 600;
}
