/* Shared site navigation - two-bar layout matching the main app */
.site-nav-wrapper {
  position: relative;
  z-index: 50;
}
/* ===== Red Header Bar ===== */
.site-nav-header {
  background: linear-gradient(to right, #dc2626, #b91c1c, #991b1b);
  border-bottom: 4px solid #7f1d1d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.site-nav-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .site-nav-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
  }
}
.site-nav-brand-text-group {
  min-width: 0;
  text-align: left;
}
.site-nav-brand-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .site-nav-brand-title {
    font-size: 20px;
  }
}
@media (min-width: 768px) {
  .site-nav-brand-title {
    font-size: 24px;
  }
}
.site-nav-brand-subtitle {
  color: #fecaca;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .site-nav-brand-subtitle {
    font-size: 14px;
    margin-top: 4px;
  }
}
.site-nav-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.site-nav-signin:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.site-nav-signin svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* ===== LED Clock & Live Indicator ===== */
.site-nav-clock-group {
  display: none;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 4px;
  transition: background 0.2s ease;
}
.site-nav-clock-group:hover {
  background: rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .site-nav-clock-group {
    display: flex;
  }
}
.site-nav-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #000;
  border: 2px solid #1a0000;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00;
  white-space: nowrap;
}
.site-nav-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff00;
  box-shadow: 0 0 6px #00ff00, 0 0 12px #00ff00;
  animation: siteNavLivePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes siteNavLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.site-nav-led-clock {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #000;
  border: 2px solid #1a0000;
}
.site-nav-led-digit {
  position: relative;
  width: 14px;
  height: 24px;
  flex-shrink: 0;
}
.site-nav-led-seg {
  position: absolute;
  border-radius: 2px;
  transition: all 0.1s ease;
}
.site-nav-led-seg.on {
  background: #ff0000;
  box-shadow: 0 0 3px #ff0000, 0 0 6px #ff0000, inset 0 1px 2px rgba(255,255,255,0.3);
}
.site-nav-led-seg.off {
  background: #1a0000;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.5);
}
.site-nav-led-seg.h-top    { width: 8px; height: 3px; left: 3px; top: 1px; }
.site-nav-led-seg.h-mid    { width: 8px; height: 3px; left: 3px; top: 11px; }
.site-nav-led-seg.h-bot    { width: 8px; height: 3px; left: 3px; bottom: 1px; }
.site-nav-led-seg.v-tl     { width: 3px; height: 8px; left: 1px; top: 3px; }
.site-nav-led-seg.v-tr     { width: 3px; height: 8px; right: 1px; top: 3px; }
.site-nav-led-seg.v-bl     { width: 3px; height: 8px; left: 1px; top: 13px; }
.site-nav-led-seg.v-br     { width: 3px; height: 8px; right: 1px; top: 13px; }
.site-nav-led-colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin: 0 1px;
}
.site-nav-led-colon span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 3px #ff0000, 0 0 6px #ff0000;
}
.site-nav-results-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #000;
  border: 2px solid #1a0000;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFD700;
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
  white-space: nowrap;
}
/* ===== Dark Navigation Bar ===== */
.site-nav {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}
.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
/* Desktop links */
.site-nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.site-nav-link:hover {
  color: #f8fafc;
  background: #1e293b;
}
.site-nav-link.active {
  color: #f8fafc;
  position: relative;
}
.site-nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #3b82f6;
}
.site-nav-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.site-nav-status {
  display: none;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
/* Mobile hamburger */
.site-nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.site-nav-hamburger:hover {
  background: #334155;
  border-color: #3b82f6;
}
.site-nav-hamburger svg {
  width: 20px;
  height: 20px;
}
.site-nav-hamburger .close-icon {
  display: none;
}
.site-nav-hamburger.open .menu-icon {
  display: none;
}
.site-nav-hamburger.open .close-icon {
  display: block;
}
/* Mobile dropdown */
.site-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 12px;
  animation: siteNavSlideDown 0.25s ease-out;
}
.site-nav-mobile.open {
  display: flex;
}
.site-nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-nav-mobile-link:hover {
  color: #f8fafc;
  background: #1e293b;
}
.site-nav-mobile-link.active {
  color: #f8fafc;
  position: relative;
}
.site-nav-mobile-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #3b82f6;
}
.site-nav-mobile-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
@keyframes siteNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  .site-nav-links {
    display: flex;
  }
  .site-nav-status {
    display: flex;
  }
  .site-nav-hamburger {
    display: none;
  }
  .site-nav-mobile {
    display: none !important;
  }
}
