/* NavMenu (Components/Layout/NavMenu.razor) — desktop + mobile navigation */
.MainNavBar {
    --nav-pill-height: 2.3rem;     /* language pill + social icons share this height */
    border-color: var(--color-secondary);
}
.regularbtn {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    border-radius: 0.25rem;
    padding: 0.3rem 0.9rem;
}
.regularbtn:hover {
    background-color: rgba(255,255,255,0.2);
}
.GoldiconMain {
    fill: var(--color-secondary);
}
/* FI / EN language switch (desktop nav + mobile bar): one translucent pill with a gold outline,
   the active language filled gold. Small round flag in front of each code. */
.lang-switch {
    display: inline-flex;
    align-items: stretch;
    gap: 0.15rem;
    box-sizing: border-box;
    height: var(--nav-pill-height);
    padding: 0.2rem;
    border-radius: 2rem;
    border: 1px solid var(--color-secondary);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
}
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    border: none;
    border-radius: 2rem;
    background: transparent;
    color: #ffffff;
    font-family: "NunitoRegular";
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}
.lang-switch-btn:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.15); }
.lang-switch-btn--active,
.lang-switch-btn--active:hover {
    background-color: var(--color-secondary);
    color: var(--color-secondary-dark);
    font-weight: bold;
    opacity: 1;
    cursor: default;
}
.lang-flag {
    display: inline-block;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

/* Instagram / Facebook icons in the desktop nav: plain light-gold icons (same gold as the logo
   and the active language), no border or background, as tall as the language pill. */
.nav-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-pill-height);
    padding: 0 0.3rem;
    line-height: 0;
}
.nav-social-link + .nav-social-link { margin-left: 0.6rem; }   /* space between the two icons */
.nav-social-link svg {
    width: calc(var(--nav-pill-height) - 0.6rem);
    height: calc(var(--nav-pill-height) - 0.6rem);
    fill: var(--color-secondary);
    transition: fill 0.2s, transform 0.15s;
}
.nav-social-link:hover svg { fill: #ffffff; transform: scale(1.08); }
.nav-social-link--last { margin-right: 1.25rem; }   /* gap before the language pill */

/* Mobile bar turns darker turquoise while the menu is open: the pill is gold like the bar icons —
   gold outline, active language filled gold (same as the closed bar). Flags keep their colours. */
.nav-bar--open .lang-switch { border-color: var(--color-secondary); }
.nav-bar--open .lang-switch-btn--active,
.nav-bar--open .lang-switch-btn--active:hover { background-color: var(--color-secondary); color: var(--color-secondary-dark); }

/* Responsive visibility — own breakpoints, bypasses Bootstrap/MudBlazor d-* conflicts */
@media (max-width: 991.98px) {
    .desktop-nav { display: none !important; }
}
@media (min-width: 992px) {
    .nav-bar { display: none !important; }
    .nav-mobile-menu { display: none !important; }
}

/* Desktop nav bar */
.desktop-nav {
    background-color: var(--color-main);
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 0.5rem;
    box-shadow: 0px 6px 15px 4px rgba(0,0,0,0.1);
}
.desktop-nav-logo img { height: 3rem; }
.desktop-nav-items { display: flex; align-items: center; gap: 0.25rem; flex: 1; margin-left: 1.5rem; }
.desktop-nav-items > *:not(:last-child) {
    margin-right: 0.75rem;
    padding-right: 0.75rem;
}
.desktop-nav-right { display: flex; align-items: center; gap: 0.25rem; }
.desktop-nav-link {
    color: #ffffff !important;
    font-family: "NunitoRegular";
    background: transparent;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.desktop-nav-link:hover { background-color: rgba(255,255,255,0.18); }
.desktop-nav-link.active { background-color: rgba(255,255,255,0.25); }

/* Dropdown */
.desktop-dropdown { position: relative; }
.desktop-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    background: white;
    min-width: 13rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    z-index: 200;
    padding: 0.25rem 0;
}
.desktop-dropdown:hover .desktop-dropdown-menu,
.desktop-dropdown:focus-within .desktop-dropdown-menu { display: block; }
.desktop-dropdown-item {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--color-secondary-dark);
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.desktop-dropdown-item:hover { background-color: #faf5eb; }
.desktop-has-submenu::after { content: '›'; font-size: 1.1rem; opacity: 0.6; margin-left: 0.5rem; }

/* Nested submenu */
.desktop-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 12rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    z-index: 201;
    padding: 0.25rem 0;
}
.desktop-dropdown-item:hover .desktop-submenu,
.desktop-dropdown-item:focus-within .desktop-submenu { display: block; }
.desktop-submenu-link {
    display: block;
    padding: 0.45rem 1rem;
    color: var(--color-secondary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}
.desktop-submenu-link:hover { background-color: #faf5eb; }

/* Desktop-style nav bar (992px+): "D" letter logo on the left, links to the home page
   (it replaces the old "Home" nav item, so it gets a hover cue).
   The PNG is used as a mask and filled with the same gold as the FI/ENG buttons. */
.nav-letter-logo {
    display: block;
    flex-shrink: 0;
    height: 2.1rem;
    aspect-ratio: 347 / 191;
    background-color: var(--color-secondary);
    -webkit-mask: url("/Images/Logos/dreamslogo_letter.png") center / contain no-repeat;
    mask: url("/Images/Logos/dreamslogo_letter.png") center / contain no-repeat;
    transition: background-color 0.2s, transform 0.15s;
}
.nav-letter-logo:hover { background-color: #ffffff; transform: scale(1.06); }

/* ── Mobile bar grid (MudGrid Spacing="0") ──
   Nested rows keep the old Bootstrap 0.75rem cell padding. The language switch sits in one
   full-width cell, pushed to the right edge of the bar. */
.nav-bar-row > .mud-grid-item { padding-left: 0.75rem; padding-right: 0.75rem; }
.nav-bar-row > .mud-grid-item.nav-lang-cell { display: flex; justify-content: flex-end; }

/* Admin gear menu (desktop/tablet nav): MudMenu popover is rendered outside the nav, so it is
   styled through its PopoverClass. */
.nav-admin-btn { padding: 0.25rem 0.4rem; line-height: 0; }
.nav-admin-menu .mud-menu-item {
    color: var(--color-secondary-dark);
    font-family: "NunitoRegular";
}
.nav-admin-menu .mud-menu-item .mud-icon-root { color: var(--color-secondary); }
.nav-admin-menu .mud-menu-item:hover { background-color: #faf5eb; }
