/* Social Share Popover */
.social-share-popover {
    position: absolute;
    z-index: 10000;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.social-share-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: translateX(-50%) rotate(45deg);
}

.social-share-title {
    color: #aaa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.social-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-share-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.social-share-facebook i { color: #1877F2; }
.social-share-twitter i { color: #1DA1F2; }
.social-share-linkedin i { color: #0A66C2; }
.social-share-copy i { color: #aaa; }

.social-share-facebook:hover i { color: #4293f5; }
.social-share-twitter:hover i { color: #4db5f5; }
.social-share-linkedin:hover i { color: #3d8bd4; }
.social-share-copy:hover i { color: #ccc; }

/* When popover is placed above the trigger, flip the arrow to the bottom */
.social-share-popover--above .social-share-arrow {
    top: auto;
    bottom: -6px;
    transform: translateX(-50%) rotate(225deg);
}

/* Mobile: full-width popover at bottom */
@media (max-width: 480px) {
    .social-share-popover {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
        min-width: auto;
        padding: 16px 20px 24px;
    }

    .social-share-arrow {
        display: none;
    }

    .social-share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .social-share-btn {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}
