/* Floating Wrapper */
.webinsights-float-social-wrapper {
    position: fixed;
    right: 20px;
    top: 60%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.webinsights-float-social-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

/* Random posts box */
.webinsights-random-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 10px;
    min-width: 180px;
    max-width: 240px;
}

/* Single item */
.webinsights-random-item {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.webinsights-random-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ✅ Mobile view only (truncate 4 words, 1 line only) */
@media (max-width: 768px) {
    .webinsights-float-social-wrapper {
        right: 15px;
        top: 65%;
    }

    .webinsights-random-list {
        min-width: 150px;
        max-width: 200px;
        padding: 10px;
    }

    .webinsights-random-item {
        font-size: 13px;
        padding: 7px 8px;
    }

    /* Show only 1 line, 4 words, with ellipsis */
    .webinsights-random-item .random-title {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
}
