/**
 * Social Buttons - Public Stylesheet (v1.0.2)
 */

/* Main container for the floating button and social links */
.sb-floating-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Positioning Classes --- */
.sb-floating-container.right-bottom {
    right: 20px;
    align-items: flex-end;
}

.sb-floating-container.left-bottom {
    left: 20px;
    align-items: flex-start;
}

/* --- Main Floating Action Button --- */
.sb-main-button {
    width: 60px;
    height: 60px;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.sb-main-button:hover {
    transform: scale(1.1);
}

.sb-main-button img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

/* --- Social Buttons List --- */
.sb-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* --- Open/Active State --- */
.sb-floating-container.open .sb-social-buttons {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sb-main-button.open img {
    transform: rotate(45deg);
}


/* --- Individual Social Button Link Styling --- */
.sb-social-buttons a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns content to the left */
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sb-social-buttons a:hover {
    transform: scale(1.05);
}

.sb-social-buttons a img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    flex-shrink: 0;
}

/* **FIX**: Text Position logic */
.sb-social-buttons a.after-icon {
    flex-direction: row;
}

.sb-social-buttons a.before-icon {
    flex-direction: row-reverse;
}

.sb-social-buttons a .sb-text-label {
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Button Shape Styles --- */
.sb-social-buttons.normal a {
    border-radius: 4px;
}

.sb-social-buttons.rounded a {
    border-radius: 50px;
}

/* --- **NEW** Main Button Animation Effects --- */
.sb-main-button.sb-effect-shake {
    animation: sb-shake 0.82s cubic-bezier(.36,.07,.19,.97) both infinite;
}
.sb-main-button.sb-effect-pulse {
    animation: sb-pulse 1.5s ease-in-out infinite;
}
.sb-main-button.sb-effect-wobble {
    animation: sb-wobble 1s 1s infinite;
}

@keyframes sb-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes sb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 115, 170, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

@keyframes sb-wobble {
  0% { transform: none; }
  15% { transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }
  30% { transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }
  45% { transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }
  60% { transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }
  75% { transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }
  100% { transform: none; }
}