/* =========================================
   SEEDBiomed — Shared Navigation Bar
   Include on every page for a consistent nav.
   ========================================= */
@import url('google-fonts-local.css');

body {
    padding-top: 3.25em;
}

#nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    background-image: url("images/overlay.png");
    width: 100%;
    height: 3.25em;
    line-height: 3.25em;
    text-align: center;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: default;
    /* glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(5, 149, 152, 0.1), 0 4px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(5, 149, 152, 0.08);
}

#nav ul {
    position: relative;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav li {
    display: inline-block;
    margin: 0 0.5em;
    top: 0;
    position: relative;
    transition: top .15s ease-in-out;
}

#nav li > ul {
    display: none;
}

/* ── Discovery Hub dropdown ───────────────────────── */
/* dropotron positions/shows this — we style it here  */
.dropotron {
    background: #013f54;
    border-top: 3px solid #f69318;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px rgba(1,63,84,0.22), 0 2px 8px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 6px 0;
    list-style: none;
    text-align: left;
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.04em;
}

.dropotron li {
    display: block;
    margin: 0;
    top: 0 !important;
    transition: none;
}

.dropotron li a {
    display: block;
    padding: 9px 20px;
    color: rgba(255,255,255,0.75) !important;
    background: transparent !important;
    text-decoration: none;
    top: 0 !important;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.06em;
}

.dropotron li a:hover {
    background: rgba(5,149,152,0.25) !important;
    color: #ffffff !important;
}

.dropotron li:first-child a {
    border-top: none;
}

/* Active item inside dropdown */
.dropotron li.current a,
.dropotron li.active a {
    color: #f69318 !important;
    background: rgba(246,147,24,0.1) !important;
}

/* Override for i18n dropdown (injected by i18n.js) */
#nav li#seedLangSwitcher { position: fixed !important; display: inline-flex !important; }
#nav li#seedLangSwitcher > ul { display: none !important; }
#nav li#seedLangSwitcher > ul.open { display: block !important; }

/* Prevent nav-link styles cascading into trigger button spans only */
#nav li#seedLangSwitcher .seed-lang-btn span {
    top: 0;
    position: static;
    display: inline;
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    line-height: inherit;
}
#nav li#seedLangSwitcher:hover .seed-lang-btn span {
    background: transparent;
    color: inherit;
}
/* Prevent nav hover from bleeding into dropdown items */
#nav li:hover #seedLangSwitcher .seed-lang-dropdown span,
#nav li:hover #seedLangSwitcher .seed-lang-dropdown {
    background: transparent;
    color: unset;
}

#nav li a, #nav li span {
    transition: background-color .075s ease-in-out, color .075s ease-in-out;
    position: relative;
    display: block;
    text-decoration: none;
    color: #6e6b77;
    top: -6px;
    padding: 6px 1.5em 0.25em 1.5em;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    outline: 0;
}

#nav li:hover:not(#seedLangSwitcher), #nav li.active:not(#seedLangSwitcher) {
    top: 3px;
}

#nav li:hover a, #nav li:hover span {
    background: #C1CAC5;
    color: #fff;
}

#nav li.active a, #nav li.active span {
    background: #013f54;
    color: #fff;
}

#nav li.current a {
    background: #034d52;
    color: #fff;
}

#nav li a#logo {
    font-size: 1.1em;
}

/* Mobile-only elements injected by main.js — hidden on desktop */
#titleBar,
#navPanel {
    display: none;
}

/* Hide nav bar on tablets and below */
@media screen and (max-width: 980px) {
    #nav {
        display: none;
    }

    body {
        padding-top: 0;
    }

    #titleBar,
    #navPanel {
        display: block;
    }
}
