/**
 * DST Utilities - Floating Share Bar styles
 *
 * @package DST_Utilities
 */

/**
 * DST Utilities - Floating Share Bar styles
 *
 * @package DST_Utilities
 */

/* Base styles - element starts hidden via inline styles */
.dst-floating-share-bar {
    z-index: 9999;
    position: absolute;
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
    transition: none;
    padding:10px 0;
}

/* When ready to show with animation */
.dst-floating-share-bar.dst-ready {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dst-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dst-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 0;
}

.dst-share-button:hover {
    background: #e9ecef;
    color: #212529;
    transition: all 0.2s ease;
}

.dst-share-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dst-share-label {
    white-space: nowrap;
    opacity: 0;
}

.dst-share-button:hover.dst-share-copy_link {
    background: #6c757d;
    color: white;
}

.dst-share-button:hover.dst-share-email {
    background: #17a2b8;
    color: white;
}

.dst-share-button:hover.dst-share-facebook {
    background: #1877f2;
    color: white;
}

.dst-share-button:hover.dst-share-bluesky {
    background: #00bcd4;
    color: white;
}

.dst-share-button:hover.dst-share-x {
    background: #000000;
    color: white;
}

.dst-share-button:hover.dst-share-telegram {
    background: #0088cc;
    color: white;
}

.dst-share-button:hover.dst-share-linkedin {
    background: #0077b5;
    color: white;
}

.dst-share-button:hover.dst-share-whatsapp {
    background: #25d366;
    color: white;
}

.dst-share-button:hover.dst-share-reddit {
    background: #ff4500;
    color: white;
}

.dst-share-button:hover.dst-share-donate {
    background: var(--newspack-cta-color, #ff6b35);
    color: white;
}

/* Mobile styles */
@media (max-width: 768px) {
    .dst-floating-share-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .dst-share-buttons {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-radius: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .dst-share-button {
        display: flex;
        align-items: center;
        width: auto;
        flex:1;
    }
}

/* Print styles - hide floating share bar */
@media print {
    .dst-floating-share-bar {
        display: none !important;
    }
}