/* css/layout.css — Sticky Glass Header, Nav Links, Mobile Drawer & Footer */

/* Top Status Banner */
.top-notice-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 6px 0;
  color: var(--fg-mid);
  position: relative;
  z-index: 1001;
}

.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notice-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bias-glow);
  color: var(--bias);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--bias);
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
  color: var(--fg-bright);
  text-decoration: none;
  transition: transform var(--tr-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
  color: var(--fg-bright);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--bias);
  box-shadow: 0 0 14px var(--bias);
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-mid);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all var(--tr-fast);
  text-decoration: none;
  position: relative;
}

.nav-link:hover {
  color: var(--fg-bright);
  background: var(--bg-subtle);
}

.nav-link.is-active {
  color: #000000;
  background: var(--bias);
  font-weight: 700;
  box-shadow: 0 2px 10px var(--bias-glow);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.search-trigger-btn:hover {
  border-color: var(--line-strong);
  color: var(--fg-bright);
  transform: translateY(-1px);
}

.user-badge-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-bright);
  background: var(--bg-card);
  border: 1px solid var(--bias);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.user-badge-btn:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 0 14px var(--bias-glow);
}

.theme-btn, .audio-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--fg-mid);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--tr-fast);
}

.theme-btn:hover, .audio-toggle-btn:hover {
  color: var(--fg-bright);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--fg);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  z-index: 10001;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: right var(--tr-norm);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.mobile-drawer.is-open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-mid);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--tr-fast);
}

.drawer-link:hover, .drawer-link.is-active {
  color: var(--bias);
  background: var(--bg-subtle);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  padding: 48px 0 32px;
  margin-top: auto;
  font-size: 13.5px;
  color: var(--fg-dim);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand h4 {
  font-size: 17px;
  color: var(--fg-bright);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: var(--fg-mid);
}

.footer-col a:hover {
  color: var(--bias);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
