/**
 * Frontend Styles for Custom Social Buttons
 * Path: assets/css/frontend-style.css
 */

/* 1. Base Container & Button Styles */
.csb-buttons-container {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    align-items: center;
}

.csb-button {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    line-height: 1;
    min-width: 170px;
    box-sizing: border-box;
}

.csb-button i {
    font-size: 1.3em;
}

.csb-button span {
    white-space: nowrap;
}

/* 2. Brand Colors */
.csb-messenger-button {
    background-color: #0084ff !important;
    color: #ffffff !important;
}

.csb-whatsapp-button {
    background-color: #25d366 !important;
    color: #ffffff !important;
}

/* Hover Effect (Global) */
.csb-button:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

/* 3. Button Styles Variants */

/* Minimal Style */
.csb-style-minimal .csb-button {
    background: transparent !important;
    border: 2px solid;
}
.csb-style-minimal .csb-messenger-button {
    color: #0084ff !important;
    border-color: #0084ff !important;
}
.csb-style-minimal .csb-whatsapp-button {
    color: #25d366 !important;
    border-color: #25d366 !important;
}
.csb-style-minimal .csb-button:hover {
    background: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* Rounded Style */
.csb-style-rounded .csb-button {
    border-radius: 50px !important;
}

/* Gradient Style */
.csb-style-gradient .csb-messenger-button {
    background: linear-gradient(45deg, #0084ff, #00c6ff) !important;
}
.csb-style-gradient .csb-whatsapp-button {
    background: linear-gradient(45deg, #25d366, #128c7e) !important;
}

/* 3D Effect Style */
.csb-style-3d .csb-button {
    border-bottom: 4px solid rgba(0,0,0,0.2) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.csb-style-3d .csb-button:active {
    transform: translateY(2px);
    border-bottom-width: 0 !important;
}

/* 4. Animation Keyframes */

/* Pulse Animation */
.csb-animation-pulse .csb-button {
    animation: csbPulse 2s infinite;
}
@keyframes csbPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0.2); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0,0,0,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* Shake Animation (On Hover) */
.csb-animation-shake .csb-button:hover {
    animation: csbShake 0.5s ease-in-out;
}
@keyframes csbShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Bounce Animation (On Hover) */
.csb-animation-bounce .csb-button:hover {
    animation: csbBounce 0.6s infinite alternate;
}
@keyframes csbBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Bubbles Animation (Scale Up) */
.csb-animation-bubbles .csb-button:hover {
    transform: scale(1.1);
}

/* 5. Floating Positions */
.csb-floating-buttons {
    position: fixed !important;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.csb-floating-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.csb-floating-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Floating button adjustment (Icon only behavior if needed or small width) */
.csb-floating-buttons .csb-button {
    min-width: 50px;
    padding: 15px;
}

/* 6. Responsive Adjustments */
@media screen and (max-width: 768px) {
    .csb-buttons-container {
        flex-direction: column;
        width: 100%;
    }
    
    .csb-button {
        width: 100% !important;
        min-width: 100%;
    }

    .csb-floating-buttons {
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        flex-direction: row !important;
        width: 100% !important;
        padding: 10px !important;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        justify-content: center;
    }
    
    .csb-floating-buttons .csb-button {
        flex: 1;
        min-width: auto;
        font-size: 12px;
        padding: 10px 5px;
    }
    
    /* Hide text on very small mobile if floating */
    .csb-floating-buttons .csb-button span {
        display: none;
    }
}