/* ============================================================
   SCOTT PRICE MEDIA
   SPM Article Share Component
   Bootstrap 5.3
   ============================================================ */


/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */

.spm-share {
    --spm-share-purple: #6610f2;
    --spm-share-purple-rgb: 102, 16, 242;

    position: relative;
}

.spm-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}


/* ------------------------------------------------------------
   SHARED BUTTON
   ------------------------------------------------------------ */

.spm-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    border: 1px solid rgba(102, 16, 242, 0.32);
    outline: none;

    color: inherit;
    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 6px 18px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.spm-share-button i {
    line-height: 1;
}

.spm-share-button:hover {
    color: #ffffff;

    border-color: rgba(102, 16, 242, 0.85);

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.88),
            rgba(102, 16, 242, 0.58)
        );

    box-shadow:
        0 8px 24px rgba(102, 16, 242, 0.26),
        transform: translateY(-2px);
}

.spm-share-button:active {
    transform: translateY(0);
}

.spm-share-button:focus-visible {
    color: #ffffff;

    border-color: #6610f2;

    box-shadow:
        0 0 0 0.25rem rgba(102, 16, 242, 0.28),
        0 8px 24px rgba(102, 16, 242, 0.20);
}


/* ------------------------------------------------------------
   COMPACT SHARE BAR
   ------------------------------------------------------------ */

.spm-share-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;

    margin-top: 1.25rem;
}

.spm-share-compact .spm-share-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.spm-share-compact .spm-share-buttons {
    gap: 0.45rem;
}

.spm-share-compact .spm-share-button {
    width: 2.45rem;
    height: 2.45rem;

    padding: 0;

    border-radius: 50%;

    font-size: 1rem;
}


/* ------------------------------------------------------------
   FULL SHARE SECTION
   ------------------------------------------------------------ */

.spm-share-full {
    width: min(100% - 2rem, var(--spm-reading-width, 760px));

    margin-inline: auto;

    margin-top: 1rem;
    margin-bottom: 2.5rem;

    padding: clamp(1.25rem, 3vw, 1.75rem);

    border: 1px solid rgba(102, 16, 242, 0.22);

    border-radius: 1.1rem;

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.095),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 35px rgba(0, 0, 0, 0.10);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.spm-share-full-header {
    margin-bottom: 1.15rem;
}

.spm-share-full-header h3 {
    margin: 0 0 0.3rem;

    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
}

.spm-share-full-header p {
    margin: 0;

    color: var(--bs-secondary-color);

    font-size: 0.93rem;
}

.spm-share-full .spm-share-button {
    min-height: 2.75rem;

    padding: 0.65rem 1rem;

    border-radius: 50rem;

    font-size: 0.9rem;
    font-weight: 600;
}

.spm-share-full .spm-share-button i {
    font-size: 1.05rem;
}


/* ------------------------------------------------------------
   COPY SUCCESS STATE
   ------------------------------------------------------------ */

.spm-share-button.spm-copy-success {
    color: #ffffff;

    border-color: rgba(102, 16, 242, 0.95);

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.95),
            rgba(102, 16, 242, 0.68)
        );

    box-shadow:
        0 8px 24px rgba(102, 16, 242, 0.24);
}


/* ------------------------------------------------------------
   LIGHT THEME
   ------------------------------------------------------------ */

[data-bs-theme="light"] .spm-share-button {
    color: #33105f;

    border-color: rgba(102, 16, 242, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(102, 16, 242, 0.045)
        );

    box-shadow:
        0 5px 18px rgba(38, 12, 68, 0.08);
}

[data-bs-theme="light"] .spm-share-button:hover,
[data-bs-theme="light"] .spm-share-button:focus-visible,
[data-bs-theme="light"] .spm-share-button.spm-copy-success {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.94),
            rgba(79, 9, 190, 0.82)
        );
}

[data-bs-theme="light"] .spm-share-full {
    border-color: rgba(102, 16, 242, 0.16);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(102, 16, 242, 0.045)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 35px rgba(38, 12, 68, 0.07);
}


/* ------------------------------------------------------------
   DARK THEME
   ------------------------------------------------------------ */

[data-bs-theme="dark"] .spm-share-button {
    color: rgba(255, 255, 255, 0.88);

    border-color: rgba(149, 92, 255, 0.30);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.085),
            rgba(102, 16, 242, 0.055)
        );
}

[data-bs-theme="dark"] .spm-share-button:hover,
[data-bs-theme="dark"] .spm-share-button:focus-visible,
[data-bs-theme="dark"] .spm-share-button.spm-copy-success {
    color: #ffffff;

    border-color: rgba(149, 92, 255, 0.85);

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.92),
            rgba(82, 12, 198, 0.72)
        );
}

[data-bs-theme="dark"] .spm-share-full {
    border-color: rgba(149, 92, 255, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(102, 16, 242, 0.10),
            rgba(255, 255, 255, 0.025)
        );
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 575.98px) {

    .spm-share-compact {
        gap: 0.65rem;
    }

    .spm-share-compact .spm-share-button {
        width: 2.35rem;
        height: 2.35rem;
    }

    .spm-share-full {
        width: min(100% - 1.5rem, var(--spm-reading-width, 760px));

        padding: 1.15rem;
    }

    .spm-share-full .spm-share-buttons {
        gap: 0.5rem;
    }

    .spm-share-full .spm-share-button {
        flex: 1 1 auto;

        min-width: calc(50% - 0.5rem);

        padding-inline: 0.75rem;
    }
}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .spm-share-button {
        transition: none;
    }

    .spm-share-button:hover {
        transform: none;
    }
}