/* ==========================================================================
   Slot Chai - Premium Footer & Floating Elements (Including Chat)
   ========================================================================== */

:root {
    --footer-bg: #0f172a;
    --footer-accent: #3b82f6;
    --footer-chat: #10b981; /* Premium Emerald/Green for Chat */
    --footer-text: #94a3b8;
    --footer-border: rgba(255, 255, 255, 0.06);
    --float-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.3);
    /* High Z-Index to stay above footer but below Modals (Bootstrap modals start at 1050) */
    --z-floating: 1040; 
}

/* --- Premium Footer --- */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, var(--footer-bg) 100%);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
    position: relative;
    z-index: 1; 
    padding-bottom: env(safe-area-inset-bottom);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-title {
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links li a:hover {
    color: var(--footer-accent);
    transform: translateX(5px);
}

.footer-contact div {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    width: 20px;
    color: var(--footer-accent);
}

.footer-divider {
    border-color: var(--footer-border);
    opacity: 1;
}

/* --- Floating Containers --- */
.social-float-left {
    position: fixed !important;
    left: 16px;
    bottom: 16px;
    z-index: var(--z-floating) !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* New Right Container for Chat & FAQ */
.floating-actions-right {
    position: fixed !important;
    right: 16px;
    bottom: 16px;
    z-index: var(--z-floating) !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px; /* Space between Chat and FAQ */
}

/* Shared Floating Button Styles */
.chat-float-right, .faq-float-right {
    filter: drop-shadow(var(--float-shadow));
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    padding: 10px 20px !important;
    border-radius: 14px;
    color: white !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.chat-float-right {
    background: var(--footer-chat) !important;
}

.faq-float-right {
    background: var(--footer-accent) !important;
}

/* Animation for the primary action button */
.chat-float-right {
    animation: floatAnim 3s ease-in-out infinite;
}

.sf-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Button Variants */
.sf-wa { background: #25D366 !important; color: white !important; }
.sf-yt { background: #FF0000 !important; color: white !important; }
.sf-top { background: #1e293b !important; color: white !important; }

.sf-btn:hover, .chat-float-right:hover, .faq-float-right:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* --- Mobile Specific Optimization --- */
@media (max-width: 576px) {
    .floating-actions-right {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    
    .chat-float-right, .faq-float-right {
        padding: 8px 14px !important;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .sf-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 10px;
    }
}

/* --- Animations --- */
@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes footerEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.site-footer .container {
    animation: footerEntrance 0.8s ease-out;
}