/* Disable only Community and Support dropdown options in Learn navigation */

/* Hide only Community and Support links in navigation dropdowns */
nav a[href*="/community"]:not(.footer-section a),
nav a[href*="/support"]:not(.footer-section a),
header a[href*="/community"]:not(.footer-section a),
header a[href*="/support"]:not(.footer-section a),
[role="navigation"] a[href*="/community"]:not(.footer-section a),
[role="navigation"] a[href*="/support"]:not(.footer-section a) {
    display: none !important;
}

/* Hide parent list items containing only Community or Support links in dropdowns */
nav li:has(> a[href*="/community"]):not(.footer-section li),
nav li:has(> a[href*="/support"]):not(.footer-section li),
header li:has(> a[href*="/community"]):not(.footer-section li),
header li:has(> a[href*="/support"]):not(.footer-section li) {
    display: none !important;
}

/* Target dropdown menus specifically - hide only Community and Support items */
[class*="dropdown"] li:has(> a[href*="/community"]),
[class*="dropdown"] li:has(> a[href*="/support"]),
[class*="Dropdown"] li:has(> a[href*="/community"]),
[class*="Dropdown"] li:has(> a[href*="/support"]),
[class*="menu"] li:has(> a[href*="/community"]),
[class*="menu"] li:has(> a[href*="/support"]),
[class*="Menu"] li:has(> a[href*="/community"]),
[class*="Menu"] li:has(> a[href*="/support"]) {
    display: none !important;
}

/* Hide dividers that appear immediately after Community or Support items */
nav li:has(> a[href*="/community"]) + li.divider,
nav li:has(> a[href*="/support"]) + li.divider,
nav li:has(> a[href*="/community"]) + hr,
nav li:has(> a[href*="/support"]) + hr {
    display: none !important;
}

/* Target Learn dropdown specifically - hide only Community and Support */
[data-dropdown="learn"] li:has(> a[href*="/community"]),
[data-dropdown="learn"] li:has(> a[href*="/support"]),
[aria-label*="Learn"] li:has(> a[href*="/community"]),
[aria-label*="Learn"] li:has(> a[href*="/support"]) {
    display: none !important;
}

/* For Next.js style components - target only Community and Support within dropdowns */
[class*="Learn"][class*="Dropdown"] a[href*="/community"],
[class*="Learn"][class*="Dropdown"] a[href*="/support"],
[class*="learn"][class*="dropdown"] a[href*="/community"],
[class*="learn"][class*="dropdown"] a[href*="/support"] {
    display: none !important;
}

/* Hide parent containers only if they contain Community or Support links */
[class*="Learn"][class*="Dropdown"] li:has(> a[href*="/community"]),
[class*="Learn"][class*="Dropdown"] li:has(> a[href*="/support"]),
[class*="learn"][class*="dropdown"] li:has(> a[href*="/community"]),
[class*="learn"][class*="dropdown"] li:has(> a[href*="/support"]) {
    display: none !important;
}

/* Disable ALL login and signup related elements */
a[href*="login"],
a[href*="signin"],
a[href*="sign-in"],
a[href*="signup"],
a[href*="sign-up"],
a[href*="/login"],
a[href*="/signin"],
a[href*="/sign-in"],
a[href*="/signup"],
a[href*="/sign-up"],
a[href*="app.labelbox"],
a[href*="app.quantumworks"],
[data-action="login"],
[data-action="signup"],
[data-action="sign-in"],
[data-action="sign-up"],
[data-testid*="login"],
[data-testid*="signin"],
[data-testid*="signup"],
[data-test*="login"],
[data-test*="signin"],
[data-test*="signup"],
[id*="login"],
[id*="signin"],
[id*="signup"] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
    text-decoration: none !important;
}

/* Target buttons with text matching login/signup patterns */
button[class*="login"],
button[class*="signin"],
button[class*="signup"],
button[class*="sign-up"],
a[class*="login-btn"],
a[class*="signin-btn"],
a[class*="signup-btn"],
a[class*="sign-up-btn"],
button[class*="Login"],
button[class*="SignIn"],
button[class*="SignUp"],
a[class*="Login"],
a[class*="SignIn"],
a[class*="SignUp"] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

/* Specific targeting for common button classes */
.lb-button[href*="login"],
.lb-button[href*="signup"],
.lb-button[href*="app."],
.btn[href*="login"],
.btn[href*="signup"],
.btn[href*="app."],
.button[href*="login"],
.button[href*="signup"],
.button[href*="app."] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

/* Remove hover effects on disabled buttons */
a[href*="login"]:hover,
a[href*="signup"]:hover,
a[href*="app."]:hover,
button[class*="login"]:hover,
button[class*="signup"]:hover,
.lb-button[href*="login"]:hover,
.lb-button[href*="signup"]:hover,
.lb-button[href*="app."]:hover {
    background-color: inherit !important;
    color: inherit !important;
    transform: none !important;
}

/* Target "Start for free" text specifically */
span[style*="cursor: default"] {
    opacity: 0.5 !important;
}

/* Disable all links containing login-related text in navigation */
nav a,
header a,
[role="navigation"] a,
.navigation a,
.navbar a,
.header a {
    pointer-events: auto;
}

nav a[onclick*="login"],
header a[onclick*="login"],
nav a[onclick*="signin"],
header a[onclick*="signin"],
nav a[onclick*="signup"],
header a[onclick*="signup"] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

/* Target any element with login/signup in onclick handlers */
[onclick*="login"],
[onclick*="signin"],
[onclick*="signup"],
[onclick*="Login"],
[onclick*="SignIn"],
[onclick*="SignUp"] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
}

/* Disable interactive elements that might be login/signup related */
[role="button"][aria-label*="login" i],
[role="button"][aria-label*="sign in" i],
[role="button"][aria-label*="signup" i],
[role="button"][aria-label*="sign up" i] {
    pointer-events: none !important;
    cursor: default !important;
    opacity: 0.5 !important;
}