/* ═══════════════════════════════════════════════════════════
   SNSP GmbH – Casino Navigation Bar
   Purple / Dark Blue / Neon Casino Aesthetic
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Keyframes ── */
@keyframes snsp-nav-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes snsp-nav-pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
  50%      { box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(99, 102, 241, 0.2); }
}

@keyframes snsp-nav-float-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes snsp-nav-slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes snsp-diamond-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Nav Root ── */
.snsp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  animation: snsp-nav-slide-down 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Glass bar */
.snsp-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: linear-gradient(135deg,
    rgba(13, 10, 36, 0.92) 0%,
    rgba(30, 15, 60, 0.90) 40%,
    rgba(15, 20, 55, 0.92) 100%
  );
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(168, 85, 247, 0.15) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Shimmer line under nav */
.snsp-nav-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168, 85, 247, 0.0) 20%,
    rgba(168, 85, 247, 0.8) 35%,
    rgba(99, 102, 241, 0.9) 50%,
    rgba(168, 85, 247, 0.8) 65%,
    rgba(168, 85, 247, 0.0) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: snsp-nav-shimmer 4s linear infinite;
}

/* ── Logo ── */
.snsp-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.snsp-nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.snsp-nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.snsp-nav-logo:hover .snsp-nav-logo-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.6);
}

.snsp-nav-logo-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  border-radius: inherit;
}

.snsp-nav-logo-text {
  font-family: 'Rajdhani', 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* ── Desktop Links ── */
.snsp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.snsp-nav-links li {
  animation: snsp-nav-float-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.snsp-nav-links li:nth-child(1) { animation-delay: 0.05s; }
.snsp-nav-links li:nth-child(2) { animation-delay: 0.10s; }
.snsp-nav-links li:nth-child(3) { animation-delay: 0.15s; }
.snsp-nav-links li:nth-child(4) { animation-delay: 0.20s; }
.snsp-nav-links li:nth-child(5) { animation-delay: 0.25s; }
.snsp-nav-links li:nth-child(6) { animation-delay: 0.30s; }
.snsp-nav-links li:nth-child(7) { animation-delay: 0.35s; }
.snsp-nav-links li:nth-child(8) { animation-delay: 0.40s; }

.snsp-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(203, 213, 225, 0.85);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  white-space: nowrap;
}

.snsp-nav-link .snsp-nav-emoji {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.snsp-nav-link:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.snsp-nav-link:hover .snsp-nav-emoji {
  transform: scale(1.2) translateY(-1px);
}

/* Active page indicator */
.snsp-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.2));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.snsp-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* ── Hamburger (Mobile) ── */
.snsp-nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
  z-index: 10002;
}

.snsp-nav-burger:hover {
  background: rgba(168, 85, 247, 0.15);
}

.snsp-nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c084fc, #818cf8);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

.snsp-nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.snsp-nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.snsp-nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.snsp-nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 2, 18, 0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.snsp-nav-mobile-overlay.open {
  opacity: 1;
}

.snsp-nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg,
    rgba(13, 10, 36, 0.98) 0%,
    rgba(20, 12, 50, 0.98) 50%,
    rgba(10, 15, 40, 0.98) 100%
  );
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.snsp-nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.snsp-nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 4px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(203, 213, 225, 0.9);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.snsp-nav-mobile-link:hover,
.snsp-nav-mobile-link:active {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.2);
  color: #fff;
}

.snsp-nav-mobile-link.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.15));
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.snsp-nav-mobile-link .snsp-nav-emoji {
  font-size: 22px;
  width: 36px;
  text-align: center;
}

.snsp-nav-mobile-link .snsp-mobile-label {
  display: flex;
  flex-direction: column;
}

.snsp-nav-mobile-link .snsp-mobile-label span:first-child {
  font-weight: 600;
  font-size: 15px;
}

.snsp-nav-mobile-link .snsp-mobile-label span:last-child {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 400;
  margin-top: 2px;
}

/* Mobile divider */
.snsp-nav-mobile-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
  margin: 12px 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .snsp-nav-links {
    display: none;
  }
  .snsp-nav-burger {
    display: flex;
  }
  .snsp-nav-mobile-overlay,
  .snsp-nav-mobile-menu {
    display: block;
  }
}

@media (max-width: 400px) {
  .snsp-nav-logo-text {
    font-size: 18px;
    letter-spacing: 1px;
  }
  .snsp-nav-bar {
    padding: 0 14px;
  }
}

/* ── Body offset so content isn't behind nav ── */
body {
  padding-top: 76px !important;
}
body.snsp-has-nav {
  padding-top: 76px !important;
}

/* ── Ambient decorative particles (desktop only) ── */
@media (min-width: 901px) {
  .snsp-nav-bar::before {
    content: '◆';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: rgba(168, 85, 247, 0.3);
    animation: snsp-diamond-spin 8s linear infinite;
    pointer-events: none;
  }
}
