﻿/* ============================================================================
   TryoutEngine top navigation.

   Single source for the public-site nav bar used by the master pages, so the
   login / access-code / parent-portal headers match the marketing site instead
   of falling back to the old Bootstrap navbar-inverse.

   One look everywhere - the marketing site, login, access code and the
   parent portal all get the same dark bar.

   Every class is te- prefixed on purpose: Bootstrap 3 is still loaded on these
   pages and owns .nav, .navbar and .nav-link.
   ========================================================================== */

body.te-has-nav {
    padding-top: 64px;
}

.te-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 64px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11,11,13,0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
}

.te-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.te-nav-logo {
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #ED4E22;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    line-height: 0;
}

.te-nav-logo:hover,
.te-nav-logo:focus {
    text-decoration: none;
    color: #ED4E22;
}

.te-nav-logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    border: 0;
    border-radius: 3px;
}

.te-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.te-nav-link {
    color: #8A8A96;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.te-nav-link:hover,
.te-nav-link:focus {
    color: #E8E8EC;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
}

.te-nav-link.te-active {
    color: #ED4E22;
}

a.te-nav-login,
.te-nav-login {
    background: #ED4E22;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    margin-left: 8px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(237,78,34,0.2);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

a.te-nav-login:hover,
a.te-nav-login:focus,
.te-nav-login:hover {
    background: #C4401C;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(237,78,34,0.3);
}

.te-nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    flex-direction: column;
    gap: 5px;
}

.te-nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #8A8A96;
    border-radius: 1px;
}

/* ---- mobile ------------------------------------------------------------ */

@media (max-width: 768px) {

    .te-nav {
        padding: 0 20px;
    }

    .te-nav-burger {
        display: flex;
    }

    .te-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(11,11,13,0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        gap: 4px;
    }

    .te-nav-links.te-open {
        display: flex;
    }

    .te-nav-link {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }

    a.te-nav-login,
    .te-nav-login {
        margin: 8px 0 0 0;
        text-align: center;
        width: 100%;
    }
}
