/* WP Modern Social Follow Box Styles */

.wsfb-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-family: 'Noto Serif Bengali', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.wsfb-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsfb-header-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: #d63638;
    border-radius: 2px;
}

.wsfb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.wsfb-col-left {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsfb-col-right {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Card General */
.wsfb-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wsfb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* YouTube Button */
.wsfb-yt-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e62117;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
}

.wsfb-yt-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsfb-yt-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
}

/* Social Pill (Instagram / X) */
.wsfb-social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wsfb-card-insta .wsfb-social-pill {
    border: 1px solid #e1306c;
    background: #ffffff;
    color: #1e293b !important;
}

.wsfb-card-insta .wsfb-social-pill:hover {
    background: #fdf2f8;
}

.wsfb-card-x .wsfb-social-pill {
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000 !important;
}

.wsfb-card-x .wsfb-social-pill:hover {
    background: #f1f5f9;
}

.wsfb-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Facebook Official Embed Container */
.wsfb-fb-embed-container {
    width: 100%;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Floating Bottom-Right Popup */
#wsfb-floating-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    max-width: 320px;
    width: calc(100% - 48px);
    box-sizing: border-box;
    font-family: 'Noto Serif Bengali', system-ui, sans-serif;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#wsfb-floating-popup.wsfb-popup-hidden {
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
}

#wsfb-floating-popup.wsfb-popup-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#wsfb-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

#wsfb-popup-close:hover {
    color: #0f172a;
}

.wsfb-popup-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
}

.wsfb-pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: wsfb-pulse 1.8s infinite;
}

@keyframes wsfb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.wsfb-popup-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wsfb-pop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.wsfb-pop-btn:hover {
    opacity: 0.9;
}

.wsfb-pop-fb {
    background: #1877f2;
    color: #ffffff !important;
}

.wsfb-pop-yt {
    background: #e62117;
    color: #ffffff !important;
}

.wsfb-pop-insta {
    background: linear-gradient(45deg, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    color: #ffffff !important;
}

/* Compact Widget Layout for Sidebar */
.wsfb-layout-compact .wsfb-grid {
    flex-direction: column;
}
.wsfb-layout-compact .wsfb-col-left,
.wsfb-layout-compact .wsfb-col-right {
    flex: 1 1 100%;
}
