/* ── compilot Share Buttons – Front styles v1.4.0 ─────────────────── */

.compilot-share-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5em;
    text-align: center;
}

/* ── Native share button (mobile) ───────────────────────────────────── */
.compilot-share-native-btn {
    display: none;
    align-items: center;
    gap: .4em;
    padding: .6em 1.2em;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    background-color: #0073aa;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s, transform .1s;
    margin-bottom: .8em;
}

.compilot-share-native-btn:hover {
    background-color: #005f8d;
    transform: scale(1.03);
}

/* ── Icon buttons container ─────────────────────────────────────────── */
.compilot-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75em;
    margin-top: .25em;
}

.compilot-socials a:link,
.compilot-socials a:visited,
.compilot-socials a:active {
    color: var(--metadata-color, #646970);
}

.compilot-socials a:hover {
    color: var(--link-color-visited, #0073aa);
}

.compilot-socials button {
    padding: 0;
    background: transparent;
}

/* ── Individual icon button ─────────────────────────────────────────── */
.compilot-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: var(--accent-background-color, #f0f0f1);
    color: var(--metadata-color, #646970);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .18s ease-in-out, background-color .18s ease-in-out, transform .18s ease-in-out;
    text-decoration: none;
}

.compilot-icon-btn:hover {
    color: var(--link-color-visited, #0073aa);
    background-color: var(--accent-background-color, #f0f0f1);
    transform: scale(1.08);
}

/* ── SVG sizing ─────────────────────────────────────────────────────── */
.compilot-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    pointer-events: none;
}

/* ── Copy feedback ──────────────────────────────────────────────────── */
.compilot-icon-btn.compilot-copied {
    background-color: #4caf50 !important;
    color: #fff !important;
    transform: scale(1.15) !important;
    transition: background-color .25s, transform .25s;
}

.compilot-icon-btn.compilot-copied svg {
    fill: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .compilot-share-container {
        margin-top: 1em;
    }
}
