/**
 * Social Share Block — style.css
 *
 * Layouts: horizontal | vertical | floating
 * Styles: filled | outlined | minimal | brand
 * Sizes: sm | md | lg (via CSS vars)
 * Shapes: circle | rounded | square
 *
 * @package felis-cattery
 * @since 3.6.0
 */

/* /blocks/social-share/style.css */

/* =============================================================================
   BASE
   ============================================================================= */

.boost-social-share {
    position: relative;
    padding: 2rem;
    background: var(--boost-bg);
    container-type: inline-size;
}

.boost-social-share__container {
    position: relative;
    z-index: 1;
}

.boost-social-share__title {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--boost-social-share-heading, var(--boost-heading, #0f172a));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.boost-social-share__text {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--boost-text, inherit);
}

/* Color scheme integration */
.boost-social-share .boost-section-header__badge { color: var(--boost-accent, #2563eb); }
.boost-social-share .boost-section-header__title { color: var(--boost-heading, #0f172a); }
.boost-social-share .boost-section-header__subtitle { color: var(--boost-text, inherit); }

/* =============================================================================
   BUTTONS GROUP
   ============================================================================= */

.boost-social-share__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}


/* =============================================================================
   BUTTON BASE
   ============================================================================= */

.boost-social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: var(--boost-social-share-btn-size, 44px);
    height: var(--boost-social-share-btn-size, 44px);
    padding: 0;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    line-height: 1;
    font-family: inherit;
}

.boost-social-share__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.boost-social-share__btn:active {
    transform: translateY(0);
}

/* With labels: auto width. */
.boost-social-share--with-labels .boost-social-share__btn {
    width: auto;
    padding: 0 1rem;
}

/* =============================================================================
   ICON
   ============================================================================= */

.boost-social-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.boost-social-share__icon svg {
    width: var(--boost-social-share-icon-size, 20px);
    height: var(--boost-social-share-icon-size, 20px);
}

/* =============================================================================
   LABEL
   ============================================================================= */

.boost-social-share__label {
    font-size: var(--boost-social-share-font-size, 0.85rem);
    font-weight: 500;
    white-space: nowrap;
}

/* =============================================================================
   SHAPES
   ============================================================================= */

.boost-social-share--shape-circle .boost-social-share__btn {
    border-radius: 50%;
}

.boost-social-share--shape-circle.boost-social-share--with-labels .boost-social-share__btn {
    border-radius: calc(var(--boost-social-share-btn-size, 44px) / 2);
}

.boost-social-share--shape-rounded .boost-social-share__btn {
    border-radius: 12px;
}

.boost-social-share--shape-square .boost-social-share__btn {
    border-radius: 4px;
}

/* =============================================================================
   STYLE: FILLED (default)
   ============================================================================= */

.boost-social-share--style-filled .boost-social-share__btn {
    background: var(--boost-social-share-accent, var(--boost-primary, #2563eb));
    color: #fff;
}

.boost-social-share--style-filled .boost-social-share__btn:hover {
    filter: brightness(1.1);
}

/* =============================================================================
   STYLE: OUTLINED
   ============================================================================= */

.boost-social-share--style-outlined .boost-social-share__btn {
    background: transparent;
    border: 2px solid var(--boost-social-share-accent, var(--boost-primary, #2563eb));
    color: var(--boost-social-share-accent, var(--boost-primary, #2563eb));
}

.boost-social-share--style-outlined .boost-social-share__btn:hover {
    background: var(--boost-social-share-accent, var(--boost-primary, #2563eb));
    color: #fff;
}

/* =============================================================================
   STYLE: MINIMAL
   ============================================================================= */

.boost-social-share--style-minimal .boost-social-share__btn {
    background: transparent;
    color: var(--boost-social-share-text, #64748b);
}

.boost-social-share--style-minimal .boost-social-share__btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--boost-social-share-accent, var(--boost-primary, #2563eb));
    box-shadow: none;
}

/* =============================================================================
   STYLE: BRAND (native colors per channel)
   ============================================================================= */

.boost-social-share--style-brand .boost-social-share__btn {
    background: var(--boost-social-share-brand, #6B7280);
    color: #fff;
}

.boost-social-share--style-brand .boost-social-share__btn:hover {
    filter: brightness(1.15);
}

/* X (dark theme) — white text on dark. */
.boost-social-share--style-brand .boost-social-share__btn--x {
    background: #000;
}

/* =============================================================================
   LAYOUT: HORIZONTAL (default)
   ============================================================================= */

.boost-social-share--layout-horizontal .boost-social-share__buttons {
    justify-content: flex-start;
}

/* =============================================================================
   LAYOUT: VERTICAL
   ============================================================================= */

.boost-social-share--layout-vertical .boost-social-share__buttons {
    flex-direction: column;
    align-items: flex-start;
}

/* =============================================================================
   LAYOUT: FLOATING (sidebar sticky)
   ============================================================================= */

.boost-social-share--layout-floating {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 0;
    background: none;
    width: auto;
    container-type: normal;
}

.boost-social-share--layout-floating.is-boost-visible {
    opacity: 1;
    pointer-events: auto;
}

.boost-social-share--float-left {
    left: 0.75rem;
}

.boost-social-share--float-right {
    right: 0.75rem;
}

.boost-social-share--layout-floating .boost-social-share__buttons {
    flex-direction: column;
    gap: 0.35rem;
}

/* Floating: always icon-only, no labels, compact buttons. */
.boost-social-share--layout-floating .boost-social-share__label {
    display: none;
}

.boost-social-share--layout-floating .boost-social-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hide section header in floating mode. */
.boost-social-share--layout-floating .boost-section-header,
.boost-social-share--layout-floating .boost-social-share__text {
    display: none;
}

/* =============================================================================
   ALIGNMENT (after layouts to override justify-content)
   ============================================================================= */

.boost-social-share.boost-social-share--align-center .boost-social-share__buttons { justify-content: center; }
.boost-social-share.boost-social-share--align-right .boost-social-share__buttons { justify-content: flex-end; }
.boost-social-share.boost-social-share--align-center .boost-social-share__container { text-align: center; }
.boost-social-share.boost-social-share--align-right .boost-social-share__container { text-align: right; }
.boost-social-share--layout-vertical.boost-social-share--align-center .boost-social-share__buttons { align-items: center; }
.boost-social-share--layout-vertical.boost-social-share--align-right .boost-social-share__buttons { align-items: flex-end; }

/* =============================================================================
   COPY TOAST
   ============================================================================= */

.boost-social-share__toast {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #1e293b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.boost-social-share__toast.is-boost-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.boost-social-share--layout-floating .boost-social-share__toast {
    bottom: auto;
    top: auto;
    left: auto;
    right: calc(100% + 0.5rem);
    transform: translateX(8px);
}

.boost-social-share--layout-floating .boost-social-share__toast.is-boost-visible {
    transform: translateX(0);
}

.boost-social-share--float-left .boost-social-share__toast {
    right: auto;
    left: calc(100% + 0.5rem);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .boost-social-share--layout-floating {
        top: auto;
        bottom: 1rem;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .boost-social-share--layout-floating.is-boost-visible {
        transform: translateX(-50%);
    }

    .boost-social-share--layout-floating .boost-social-share__buttons {
        flex-direction: row;
        gap: 0.25rem;
    }

    .boost-social-share--layout-floating .boost-social-share__btn {
        width: 36px;
        height: 36px;
    }

    .boost-social-share--with-labels .boost-social-share__label {
        display: none;
    }

    .boost-social-share--with-labels .boost-social-share__btn {
        width: var(--boost-social-share-btn-size, 44px);
        padding: 0;
    }
}
/* Template inline context handled by render.php inline CSS (#{uid} specificity). */
