/* LaundryLUX header branding + desktop navigation layout override (static build patch) */

:root {
  --llx-navy: #0b1f3a;
  --llx-mint: #ccfbf1;
  --llx-mint-active: #99f6e4;
  --llx-cyan: #0ea5e9;
  --llx-border: #d8e0e7;
}

/* Brand block — all viewports */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.header-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.18);
}

.header-brand-wordmark {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.header-brand-laundry {
  color: var(--llx-navy);
}

.header-brand-lux {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 48%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-brand-subtitle {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
  color: var(--llx-navy);
  line-height: 1.2;
}

.header-actions {
  gap: 10px;
  flex-shrink: 0;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* Desktop: unified top bar with brand | nav | actions */
@media (min-width: 900px) {
  .app-shell {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav actions"
      "main main main";
    padding-bottom: 0 !important;
  }

  .app-shell:has(.bottom-nav-owner),
  .app-shell:has(.bottom-nav) {
    padding-bottom: 0 !important;
  }

  .app-header {
    display: contents;
  }

  .header-brand {
    grid-area: brand;
    align-self: center;
    padding: 10px 0 10px clamp(16px, 3vw, 28px);
    background: #fff;
    border-bottom: 1px solid var(--llx-border);
  }

  .header-actions {
    grid-area: actions;
    align-self: center;
    padding: 10px clamp(16px, 3vw, 28px) 10px 0;
    background: #fff;
    border-bottom: 1px solid var(--llx-border);
  }

  .bottom-nav {
    grid-area: nav;
    position: static !important;
    inset: unset !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0 !important;
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border-top: none !important;
    border-bottom: 1px solid var(--llx-border);
    scrollbar-width: thin;
  }

  .bottom-nav.bottom-nav-owner {
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
  }

  .bottom-nav a {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 108px;
    flex: 0 0 auto;
    max-width: none;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    border-radius: 13px;
    color: #475569;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .bottom-nav a span {
    line-height: 1.15;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .bottom-nav a.active {
    color: #0f766e;
    background: var(--llx-mint);
    box-shadow: inset 0 0 0 1px var(--llx-mint-active);
  }

  .bottom-nav a:hover:not(.active) {
    background: #f1f5f9;
    color: #0f172a;
  }

  .app-main {
    grid-area: main;
    padding-top: 12px;
    padding-bottom: 32px !important;
  }
}

/* Mobile / narrow: keep bottom nav, polish brand only */
@media (max-width: 899px) {
  .app-header {
    align-items: center;
    padding: 14px clamp(14px, 4vw, 24px);
  }

  .bottom-nav a {
    font-size: 11px;
    padding: 7px 4px;
  }

  .bottom-nav.bottom-nav-owner {
    min-height: 128px;
  }
}

@media (max-width: 899px) and (min-width: 760px) {
  .bottom-nav {
    width: 100% !important;
    max-width: none !important;
    inset: auto auto 0 0 !important;
    transform: none !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
  }
}
