/* =========================================================================
   GW Favorites — お気に入りボタン & 一覧
   ========================================================================= */

/* ── タイトル横ハート ── */
.gw-fav-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 0 2px 8px;
    vertical-align: middle;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.gw-fav-heart:hover {
    transform: scale(1.2);
}

/* ── SVG ハート共通 ── */
.gw-fav-svg {
    fill: none;
    stroke: #ccc;
    stroke-width: 1.5;
    transition: fill 0.25s, stroke 0.25s;
}
.gw-fav-btn:hover .gw-fav-svg {
    stroke: #e74c6f;
}
.gw-fav-active .gw-fav-svg {
    fill: #e74c6f;
    stroke: #e74c6f;
}

/* ── ハートアニメーション ── */
@keyframes gw-fav-pop {
    0%   { transform: scale(1);   }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1);   }
}
.gw-fav-animate .gw-fav-svg {
    animation: gw-fav-pop 0.35s ease-out;
}

/* ── 記事末尾ボタン ── */
.gw-fav-bottom {
    margin-top: 48px !important;
    margin-bottom: 16px;
    text-align: center;
}
.gw-fav-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.gw-fav-bottom-btn:hover {
    border-color: #e74c6f;
    color: #e74c6f;
}
.gw-fav-bottom-btn.gw-fav-active {
    border-color: #e74c6f;
    color: #e74c6f;
    background: #fef1f4;
}

/* ── お気に入り一覧 ── */
.gw-fav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gw-fav-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.gw-fav-list-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-color: #ddd;
}
.gw-fav-list-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.gw-fav-list-thumb--empty {
    background: linear-gradient(135deg, #e8f5f1, #d1ede6);
}
.gw-fav-list-body {
    flex: 1;
    min-width: 0;
}
.gw-fav-list-cat {
    display: inline-block;
    font-size: 11px;
    color: #076951;
    font-weight: 600;
    margin-bottom: 2px;
}
.gw-fav-list-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gw-fav-list-date {
    font-size: 11px;
    color: #999;
}
.gw-fav-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.gw-fav-remove:hover {
    transform: scale(1.2);
}

/* ── 空状態 ── */
.gw-fav-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.gw-fav-list-empty a {
    color: #076951;
    font-weight: 600;
    text-decoration: none;
}
.gw-fav-list-empty a:hover {
    text-decoration: underline;
}

/* ── レスポンシブ ── */
@media (max-width: 480px) {
    .gw-fav-list-thumb {
        width: 56px;
        height: 56px;
    }
    .gw-fav-list-title {
        font-size: 13px;
    }
    .gw-fav-bottom-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}
