/*
Theme Name: Aurix NX
Theme URI: https://aurixnx.com
Author: Aurix NX Team
Author URI: https://aurixnx.com
Description: Aurix NX — AI That Works. Marketing That Grows. Enterprise AI and Growth Marketing under one connected ecosystem.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aurix-nx
*/

/* WordPress Admin Bar Compatibility */
body.admin-bar header.fixed {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar header.fixed {
        top: 46px !important;
    }
}

/* Display Zoom: Match Reference Site Screen Utilization (1.20x scale) */
@media screen and (min-width: 1024px) {
    body {
        zoom: 1;
    }
    
    /* Keep WP admin bar at native height if logged in */
    #wpadminbar {
        zoom: 0.833333;
    }
    body.admin-bar header.fixed {
        top: 26.67px !important;
    }
}

/* Ensure html and body take full width without overflow bugs */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #F7F7F5;
    color: #111111;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#root {
    width: 100%;
    min-height: 100vh;
}

/* Floating WhatsApp Widget */
.aurix-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
}

.aurix-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 10px 26px -4px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 0;
    border: none;
    cursor: pointer;
}

.aurix-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 14px 32px -2px rgba(37, 211, 102, 0.65), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.aurix-wa-icon-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
    transition: transform 0.25s ease;
}

.aurix-whatsapp-btn:hover .aurix-wa-icon-box {
    transform: scale(1.08) rotate(-6deg);
}

.aurix-wa-ripple {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    animation: waPulse 2.8s infinite cubic-bezier(0.2, 0, 0, 1);
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Floating Action Tooltip */
.aurix-floating-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0f111a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.01em;
}

.aurix-whatsapp-btn:hover .aurix-floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 640px) {
    .aurix-whatsapp-widget {
        bottom: 18px;
        right: 18px;
    }
    .aurix-whatsapp-btn {
        width: 48px;
        height: 48px;
    }
    .aurix-floating-tooltip {
        display: none !important;
    }
}
