/* ══════════════════════════════════════════════════════════════════════════
   TFL GLOBAL NAV & FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

/* ── HEADER ── */
#tfl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

#tfl-nav.scrolled {
  border-bottom-color: var(--rule);
}

/* ── LOGO ── */
#tfl-nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#tfl-nav .logo-svg {
  width: 28px;
  height: 28px;
}

#tfl-nav .nav-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── NAV LINKS ── */
#tfl-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

#tfl-nav .nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

#tfl-nav .nav-links a:hover {
  color: var(--ink);
}

/* ── CTA BUTTON ── */
#tfl-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  transition: opacity 0.2s !important;
}

#tfl-nav .nav-cta:hover {
  opacity: 0.8;
}

/* ── SIGN IN LINK ── */
#tfl-nav .nav-signin {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  margin-right: 16px;
}

#tfl-nav .nav-signin:hover {
  color: var(--ink);
}

/* ── AVATAR ── */
#tfl-nav .nav-avatar-wrap {
  position: relative;
}

#tfl-nav .nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,0.08);
  cursor: pointer;
  display: block;
}

#tfl-nav .avatar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: none;
}

#tfl-nav .avatar-dropdown.open {
  display: block;
}

#tfl-nav .dropdown-email {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink3);
  border-bottom: 1px solid var(--rule);
  word-break: break-all;
}

#tfl-nav .dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

#tfl-nav .dropdown-link:hover {
  background: var(--off);
}

#tfl-nav .dropdown-signout {
  color: #cc2200;
}

/* ── HAMBURGER ── */
#tfl-nav .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

#tfl-nav .hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
  transform-origin: center;
}

#tfl-nav .hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

#tfl-nav .hamburger.open span:nth-child(2) {
  opacity: 0;
}

#tfl-nav .hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU ── */
#tfl-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 99;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 0;
}

#tfl-mobile-menu.open {
  display: flex;
}

#tfl-mobile-menu a {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink2);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}

#tfl-mobile-menu a:last-child {
  border-bottom: none;
}

#tfl-mobile-menu a:hover {
  color: var(--ink);
}

#tfl-mobile-menu .mobile-cta {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
  border-bottom: none;
}

#tfl-mobile-menu .mobile-signout {
  color: #cc2200;
}

/* ── FOOTER ── */
#tfl-footer {
  padding: 32px 10%;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#tfl-footer .footer-left,
#tfl-footer .footer-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink4);
  letter-spacing: 0.06em;
}

#tfl-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

#tfl-footer a:hover {
  color: var(--ink3);
}

/* ── MOBILE BREAKPOINT ── */
@media (max-width: 900px) {
  #tfl-nav {
    padding: 0 24px;
  }

  #tfl-nav .nav-links {
    display: none;
  }

  #tfl-nav .hamburger {
    display: flex;
  }

  #tfl-footer {
    padding: 24px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
