/* Shared Navigation Styles - Consistent across all pages */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: #0c0c0c;
  color: #fff;
  height: 68px;
  box-sizing: border-box;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.nav.hidden {
  transform: translateY(-100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  height: 28px;
  width: auto;
  display: block;
}

.brand .fallback {
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand strong {
  font-weight: 800;
  letter-spacing: 0.05em;
}

.spacer {
  flex: 1;
}

/* Header Search Box */
.nav-search-wrapper {
  position: relative;
  min-width: 300px;
  max-width: 400px;
  flex: 0 1 auto;
}

/* Debug groups display - positioned below header */
.nav-search-wrapper .nav-debug-groups {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
}

.nav-search {
  position: relative;
  display: block;
}

.nav-search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  width: 18px;
  height: 18px;
  z-index: 1;
}

.nav-search input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
  padding: 10px 12px 10px 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  font-family: "Work Sans", system-ui, sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nav-search input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

/* Search results dropdown for header search */
.nav-search-wrapper .nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0c0c0c;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .nav-search-wrapper {
    min-width: 200px;
    max-width: 250px;
  }
  
  .nav-search-wrapper .nav-search-results {
    max-height: 300px;
  }
}

/* UNUSED: Menu button (burger icon) - removed from header */
/*
.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
  position: relative;
  z-index: 21;
  pointer-events: auto;
}

.menu:hover {
  background: rgba(255, 255, 255, 0.08);
}

.burger {
  width: 22px;
  height: 14px;
  display: grid;
  gap: 3px;
}

.burger span {
  display: block;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.menu.open .burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu.open .burger span:nth-child(2) {
  opacity: 0;
}

.menu.open .burger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
*/

/* UNUSED: Hamburger Menu Flyout - menu button removed, search moved to header */
/*
.nav-flyout {
  position: fixed;
  top: 68px;
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #0c0c0c;
  color: #fff;
  padding: 24px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  pointer-events: auto;
}

.nav-flyout.open {
  transform: translateX(0);
}

.nav-flyout__search-wrapper {
  position: relative;
  margin-bottom: 32px;
}

.nav-flyout__search {
  position: relative;
  display: block;
}

.nav-flyout__search .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  width: 18px;
  height: 18px;
}

.nav-flyout__search input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
  padding: 12px 12px 12px 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  font-family: "Work Sans", system-ui, sans-serif;
  transition: all 0.2s ease;
}

.nav-flyout__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nav-flyout__search input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.nav-flyout__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-flyout__item {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Work Sans", system-ui, sans-serif;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.nav-flyout__item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-flyout__item:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nav-flyout__item span {
  display: block;
  letter-spacing: 0.01em;
}

.nav-flyout__item--logout {
  margin-top: 8px;
  background: rgba(193, 51, 51, 0.2);
  border-color: rgba(193, 51, 51, 0.4);
}

.nav-flyout__item--logout:hover {
  background: rgba(193, 51, 51, 0.3);
  border-color: rgba(193, 51, 51, 0.6);
}
*/

/* Search Results Dropdown */
.nav-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #0c0c0c;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-search-result-item {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
  cursor: pointer;
}

.nav-search-result-item:last-child {
  border-bottom: none;
}

.nav-search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-search-result-item.nav-search-no-results {
  color: rgba(255, 255, 255, 0.6);
  cursor: default;
  font-style: italic;
}

.nav-search-result-item.nav-search-no-results:hover {
  background: transparent;
}

.nav-search-result-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

.nav-search-result-meta {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.nav-search-result-topic {
  cursor: default;
}

.nav-search-result-topic:hover {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  /* UNUSED: Flyout responsive styles */
  /*
  .nav-flyout {
    width: 100vw;
    max-width: 100vw;
  }
  */
  
  .nav-search-results {
    max-height: 300px;
  }
}

/* Debug: Google Groups Display (only visible when WP_DEBUG is enabled) */
.nav-debug-groups {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.95);
	color: #fff;
	padding: 6px 12px;
	font-size: 11px;
	font-family: "Courier New", monospace;
	z-index: 1000;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	line-height: 1.4;
	word-break: break-all;
}

.nav-debug-label {
	color: #60a5fa;
	font-weight: 600;
	margin-right: 8px;
}

.nav-debug-user {
	color: #fff;
	margin-right: 8px;
}

.nav-debug-separator {
	color: rgba(255, 255, 255, 0.3);
	margin: 0 8px;
}

.nav-debug-groups-list {
	color: #fff;
}

.nav-debug-groups-list span[style*="color: #ff6b6b"] {
	color: #ff6b6b !important;
}

/* Footer Styles */
.site-footer {
    background: #e8e2de;
    color: #0b0b0b;
    font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 28px 22px;
    margin: 5px 0 0 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.site-footer p {
	margin: 0;
	text-align: center;
}

.site-footer a {
	color: #0b0b0b;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.site-footer a:hover {
	opacity: 0.7;
}
