/* ==============================================
   Кнопка закладки
   ============================================== */
.wp-bookmark-button {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* расстояние между иконкой и цифрой */
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgb(87, 87, 87);
    transition: color 0.3s;
}

.wp-bookmark-button svg {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.2s, fill 0.3s !important;
    fill: rgb(87, 87, 87) !important; /* серый по умолчанию */
}

/* Активная закладка */
.wp-bookmark-button.active {
    color: #0b5dd7 !important;
}

.wp-bookmark-button.active svg {
    fill: #0b5dd7 !important; /* принудительная заливка */
    transform: scale(1.1);
}

/* Hover для авторизованных */
.wp-bookmark-button:not(.disabled):hover svg {
    transform: scale(1.05);
}

/* Click */
.wp-bookmark-button:not(.disabled):active svg {
    transform: scale(0.95);
}

/* Гости */
.wp-bookmark-button.disabled {
    cursor: default;
    opacity: 0.6;
}

/* Счетчик */
.wp-bookmark-count {
    transition: color 0.3s;
}

.wp-bookmark-button.active .wp-bookmark-count {
    color: #0b5dd7 !important;
}

/* ==============================================
   Список закладок
   ============================================== */
.wp-bookmark-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-bookmark-item {
    display: flex;
    align-items: flex-start;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    transition: background-color 0.3s, transform 0.2s;
}

.wp-bookmark-item:hover {
    background-color: #e0f0ff;
    transform: translateY(-2px);
}

.wp-bookmark-thumb {
    border-radius: 10px;
    object-fit: cover;
}

.wp-bookmark-info {
    margin-left: 10px;
    flex: 1;
}

.wp-bookmark-title {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #0b5dd7;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.wp-bookmark-title:hover {
    text-decoration: underline;
}

.wp-bookmark-excerpt {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.wp-bookmark-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    color: red;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.wp-bookmark-remove:hover {
    transform: scale(1.2);
}