/* InspectBook IB047.1 — Header NEW badge for Niche Finder
   Safe scope: visual menu link only. Desktop + mobile dropdown compatible. */

.ib-nichefinder-new-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    color: #f6fbff !important;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.ib-nichefinder-new-link:hover,
.ib-nichefinder-new-link:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06)) !important;
    border-color: rgba(255,255,255,.22) !important;
    box-shadow: 0 16px 42px rgba(0,0,0,.30), 0 0 20px rgba(255,43,43,.12) !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

.ib-nichefinder-new-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 20px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff3131 0%, #c40000 100%) !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    font-size: 10px !important;
    font-weight: 1000 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    transform: rotate(-12deg) !important;
    box-shadow: 0 0 10px rgba(255,49,49,.55), 0 8px 18px rgba(0,0,0,.22) !important;
    animation: ib047NewBlink 1.15s infinite ease-in-out !important;
}

.ib-nichefinder-new-text {
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: .01em !important;
    line-height: 1 !important;
}

@keyframes ib047NewBlink {
    0%, 100% {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
        box-shadow: 0 0 8px rgba(255,49,49,.50), 0 8px 18px rgba(0,0,0,.22);
    }
    50% {
        opacity: .58;
        transform: rotate(-12deg) scale(1.08);
        box-shadow: 0 0 18px rgba(255,49,49,.95), 0 10px 24px rgba(0,0,0,.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ib-nichefinder-new-badge {
        animation: none !important;
    }
}

/* Mobile dropdown: the v034 mobile script clones nav links into .ib-mobile-menu-panel.
   It removes the anchor class, but keeps child spans, so the badge/text stay styled. */
@media (max-width: 820px) {
    .ib-mobile-menu-panel a .ib-nichefinder-new-badge {
        flex: 0 0 auto !important;
        margin-right: 2px !important;
    }

    .ib-mobile-menu-panel a .ib-nichefinder-new-text {
        font-size: 13px !important;
        color: inherit !important;
    }

    .ib-mobile-menu-panel a:hover .ib-nichefinder-new-badge,
    .ib-mobile-menu-panel a:focus .ib-nichefinder-new-badge {
        color: #ffffff !important;
        background: linear-gradient(135deg, #ff3131 0%, #a80000 100%) !important;
    }
}
