.saudi-share-bar {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    justify-content: flex-start; /* Default LTR */
    flex-wrap: wrap;
}

.saudi-share-bar.right {
    justify-content: flex-start; /* RTL: usually starts from right in RTL direction, but flex-start follows direction */
    direction: rtl;
}

.saudi-share-bar.left {
    justify-content: flex-start;
    direction: ltr;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.share-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Colors */
.whatsapp { background-color: #25D366; }
.twitter { background-color: #000000; }
.facebook { background-color: #1877F2; }
.copy-link { background-color: #555555; }

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 100%; /* Above the button */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    pointer-events: none;
    margin-bottom: 5px;
    z-index: 10;
}

/* Tooltip Arrow */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.share-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .saudi-share-bar {
        justify-content: center; /* Center buttons on mobile */
    }
}
