/* McDev.TV — globale Top-Navigation (auf allen öffentlichen Seiten) */

.mcdev-topnav{
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(10,12,22,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #223226;
  font-family: 'Space Grotesk', sans-serif;
}
.tn-logo{
  font-weight: 800;
  font-size: 17px;
  color: #eef0fb;
  text-decoration: none;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.tn-logo span{ color: #7CFC6E; text-shadow: 0 0 8px rgba(124,252,110,0.6); }

.tn-links{
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tn-links a{
  color: #8990b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.tn-links a:hover{ color: #7CFC6E; background: rgba(124,252,110,0.08); }
.tn-links a.active{ color: #7CFC6E; background: rgba(124,252,110,0.12); }

.tn-right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.tn-burger{
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #131c15;
  border: 1px solid #223226;
  border-radius: 9px;
  color: #8990b8;
  cursor: pointer;
  padding: 0;
}
.tn-burger:hover{ color: #7CFC6E; border-color: rgba(124,252,110,0.5); }
.tn-burger svg{ width: 18px; height: 18px; }

/* Mobile-Drawer */
.tn-drawer{
  display: none;
  position: fixed;
  top: 55px;
  left: 0; right: 0;
  z-index: 79;
  background: rgba(10,12,22,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #223226;
  padding: 10px 16px 16px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 40px -18px rgba(0,0,0,0.7);
}
.tn-drawer.open{ display: flex; }
.tn-drawer a{
  color: #b9bfdd;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: 10px;
}
.tn-drawer a:hover{ color: #7CFC6E; background: rgba(124,252,110,0.08); }
.tn-drawer a.active{ color: #7CFC6E; background: rgba(124,252,110,0.12); }
.tn-drawer .tn-drawer-extra{
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #223226;
  display: flex;
  justify-content: center;
}

@media (max-width: 940px){
  .tn-links{ display: none; }
  .tn-burger{ display: flex; }
}

/* Der Login-Button des Auth-Widgets fügt sich in die Nav ein */
.mcdev-topnav .mcdev-account-btn.in-nav{ max-width: 140px; }

/* Live-Badge */
.tn-live{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  background: #e91916;
  border-radius: 999px;
  padding: 5px 11px;
  text-decoration: none;
  box-shadow: 0 0 14px -2px rgba(233,25,22,0.8);
  animation: tn-live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.tn-live:hover{ filter: brightness(1.1); }
.tn-live-dot{ width: 7px; height: 7px; border-radius: 50%; background: #fff; }
@keyframes tn-live-pulse{ 0%,100%{ box-shadow: 0 0 14px -2px rgba(233,25,22,0.8); } 50%{ box-shadow: 0 0 20px 1px rgba(233,25,22,0.95); } }
@media (prefers-reduced-motion: reduce){ .tn-live{ animation: none; } }
