/*
 * SodaStream Theme — share.button.css
 *
 * Styles for the share-link widget that appears on profile pages.
 *
 * Expected class hooks:
 *   .share-icon  — the icon button itself
 *   .sharediv    — wrapper positioning the share button
 *   .toastdiv    — the "copied to clipboard" toast container
 *   .toastbox    — the toast inner box (background, padding, etc.)
 *
 * Replace this stub with your theme's share-button styling.
 */

.sharebutton {
    position: relative; /* Anchor for pseudo-element */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: #0f1e6b; /* Updated to Ramuné blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Spinning Gradient Border */
.sharebutton::before {
    content: '';
    position: absolute;
    inset: -2px; /* Pull out to match the 2px border size */
    border-radius: inherit;
    padding: 2px; /* Defines the thickness of the masked border */
    background: conic-gradient(from var(--border-angle), #84fab0, #8fd3f4, #84fab0);
    /* Mask out the center so the gradient only shows on the padding (the border) */
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: spinBorder 4s linear infinite;
}

.sharebutton:hover {
    background: #0f1e6b; /* Solid Ramuné Blue */
    color: #ffffff; /* Crisp white arrow for maximum contrast */
    box-shadow: 0 8px 20px rgba(15, 30, 107, 0.4); /* Deep blue drop shadow to make it pop */
}

.sharebutton-mb {
    display: none;
}

.share-icon {
    /* Reset since we styled the wrapper */
    display: inline-flex;
    margin: 0;
    padding: 0;
}

/* Force the icon to ignore its hardcoded inline color and inherit the theme colors */
.sharebutton i {
    color: inherit !important;
}

.sharediv {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toastdiv {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

.toastbox {
    background: #0f1e6b; /* Updated to Ramuné blue */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 30, 107, 0.3); /* Updated to Ramuné blue */
    animation: fadein 0.3s ease-out;
}
