/* =========================================
   LAYOUT COMPONENTS
   Header, Footer, Navigation
========================================= */

/* ===== HEADER ===== */
.bx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.bx-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.bx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--heading);
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand img {
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: rotate(10deg);
}

/* NAVIGATION */
.bx-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.bx-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.bx-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.bx-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease;
}

.bx-nav a:hover {
  opacity: 1;
  color: var(--primary);
  background: var(--surface);
}

.bx-nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.bx-nav a.active {
  color: var(--primary);
  background: var(--surface);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-md);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

/* ===== FOOTER & BOTTOM NAV ===== */
/* Footer and Bottom Navigation styles are in separate files:
   - footer-professional.css
   - bottom-nav-professional.css
*/

/* ===== MAIN ===== */
main {
  width: 100%;
  min-height: calc(100vh - 72px);
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bx-nav ul {
    gap: 20px;
  }

  .bx-nav a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }

  .bx-nav {
    display: none;
  }

  .bx-container {
    padding: 0 20px;
  }
}
img, video { max-width: 100%; height: auto; }
.container { width: min(1200px, 100%); padding-inline: 14px; }
* { box-sizing: border-box; }
