/* Floating Social Buttons */
.sfb-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Positions */
.sfb-position-right {
    bottom: 30px;
    right: 30px;
}

.sfb-position-left {
    bottom: 30px;
    left: 30px;
}

.sfb-position-top-right {
    top: 30px;
    right: 30px;
}

.sfb-position-top-left {
    top: 30px;
    left: 30px;
}

/* CTA Button */
.sfb-cta {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.sfb-cta:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.sfb-cta-icon {
    color: white;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* CUSTOM MESSAGE - VIZIBIL MEREU CU TRANSPARENȚĂ LA SCROLL */
.sfb-custom-message {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 99;
    text-align: center;
    /* VIZIBIL MEREU inițial */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: 500;
    /* Poziție deasupra butonului */
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 15px;
}

/* CUSTOM MESSAGE - STARE INVISIBIL */
.sfb-custom-message-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* CUSTOM MESSAGE - TRANSPARENT LA SCROLL */
.sfb-custom-message-scroll {
    opacity: 0.3 !important;
}

/* Săgeată în jos */
.sfb-custom-message:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Pentru poziții din dreapta - custom message în stânga */
.sfb-position-right .sfb-custom-message,
.sfb-position-top-right .sfb-custom-message {
    left: auto;
    right: 100%;
    bottom: 50%;
    transform: translateY(50%);
    margin-bottom: 0;
    margin-right: 15px;
}

/* Săgeată pentru dreapta */
.sfb-position-right .sfb-custom-message:after,
.sfb-position-top-right .sfb-custom-message:after {
    left: auto;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent transparent transparent #333;
}

/* Pentru poziții din stânga - custom message în dreapta */
.sfb-position-left .sfb-custom-message,
.sfb-position-top-left .sfb-custom-message {
    left: 100%;
    right: auto;
    bottom: 50%;
    transform: translateY(50%);
    margin-bottom: 0;
    margin-left: 15px;
}

/* Săgeată pentru stânga */
.sfb-position-left .sfb-custom-message:after,
.sfb-position-top-left .sfb-custom-message:after {
    left: -16px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    border-color: transparent #333 transparent transparent;
}

/* Când containerul este activ, asigură vizibilitatea */
.sfb-container.active .sfb-custom-message {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Popup */
.sfb-popup {
    position: absolute;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 98;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

/* Scrollbar styling */
.sfb-popup::-webkit-scrollbar {
    width: 6px;
}

.sfb-popup::-webkit-scrollbar-track {
    background: transparent;
}

.sfb-popup::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Poziționare popup */
.sfb-position-right .sfb-popup {
    right: 0;
    bottom: 70px;
}

.sfb-position-left .sfb-popup {
    left: 0;
    bottom: 70px;
}

.sfb-position-top-right .sfb-popup {
    right: 0;
    top: 70px;
}

.sfb-position-top-left .sfb-popup {
    left: 0;
    top: 70px;
}

/* Items */
.sfb-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    transform: translateY(10px);
}

/* Elementul before */
.sfb-item-before {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    opacity: 0.3;
}

/* Ascunde before când sunt nume */
.sfb-show-names .sfb-item-before {
    display: none;
}

/* Iconițe */
.sfb-item i {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sfb-item-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    flex-grow: 1;
}

/* Icons Only Mode */
.sfb-icons-only .sfb-item {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    min-width: auto;
}

.sfb-icons-only .sfb-item-label {
    display: none;
}

/* Transparent Icons */
.sfb-transparent-icons .sfb-item {
    background: transparent;
    border: 2px solid currentColor;
    box-shadow: none;
}

.sfb-transparent-icons .sfb-item:hover {
    background: rgba(0,0,0,0.05);
}

/* Stare activă */
.sfb-container.active .sfb-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.sfb-container.active .sfb-item {
    opacity: 1;
    transform: translateY(0);
}

/* Buton activ */
.sfb-cta.active {
    transform: rotate(45deg);
    background: #005a87;
}

/* Animații */
.sfb-item {
    transition: all 0.3s ease;
    transition-delay: calc(var(--item-index) * 0.05s);
}

/* Mobile */
.sfb-mobile-disabled {
    display: none;
}

@media (max-width: 768px) {
    .sfb-mobile-disabled {
        display: none;
    }
    
    .sfb-container {
        bottom: 20px;
        right: 20px;
    }
    
    .sfb-cta {
        width: 50px;
        height: 50px;
    }
    
    .sfb-cta-icon {
        font-size: 20px;
    }
    
    /* Custom message pe mobile */
    .sfb-custom-message {
        font-size: 12px;
        padding: 8px 12px;
        white-space: normal;
        max-width: 150px;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
    }
    
    /* Reset poziție custom message pe mobile */
    .sfb-position-right .sfb-custom-message,
    .sfb-position-top-right .sfb-custom-message,
    .sfb-position-left .sfb-custom-message,
    .sfb-position-top-left .sfb-custom-message {
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 10px;
    }
    
    /* Ascunde săgețile pe mobile */
    .sfb-custom-message:after {
        display: none;
    }
    
    .sfb-popup {
        bottom: 60px;
        max-height: 250px;
    }
    
    .sfb-item {
        padding: 10px 15px;
        min-width: 160px;
    }
    
    .sfb-icons-only .sfb-item {
        width: 45px;
        height: 45px;
    }
}

/* Inline Buttons */
.scfs-inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.scfs-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.scfs-inline-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.scfs-inline-button.scfs-transparent {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.scfs-inline-button.scfs-transparent:hover {
    background: #0073aa;
    color: white;
}

/* Single Button */
.scfs-single-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.scfs-single-button.scfs-transparent {
    background: transparent;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.scfs-single-button.scfs-transparent:hover {
    background: #0073aa;
    color: white;
}

/* Font Awesome import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Asigură vizibilitatea iconițelor */
i[class*="fa-"] {
    opacity: 1;
    visibility: visible;
    display: inline-block;
}