/**
 * Floating Navigation Bar Styles
 * Design: Glassmorphism / Premium
 */

:root {
    --hxd-nav-bg: rgba(255, 255, 255, 0.7);
    --hxd-nav-border: rgba(0, 0, 0, 0.1);
    --hxd-nav-primary: #0073aa;
    --hxd-nav-text: #333;
    --hxd-nav-muted: #0087f4;
    --hxd-nav-badge-bg: #dc3232;
    --hxd-nav-badge-text: #fff;
}

/* Dark mode support if the site uses it */
@media (prefers-color-scheme: dark) {
    :root {
        --hxd-nav-bg: rgba(30, 30, 30, 0.8);
        --hxd-nav-border: rgba(255, 255, 255, 0.1);
        --hxd-nav-text: #eee;
        --hxd-nav-muted: #aaa;
    }
}

.hxd-floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Allow clicking through the container edges */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.hxd-floating-nav.hxd-nav-hidden {
    transform: translateY(100px);
    opacity: 0;
}

.hxd-nav-container {
    display: flex;
    align-items: center;
    background: var(--hxd-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hxd-nav-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 6px;
    border-radius: 16px 16px 0 0;
    /* Menor curvatura */
    width: 100%;
    justify-content: space-around;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .hxd-floating-nav {
        bottom: 15px;
    }

    .hxd-nav-container {
        width: auto;
        min-width: 260px;
        max-width: 400px;
        border-radius: 40px;
        gap: 10px;
        padding: 5px 15px;
    }
}

.hxd-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--hxd-nav-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 10px;
}

.hxd-nav-item:hover {
    background: rgba(0, 115, 170, 0.08);
    color: var(--hxd-nav-primary);
    transform: scale(1.04);
}

.hxd-nav-item:focus {
    background: none !important;
    color: var(--hxd-nav-muted)
}

.hxd-nav-item:active {
    transform: scale(0.95);
}

.hxd-nav-item.hxd-nav-main {
    background: var(--hxd-nav-primary);
    color: #fff;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.hxd-nav-item.hxd-nav-main:hover {
    background: #006291;
    transform: scale(1.04);
}

button.hxd-nav-item.hxd-nav-main.hxd-nav-to-products:focus {
    background: #006291 !important;
}



.hxd-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hxd-nav-icon svg {
    width: 18px;
    height: 18px;
}

.hxd-nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Badge de Contagem (Estilo solicitado) */
.hxd-nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    /* bg-red-500 */
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* border-white/20 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* shadow-sm */
    line-height: 1;
    z-index: 10;
}

/* Smooth Scroll Adjustments */
.product-table,
.hxdevs-prod-rev,
.hxdevs-toc {
    scroll-margin-top: 80px;
    /* Ajuste para não ficar colado no topo */
}