/* AH Social Share Buttons — front-end styles
   Scoped under .ahss-share-bar to avoid leaking into theme styles.
   Uses !important sparingly where themes are known to override link/button defaults. */

.ahss-share-bar {
    margin: 40px 0 20px 0;
    padding-top: 24px;
    border-top: 1px solid #e2e2e2;
    clear: both;
}

.ahss-share-bar .ahss-heading {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px 0 !important;
    color: #333;
    letter-spacing: 0.01em;
}

.ahss-share-bar .ahss-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ahss-align-center.ahss-share-bar .ahss-buttons {
    justify-content: center;
}

.ahss-align-left.ahss-share-bar .ahss-buttons {
    justify-content: flex-start;
}

.ahss-align-center.ahss-share-bar .ahss-heading {
    text-align: center;
}

/* Base button */
.ahss-share-bar a.ahss-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.15s ease, transform 0.1s ease;
    box-shadow: none !important;
}

.ahss-share-bar a.ahss-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.ahss-share-bar a.ahss-btn:visited {
    color: #fff !important;
}

/* Sizes */
.ahss-size-small .ahss-btn {
    padding: 6px 10px;
    font-size: 12px;
}
.ahss-size-small .ahss-icon svg {
    width: 14px;
    height: 14px;
}

.ahss-size-medium .ahss-btn {
    padding: 9px 14px;
    font-size: 13px;
}
.ahss-size-medium .ahss-icon svg {
    width: 18px;
    height: 18px;
}

.ahss-size-large .ahss-btn {
    padding: 12px 18px;
    font-size: 15px;
}
.ahss-size-large .ahss-icon svg {
    width: 22px;
    height: 22px;
}

/* Icon-only mode: make it a circle/square with no label */
.ahss-icons-only .ahss-btn {
    padding: 10px !important;
    border-radius: 50%;
}
.ahss-icons-only.ahss-size-small .ahss-btn { padding: 8px !important; }
.ahss-icons-only.ahss-size-large .ahss-btn { padding: 13px !important; }
.ahss-icons-only .ahss-label {
    display: none;
}

/* Shape styles */
.ahss-style-rounded .ahss-btn {
    border-radius: 6px;
}
.ahss-style-square .ahss-btn {
    border-radius: 0;
}
.ahss-style-minimal .ahss-btn {
    background: transparent !important;
    border: 1px solid currentColor;
}

/* Brand colours (solid background for rounded/square; text colour for minimal) */
.ahss-btn-facebook  { background: #1877F2; color: #fff !important; }
.ahss-btn-x         { background: #000000; color: #fff !important; }
.ahss-btn-linkedin  { background: #0A66C2; color: #fff !important; }
.ahss-btn-mastodon  { background: #6364FF; color: #fff !important; }
.ahss-btn-reddit    { background: #FF4500; color: #fff !important; }
.ahss-btn-whatsapp  { background: #25D366; color: #fff !important; }
.ahss-btn-pinterest { background: #E60023; color: #fff !important; }
.ahss-btn-email     { background: #555555; color: #fff !important; }

.ahss-style-minimal .ahss-btn-facebook  { color: #1877F2 !important; }
.ahss-style-minimal .ahss-btn-x         { color: #000000 !important; }
.ahss-style-minimal .ahss-btn-linkedin  { color: #0A66C2 !important; }
.ahss-style-minimal .ahss-btn-mastodon  { color: #6364FF !important; }
.ahss-style-minimal .ahss-btn-reddit    { color: #FF4500 !important; }
.ahss-style-minimal .ahss-btn-whatsapp  { color: #25D366 !important; }
.ahss-style-minimal .ahss-btn-pinterest { color: #E60023 !important; }
.ahss-style-minimal .ahss-btn-email     { color: #555555 !important; }

.ahss-icon {
    display: inline-flex;
    align-items: center;
}

.ahss-icon svg {
    display: block;
}

/* Small screens: let buttons wrap and shrink padding slightly */
@media (max-width: 480px) {
    .ahss-share-bar:not(.ahss-floating) .ahss-buttons {
        gap: 8px;
    }
    .ahss-share-bar:not(.ahss-floating) a.ahss-btn {
        font-size: 12px;
        padding: 8px 11px;
    }
}

/* ===========================================
   Floating bottom bar variant
   =========================================== */

.ahss-share-bar.ahss-floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    margin: 0;
    padding: 10px 16px;
    border-top: 1px solid #e2e2e2;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.ahss-share-bar.ahss-floating .ahss-buttons {
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
}

.ahss-floating-heading {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-right: 6px;
    white-space: nowrap;
}

.ahss-share-bar.ahss-floating .ahss-dismiss {
    margin-left: 4px;
    background: transparent !important;
    border: none;
    color: #888;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px !important;
    border-radius: 4px;
}

.ahss-share-bar.ahss-floating .ahss-dismiss:hover {
    color: #333;
    background: #f0f0f0 !important;
}

/* On small screens, hide labels automatically in the floating bar to save space,
   even if "show labels" is on for the in-content bar; icons-only fits better. */
@media (max-width: 600px) {
    .ahss-share-bar.ahss-floating .ahss-label {
        display: none;
    }
    .ahss-share-bar.ahss-floating a.ahss-btn {
        padding: 9px 11px !important;
    }
    .ahss-floating-heading {
        display: none;
    }
}

/* Leave room at the bottom of the page so the fixed bar doesn't cover the
   site footer content when display_mode = floating or both. */
body.ahss-has-floating-bar {
    padding-bottom: 64px;
}

@media (max-width: 600px) {
    body.ahss-has-floating-bar {
        padding-bottom: 56px;
    }
}
