/**
 * Share Bee Public Stylesheet
 *
 * Lightweight, zero-dependency styling for inline and floating social sharing buttons.
 *
 * @package Share_Bee
 * @since 1.0.0
 */

/* Inline Sharing Wrapper */
.share-bee-align-left { justify-content: flex-start; }
.share-bee-align-center { justify-content: center; }
.share-bee-align-right { justify-content: flex-end; }
.share-bee-align-justify { justify-content: space-between; }

.share-bee-inline-wrapper {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.share-bee-container,
.share-bee-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
    width: 100%;
}

/* =========================================================
 * INLINE TOOLBAR: CENTERING AND FIXED-FOOTER CLEARANCE
 *
 * WordPress 7.1 block themes and some third-party themes use a
 * fixed footer. The extra bottom space keeps the GEO/AI row visible
 * instead of allowing the footer to cover it.
 * ========================================================= */
.share-bee-inline-container {
    align-items: center;
    box-sizing: border-box;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    overflow: visible;
    padding: 12px 0 80px;
    position: relative;
    text-align: center;
    z-index: 2;
}

.share-bee-inline-container .share-bee-section {
    align-items: center;
    overflow: visible;
}

.share-bee-inline-container .share-bee-buttons-row {
    justify-content: center;
    overflow: visible;
    width: 100%;
}

.share-bee-inline-container .share-bee-label {
    text-align: center;
}

.share-bee-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.share-bee-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.share-bee-label {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 6px;
    width: 100%;
}

/* Individual Share Button */
.share-bee-btn,
.share-bee-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #fff !important;
    background-color: #2271b1;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

/* Keep native button elements visible across WordPress 7.1 themes. */
.share-bee-container button.share-bee-button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    float: none;
    height: auto;
    margin: 0;
    max-width: none;
    min-height: 32px;
    opacity: 1;
    position: relative;
    visibility: visible;
    width: auto;
    z-index: 3;
}

.share-bee-btn:hover,
.share-bee-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
}

.share-bee-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-bee-icon svg {
    width: 16px;
    height: 16px;
}

/* Traditional Social Brand Colors */
.share-bee-whatsapp, .share-bee-button.whatsapp { background-color: #25d366; color: #fff !important; }
.share-bee-facebook, .share-bee-button.facebook { background-color: #1877f2; color: #fff !important; }
.share-bee-twitter, .share-bee-button.twitter { background-color: #000000; color: #fff !important; }
.share-bee-linkedin, .share-bee-button.linkedin { background-color: #0a66c2; color: #fff !important; }
.share-bee-pinterest, .share-bee-button.pinterest { background-color: #e60023; color: #fff !important; }

.share-bee-copy, .share-bee-button.copy {
    background-color: #f6f7f7;
    color: #2c3338 !important;
    border: 1px solid #dcdcde;
}
.share-bee-copy:hover, .share-bee-button.copy:hover {
    background-color: #f0f0f1;
    color: #1d2327 !important;
}

/* AI Sharing Brand Colors */
.share-bee-button.chatgpt, .share-bee-chatgpt { background-color: #10a37f; color: #fff !important; }
.share-bee-button.gemini, .share-bee-gemini { background-color: #1a73e8; color: #fff !important; }
.share-bee-button.claude, .share-bee-claude { background-color: #d97706; color: #fff !important; }
.share-bee-button.perplexity, .share-bee-perplexity { background-color: #20b8cd; color: #fff !important; }
.share-bee-button.grok, .share-bee-grok { background-color: #14171a; color: #fff !important; border: 1px solid #38444d; }
.share-bee-button.copilot { background-color: #2563eb; color: #fff !important; }

/* Floating Layout Wrapper */
.share-bee-floating-wrapper {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-bee-floating-wrapper .share-bee-buttons-container {
    flex-direction: column;
}

.share-bee-floating-wrapper .share-bee-label {
    display: none;
}

.share-bee-floating-wrapper .share-bee-text {
    display: none;
}

.share-bee-floating-wrapper .share-bee-btn,
.share-bee-floating-wrapper .share-bee-button {
    padding: 10px;
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    .share-bee-inline-container {
        padding-bottom: 96px;
    }

    .share-bee-inline-container .share-bee-buttons-row {
        justify-content: center;
    }

    .share-bee-floating-wrapper {
        display: none; 
    }
}
