/**
 * Retraide Social Share Styles
 * Ultra-lightweight, responsive & modern social sharing buttons.
 */

.retraide-social-share {
    display: inline-flex;
    vertical-align: middle;
    margin: 4px 0;
    max-width: 100%;
}

.retraide-share-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

/* Alignments */
.retraide-share--align-left .retraide-share-buttons {
    justify-content: flex-start;
}

.retraide-share--align-center .retraide-share-buttons {
    justify-content: center;
}

.retraide-share--align-right .retraide-share-buttons {
    justify-content: flex-end;
}

/* Base Share Button */
.retraide-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.retraide-share-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.retraide-share-text {
    white-space: nowrap;
}

/* Hover & Focus States with Brand Colors */
.retraide-share-btn:hover,
.retraide-share-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.retraide-share-btn:active {
    transform: translateY(0);
}

/* WhatsApp */
.retraide-share-whatsapp:hover,
.retraide-share-whatsapp:focus-visible {
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

/* Facebook */
.retraide-share-facebook:hover,
.retraide-share-facebook:focus-visible {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

/* X / Twitter */
.retraide-share-twitter:hover,
.retraide-share-twitter:focus-visible {
    background-color: #0f1419;
    border-color: #0f1419;
    color: #ffffff;
}

/* LinkedIn */
.retraide-share-linkedin:hover,
.retraide-share-linkedin:focus-visible {
    background-color: #0A66C2;
    border-color: #0A66C2;
    color: #ffffff;
}

/* Email */
.retraide-share-email:hover,
.retraide-share-email:focus-visible {
    background-color: #334155;
    border-color: #334155;
    color: #ffffff;
}

/* Copy Link */
.retraide-share-copy:hover,
.retraide-share-copy:focus-visible {
    background-color: #009bfe;
    border-color: #009bfe;
    color: #ffffff;
}

/* Tooltip for Copy to Clipboard */
.retraide-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #0f172a;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.retraide-copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.retraide-share-copy.is-copied .retraide-copy-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.retraide-share-copy.is-copied {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .retraide-share-buttons {
        gap: 6px;
    }
    
    .retraide-share-btn {
        padding: 8px 12px;
        font-size: 12.5px;
    }
}
