/*
 * Article likes
 * Copy this to the bottom of /css/global.css
 */

.article-like-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 28px;
    padding: 16px;
    border: 1px solid #1b475c;
    background: linear-gradient(
        180deg,
        rgba(14, 34, 47, 0.96),
        rgba(7, 19, 28, 0.96)
    );
}

.article-like-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--line-bright);
    border-radius: 0;
    color: var(--text-main);
    background: #0c2836;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
    transition:
        color var(--transition-speed) ease,
        background var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease,
        opacity var(--transition-speed) ease;
}

.article-like-button:hover,
.article-like-button.is-liked {
    color: #ffffff;
    background: #123f51;
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(25, 217, 255, 0.24);
}

.article-like-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.article-like-heart {
    color: #ff6f91;
    font-size: 1.25rem;
    line-height: 1;
}

.article-like-button.is-liked .article-like-heart {
    color: #ff9bb2;
    text-shadow: 0 0 10px rgba(255, 111, 145, 0.65);
}

.article-like-total,
.post-like-count {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.article-like-total strong,
.post-like-count strong {
    color: var(--accent-2);
}

.article-like-status {
    flex-basis: 100%;
    min-height: 1.2em;
    margin: 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.post-like-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}

@media (max-width: 640px) {
    .article-like-panel {
        align-items: stretch;
    }

    .article-like-button {
        justify-content: center;
        width: 100%;
    }
}
