/*
 * Share buttons — views/partials/share-buttons.php (+ assets/js/share-buttons.js).
 * Themable per page through the --share-* custom properties.
 */
.fog-share {
    --share-ink: #082a47;
    --share-line: #d8d1c4;
    --share-bg: #fff;
    --share-radius: 0;
    --share-ok: #25744f;
    color: var(--share-ink);
}
.fog-share__heading {
    margin: 0 0 10px;
    color: var(--share-ink);
    font-size: .8rem;
    font-weight: 700;
}
.fog-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fog-share__list > li { margin: 0; list-style: none; }
.fog-share__list > li[hidden] { display: none; }

.fog-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--share-line);
    border-radius: var(--share-radius);
    background: var(--share-bg);
    color: var(--share-ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}
.fog-share__btn .fog-i { flex: none; width: 18px; height: 18px; }
.fog-share__btn:hover { transform: translateY(-1px); text-decoration: none; }
.fog-share__btn:focus-visible { outline: 3px solid #d2ae6d; outline-offset: 2px; }

/* Brand hints on hover/focus (text stays dark enough for contrast). */
.fog-share__btn--whatsapp:hover, .fog-share__btn--whatsapp:focus-visible { border-color: #25d366; background: #eefcf3; color: #0b6b3a; }
.fog-share__btn--facebook:hover, .fog-share__btn--facebook:focus-visible { border-color: #1877f2; background: #eef4ff; color: #0b4fb3; }
.fog-share__btn--x:hover, .fog-share__btn--x:focus-visible { border-color: #111; background: #f3f3f3; color: #111; }
.fog-share__btn--linkedin:hover, .fog-share__btn--linkedin:focus-visible { border-color: #0a66c2; background: #eef5fc; color: #084e96; }
.fog-share__btn--telegram:hover, .fog-share__btn--telegram:focus-visible { border-color: #229ed9; background: #edf8fd; color: #0f6f9c; }
.fog-share__btn--email:hover, .fog-share__btn--email:focus-visible,
.fog-share__btn--copy:hover, .fog-share__btn--copy:focus-visible,
.fog-share__btn--more:hover, .fog-share__btn--more:focus-visible { border-color: #d2ae6d; background: #fdf8f0; color: #6b4f16; }
.fog-share__btn.is-copied { border-color: var(--share-ok); background: #eef8f2; color: var(--share-ok); }

.fog-share__status {
    min-height: 1.25em;
    margin: 8px 0 0;
    color: var(--share-ok);
    font-size: .8rem;
    font-weight: 600;
}
.fog-share__status:empty { margin: 0; min-height: 0; }
.fog-share__status.is-error { color: #b42318; }

.fog-share__sr,
.fog-share--compact .fog-share__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Compact: a row of round icon buttons (accessible names stay available). */
.fog-share--compact .fog-share__list { gap: 6px; }
.fog-share--compact .fog-share__btn {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}
.fog-share--compact .fog-share__btn .fog-i { width: 17px; height: 17px; }

@media (max-width: 560px) {
    .fog-share--full .fog-share__list { display: grid; grid-template-columns: 1fr 1fr; }
    .fog-share--full .fog-share__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .fog-share__btn { transition: none; }
    .fog-share__btn:hover { transform: none; }
}
