/* =========================================
   ZENTRALES NAVBAR CSS (nav.css)
   ========================================= */

/* ── Mobile overflow fix (gilt für alle Seiten) ─────── */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
}
* { min-width: 0; }

/* Grundstruktur Navbar */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(8, 6, 15, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 45, 120, 0.2);
  flex-wrap: nowrap;
}

/* Logo */
.nav-logo {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.6rem;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #ff2d78, #00f5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  z-index: 600;
}

/* Links (Desktop) */
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0; padding: 0;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-links a:hover { color: #00f5ff; }
.nav-links a.active { color: #ff2d78; }

/* Teilen Button */
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,45,120,.1); border: 1px solid rgba(255,45,120,.3);
  border-radius: 100px; padding: .38rem .9rem;
  font-family: 'IBM Plex Mono', monospace; font-size: .62rem;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #ff2d78; cursor: pointer; transition: all .25s ease; flex-shrink: 0;
}
.share-btn:hover { background: rgba(255,45,120,.18); border-color: #ff2d78; box-shadow: 0 0 16px rgba(255,45,120,.25); transform: translateY(-1px); }
.share-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Logout Button (Falls benötigt) */
.btn-logout {
  background: transparent;
  color: #ff2d78;
  border: 1px solid #ff2d78;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
}

/* Hamburger Menü (Desktop versteckt) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; cursor: pointer;
  background: transparent; border: none; padding: 8px; z-index: 600;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,0.55); border-radius: 2px; transition: all .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #ff2d78; }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #ff2d78; }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
  .nav { padding: .85rem 1rem; }
  .nav-toggle { display: flex; }
  /* Share-Button auf Mobile verstecken – zu wenig Platz neben Hamburger */
  .nav .share-btn { display: none; }
  .nav-right { gap: .5rem !important; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(8,6,15,.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; height: 100vh;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 400; border: none; pointer-events: none;
  }
  .nav-links.open { transform: translateX(0); pointer-events: auto; }
  .nav-links a { font-size: 1.1rem !important; letter-spacing: .2em; color: rgba(255,255,255,0.55) !important; }
  .nav-links a.active, .nav-links a:hover { color: #ff2d78 !important; }
}

@media (max-width: 480px) {
  .share-btn span { display: none; }
  .share-btn { padding: .38rem .55rem; }
  .share-btn svg { width: 15px; height: 15px; }
}

/* ── SKELETON LOADER ─────────────────────────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.1)  50%,
    rgba(255,255,255,.05) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.6s infinite linear;
  border-radius: 4px;
}
/* Preset sizes */
.sk-line   { height: 14px; margin-bottom: 8px; }
.sk-line-sm{ height: 10px; margin-bottom: 6px; width: 60%; }
.sk-title  { height: 22px; margin-bottom: 10px; width: 40%; }
.sk-card   {
  background: rgba(16,13,26,.75);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: .6rem;
}
/* Helper: replaces .spinner for loading states */
.sk-block { padding: .5rem 0; }

/* ── VERSIONS-BADGE ──────────────────────────────────────── */
#version-badge {
  position: fixed;
  bottom: .6rem;
  right: .8rem;
  z-index: 9999;
  font-family: 'IBM Plex Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
  user-select: none;
}