/* ============================================================
   App Header - Reusable header component
   ============================================================
   Used across dashboard, builder preview, and other app pages
   Includes logo, navigation, and user widget
*/

:root {
  --app-header-height: 56px;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--app-header-height);
  padding: 12px 0;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(31, 33, 60, 0.1);
  box-shadow: 0 4px 16px rgba(33, 26, 83, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Spacer to push content below fixed header */
.app-header-spacer {
  height: var(--app-header-height);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1536px, 96vw);
  margin: 0 auto;
  padding: 0 24px;
}

.app-header__left,
.app-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ========== Logo ========== */

.app-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f2238;
}

.app-header__logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0);
}

.app-header__logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ========== Navigation (optional) ========== */

.app-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header__nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2238;
  text-decoration: none;
  transition: background 0.15s ease;
}

.app-header__nav-link:hover {
  background: rgba(31, 33, 60, 0.06);
}

.app-header__nav-link--active {
  background: rgba(31, 33, 60, 0.1);
}

/* ========== Responsive ========== */

@media (max-width: 767px) {
  .app-header__inner {
    padding: 0 16px;
  }

  .app-header__nav {
    display: none;
  }
}
