/**
 * Navigation Styles
 * Used on game pages for the fixed header navigation
 */

/* Dark mode (default) */
:root, :root[data-theme="dark"] {
  --accent:    #ff6a1a;
  --accent-glow: rgba(255,106,26,0.35);
  --text:      #ededed;
  --text-dim:  #8a8a8a;
  --text-mute: #5a5a5a;
  --nav-bg:    rgba(10, 10, 10, 0.95);
  --nav-border: rgba(255, 255, 255, 0.06);
}

/* Light mode */
:root[data-theme="light"] {
  --accent:    #ff6a1a;
  --accent-glow: rgba(255,106,26,0.25);
  --text:      #1a1a1a;
  --text-dim:  #666666;
  --text-mute: #999999;
  --nav-bg:    rgba(255, 255, 255, 0.95);
  --nav-border: rgba(0, 0, 0, 0.08);
}

header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

header.site .logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
}

header.site .logo .dot {
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--accent-glow);
  align-self: center;
}

header.site .logo .tld {
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 2px;
  font-size: 14px;
}

header.site nav.primary {
  display: flex;
  gap: 28px;
  align-items: center;
}

header.site nav.primary a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

header.site nav.primary a:hover {
  color: var(--text);
}

header.site .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

header.site .header-cta {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

header.site .live {
  width: 6px;
  height: 6px;
  background: #ff6a1a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-dim);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--nav-border);
  color: var(--text);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show/hide icons based on theme */
/* Default (no theme set) and dark mode show sun icon */
:root[data-theme="dark"] .theme-toggle .sun-icon,
:root:not([data-theme]) .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

:root[data-theme="dark"] .theme-toggle .moon-icon,
:root:not([data-theme]) .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
  position: absolute;
}

/* Light mode shows moon icon */
:root[data-theme="light"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
  position: absolute;
}

:root[data-theme="light"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Add top padding to body on game pages to account for fixed header */
body.game-page {
  padding-top: 70px;
}
