/* Social share widget — sticky bottom-right floating bar
   Owns: share button layout, animations, tooltip feedback
   Does NOT own: page content, analytics tracking logic */

.share-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.share-widget.hidden {
    display: none;
}

/* Toggle button */
.share-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy, #0b1a2e);
    border: 2px solid var(--gold, #c9a227);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(11,26,46,0.25);
    transition: transform 0.2s, background 0.2s;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.share-toggle:hover {
    background: var(--gold, #c9a227);
    transform: scale(1.08);
}

.share-toggle:hover .share-icon-share { display: none; }
.share-toggle:hover .share-icon-hover { display: block; }
.share-icon-hover { display: none; }

/* Buttons container */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    /* hidden by default, animated in */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    pointer-events: none;
}

.share-buttons.open {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
}

/* Individual share button */
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border-radius: 99px;
    text-decoration: none;
    font-family: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(11,26,46,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: -0.1px;
}

.share-btn:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 20px rgba(11,26,46,0.2);
}

.share-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Platform colors */
.share-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.share-btn-linkedin {
    background: #0A66C2;
    color: #fff;
}

.share-btn-x {
    background: #000;
    color: #fff;
}

.share-btn-copy {
    background: var(--navy, #0b1a2e);
    color: #fff;
    border: 1.5px solid var(--gold, #c9a227);
}

/* Copy feedback tooltip */
.share-copy-feedback {
    position: absolute;
    right: 60px;
    bottom: 0;
    background: #16a34a;
    color: #fff;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s, transform 0.2s;
}

.share-copy-feedback.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile */
@media (max-width: 768px) {
    .share-widget {
        bottom: 16px;
        right: 16px;
    }

    .share-toggle {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .share-btn {
        font-size: 12px;
        padding: 9px 14px 9px 12px;
    }
}

/* Label text hidden on very small screens */
@media (max-width: 380px) {
    .share-btn span.share-btn-label {
        display: none;
    }

    .share-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}
