/* Floating Socials Pro - Frontend Styles */
#fsp-floating-wrapper {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    z-index: 99999;
    position: relative;
}

/* SIDE FLOATING BUTTONS */
.fsp-side {
    position: fixed;
    top: 38%;
    display: flex;
    flex-direction: column;
    gap: 11px;
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fsp-side-right {
    right: 14px;
}

.fsp-side-left {
    left: 14px;
}

.fsp-social-btn {
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.35);
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.fsp-social-btn:hover {
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.15);
}

.fsp-social-btn svg,
.fsp-social-btn img {
    width: 23px;
    height: 23px;
    display: block;
}

/* Red dots */
.fsp-red-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 11px;
    height: 11px;
    background: #ef4444;
    border-radius: 9999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ef4444;
    animation: fsp-pulse 2s infinite;
}

@keyframes fsp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* CENTER FLOATING BUTTON */
.fsp-center-btn {
    position: fixed;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99990;
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    cursor: pointer;
    border: 4px solid #fff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fsp-center-btn:hover {
    transform: translateX(-50%) scale(1.08);
}

.fsp-center-inner {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

/* BOTTOM FLOATING BAR */
.fsp-bottom-bar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 
                0 4px 6px -4px rgb(0 0 0 / 0.15),
                0 0 0 1px rgba(255,255,255,0.55);
    padding: 6px 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    width: 92%;
    max-width: 355px;
    z-index: 99998;
}

.fsp-bottom-bar.fsp-solid {
    background: #f8fafc;
    backdrop-filter: none;
}

.fsp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    border-radius: 9999px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    color: #374151;
    cursor: pointer;
}

.fsp-nav-item:hover {
    background: rgba(255,255,255,0.7);
}

.fsp-nav-icon {
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fsp-nav-icon svg,
.fsp-nav-icon img {
    width: 19px;
    height: 19px;
}

.fsp-nav-label {
    font-size: 9.5px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1;
}

.fsp-red-dot-small {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8.5px;
    height: 8.5px;
    background: #ef4444;
    border-radius: 9999px;
    border: 1.5px solid #fff;
}

.fsp-cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #fff;
    font-size: 8.5px;
    font-weight: 900;
    padding: 0 4.5px;
    border-radius: 9999px;
    line-height: 1;
    min-width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1.5px #fff;
}

/* Responsive & Visibility */
@media (max-width: 640px) {
    .fsp-side {
        top: 32%;
    }
    
    .fsp-bottom-bar {
        width: 95%;
        max-width: 340px;
    }
}

.fsp-hide-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .fsp-hide-desktop {
        display: none !important;
    }
}

/* WooCommerce integration */
.fsp-woo-cart {
    position: relative;
}

.fsp-woo-cart .fsp-cart-count {
    font-size: 8px;
    padding: 0 3.5px;
}

/* Accessibility */
.fsp-social-btn:focus,
.fsp-nav-item:focus,
.fsp-center-btn:focus {
    outline: 3px solid #14b8a6;
    outline-offset: 2px;
}

/* RTL adjustments */
html[dir="rtl"] .fsp-side-right {
    right: 14px;
}

html[dir="rtl"] .fsp-side-left {
    left: 14px;
}