/* navbar.css — mega-menu dropdowns (Roadmap / Guides / AI Assistants).
 *
 * Deliberately a separate file rather than part of common_styling.css.
 * common_styling.css is pre-cached cache-first by the service worker
 * (see static/sw.js APP_SHELL), so editing it leaves returning visitors on the
 * previous deploy's copy until their worker updates. This file is not in
 * APP_SHELL, and the worker only ever writes to its cache during install, so
 * requests for it always miss the cache and go to the network - nav styling
 * therefore updates on the very next load after a deploy.
 *
 * Keep nav/dropdown styling here, not in common_styling.css.
 *
 * These rules are shared by the hero nav on the home page and the wavy navbar
 * on every inner page, so both look like one system. Hero-only pieces
 * (.mega-menu-sidebar, .sidebar-item, .content-*) live in index_styling.css.
 */

.nav-item {
    position: relative;
    display: inline-block;
    padding: 15px 20px;
    cursor: pointer;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: -40%;
    width: fit-content;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);
    border-radius: 10px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 600;
}
.mega-menu * {
    text-wrap: nowrap;
}
.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}
.mega-menu-content {
    width: 100%;
    padding: 20px 10px;
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-text-secondary);
}
.ai-assistant-mega {
    min-width: 320px;
}
.ai-assistant-menu {
    padding: 0px;
    flex-direction: column;
    gap: 0;
}
.assistant-item {
    width: 100%;
    padding: 10px 15px;
    transition: 0.5s;
    margin-bottom: 5px;
}
.assistant-item:hover {
    background-color: var(--primary-light);
}
.assistant-item:last-child {
    margin-bottom: 0;
}
.assistant-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.assistant-title {
    font-family: var(--font-text-secondary);
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}
.assistant-description {
    font-family: var(--font-text-secondary);
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
    opacity: 0.8;
}
.assistant-item:hover .assistant-title {
    color: var(--accent);
}
.assistant-item:hover .assistant-description {
    opacity: 1;
}
