/* TFast Digital Agency - Conversion Bar & Floating WhatsApp Styles */

/* Top Demo Sticky Banner */
.tf-demo-topbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    z-index: 999999;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.tf-demo-topbar .tf-badge {
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.tf-demo-topbar .tf-brand-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.tf-demo-topbar .tf-cta-btn {
    background: #10b981;
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, background 0.2s;
}

.tf-demo-topbar .tf-cta-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Floating WhatsApp Button */
.tf-floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999998;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tf-floating-whatsapp:hover {
    transform: scale(1.1);
}

.tf-floating-whatsapp svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

.tf-floating-whatsapp .tf-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: tf-wa-pulse 2s infinite ease-out;
    z-index: -1;
}

@keyframes tf-wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.tf-floating-whatsapp .tf-tooltip {
    position: absolute;
    right: 70px;
    background: #1e293b;
    color: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.tf-floating-whatsapp:hover .tf-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom Mobile Action Bar (Mobile Screens <= 768px) */
.tf-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    .tf-demo-topbar {
        font-size: 11px;
        padding: 6px 10px;
    }
    .tf-demo-topbar .tf-desc-text {
        display: none;
    }
    .tf-floating-whatsapp {
        bottom: 74px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .tf-floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    .tf-floating-whatsapp .tf-tooltip {
        display: none;
    }

    .tf-mobile-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0f172a;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
        z-index: 999997;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .tf-mobile-bar a {
        flex: 1;
        padding: 10px 0;
        text-align: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 11px;
        font-family: -apple-system, BlinkMacSystemFont, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-weight: 500;
    }
    .tf-mobile-bar a svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }
    .tf-mobile-bar a.tf-active-call {
        color: #38bdf8;
    }
    .tf-mobile-bar a.tf-active-wa {
        color: #25d366;
    }
    .tf-mobile-bar a.tf-active-order {
        background: #2563eb;
        color: #ffffff;
        font-weight: 700;
    }
}
