/* LA Today — shared navigation layout */

/* Hide old WP block navigation */
body:has(.app-layout) .wp-block-navigation,
body:has(.app-layout) .wp-block-navigation__container {
  display: none !important;
}

/* === TOP HEADER BAR === */
.la-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.la-header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.la-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #f1f5f9;
  text-decoration: none;
}
.la-header__logo svg { flex-shrink: 0; }
.la-header__links {
  display: flex;
  gap: 4px;
}
.la-header__link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.la-header__link:hover { color: #f1f5f9; background: #253347; }
.la-header__link--active { color: #D4772A; background: rgba(212,119,42,0.12); }
.la-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.la-header__platform {
  font-size: 11px;
  font-weight: 600;
  color: #D4772A;
  border: 1px solid rgba(212,119,42,0.3);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.la-header__platform:hover { background: #D4772A; color: #fff; }

/* === LAYOUT === */
.app-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
  min-height: 100vh;
}

/* Override theme wrappers that add top spacing */
body:has(.app-layout) .entry-content,
body:has(.app-layout) .wp-block-post-content,
body:has(.app-layout) [class*="wp-block-group"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.app-content,
.app-content .main-content,
.app-content .container-fluid {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.app-content .main-content {
  min-height: 0;
}
.app-content {
  flex: 1 1 auto !important;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* === SIDEBAR === */
.site-nav {
  position: sticky;
  top: 0;
  align-self: stretch;
  z-index: 10;
  width: 12rem;
  min-width: 12rem;
  flex-shrink: 0;
  min-height: 100vh;
  overflow-y: auto;
  background: #212529;
  color: #fff;
  padding: 0.75rem 0;
}
.site-nav__brand {
  display: block;
  padding: 0.5rem 1rem;
  color: #fd7e14 !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.5rem;
}
.site-nav__section { margin-bottom: 1rem; }
.site-nav__section-title {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
}
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.85rem;
}
.site-nav__link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.site-nav__link--current { background: rgba(253,126,20,0.2); color: #fd7e14; }
.site-nav__icon { font-size: 1rem; flex-shrink: 0; }

/* Mobile: hamburger + overlay + slide-in */
.site-nav-toggle { display: none; }
.site-nav-overlay { display: none; }

@media (max-width: 768px) {
  .site-nav-toggle {
    display: flex;
    position: fixed;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 102;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    background: #212529;
    color: #fd7e14;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.25rem;
  }
  .site-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
  }
  body.nav-open .site-nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 12rem;
    max-width: 85vw;
    min-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    z-index: 100;
    box-shadow: 4px 0 12px rgba(0,0,0,0.3);
  }
  body.nav-open .site-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .app-layout .site-nav { flex-shrink: 0; }
}
