/* 
 * NEXUSPRIME | CREATIVE SOVEREIGN HUB (CTA)
 * v40.35.123 - CENTRIC BLUE EDITION
 * Design: Executive Chat Style / Floating Centric Dock
 */

@keyframes nx-hub-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes nx-aura-pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(24, 119, 242, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

.nx-creative-hub-trigger {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    opacity: 0 !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 36px;
    background: #1877f2;
    /* THE CHAT BLUE */
    color: #fff !important;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-radius: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.4);
    z-index: 9998;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    text-decoration: none !important;
}

.nx-creative-hub-trigger.is-docked {
    opacity: 1 !important;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
    animation: nx-hub-float 4s ease-in-out infinite, nx-aura-pulse-blue 3s infinite;
}

.nx-creative-hub-trigger.is-ghosted {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(20px) !important;
}

.nx-nav-cta-blue {
    opacity: 1 !important;
    background: #1877f2 !important;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.nx-nav-cta-blue:hover {
    background: #1565c0;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nx-nav-cta-blue span {
        display: none;
        /* Hide text on mobile nav to prevent overflow */
    }

    .nx-nav-cta-blue {
        padding: 8px;
        width: 36px;
        height: 36px;
        justify-content: center;
        border-radius: 50%;
    }

    .is-nav-creator-item {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.nx-creative-hub-trigger i,
.nx-creative-hub-trigger svg {
    width: 22px;
    height: 22px;
    stroke-width: 3.5;
    color: #fff !important;
}

.nx-creative-hub-trigger:hover {
    background: #000;
    color: #1877f2 !important;
    border-color: #1877f2;
    transform: translateX(-50%) translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.nx-creative-hub-trigger:hover i,
.nx-creative-hub-trigger:hover svg {
    color: #ffffffc9 !important;
}

/* --- MOBILE SOVEREIGNTY (INCENTIVE STRATEGY) --- */
@media (max-width: 768px) {
    .nx-creative-hub-trigger {
        display: none !important;
        /* Feedback utente: meglio solo nella barra in alto */
    }
}

/* Light Mode Consistency */
[data-theme="light"] .nx-creative-hub-trigger {
    background: #1877f2;
    color: var(--text-on-accent) !important;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}