/**
 * Post footer: patterns/post-footer.php, the content of the GP hook element
 * "Single post: footer" (generate_before_footer, display rule post:post).
 *
 * Structure:
 *   .post-footer-section.color-section > inner
 *     .post-footer                     centered, --article-width
 *       .post-footer-meta              tags left, share right
 *         p.post-tags > a.post-tag     [applari_post_tags]
 *         .post-share                  [applari_share]: label + .social-icons--plain
 *                                      (Facebook, X, LinkedIn, WhatsApp, email,
 *                                      copy link button; article-share.js)
 *   then the post-list section "Lue myös" (same category, current post
 *   excluded; see applari_article_related_query) and the newsletter form-lift.
 */

.gb-container.color-section.post-footer-section {
    padding-top: 0;
}

.post-footer {
    max-width: var(--article-width);
    margin: 0 auto;
}

.post-footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 32px;
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: color-mix(in srgb, currentColor 7%, transparent);
    font-size: 0.8125rem;
    color: inherit;
    text-decoration: none;
    transition: background-color var(--transition-speed) var(--transition-timing-function);
}

.post-tag:hover {
    background-color: color-mix(in srgb, var(--accent-clr) 15%, transparent);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-share-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.post-share button.gb-button {
    position: relative;
    border: 0;
    cursor: pointer;
    font-family: inherit; /* not the font shorthand: the icon size comes from social-icons.css */
}

/* "Kopioitu" after the copy button */
.post-share button[data-copied]::after {
    content: attr(data-copied);
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: var(--font-clr);
    color: var(--bg-clr);
    font-size: 0.75rem;
    white-space: nowrap;
}
