/* ==========================================================================
   Life HQ — App Shell Layout
   ========================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns var(--dur-normal) var(--ease-soft);
}

.app-shell.is-collapsed {
  grid-template-columns: var(--sidebar-width-collapsed) 1fr;
}

.content-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main {
  min-width: 0;
  padding: var(--space-lg) var(--space-xl) var(--space-3xl);
}

.main-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Topbar — mobile only */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-edge);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-strong);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--white);
  color: var(--ink-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--periwinkle-600);
}
.icon-btn:active { transform: translateY(0) scale(0.96); }
.icon-btn svg { width: 20px; height: 20px; }

/* Section wrapper shared by all dashboard cards */
.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.section-title {
  font-size: var(--fs-display-md);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

/* Small geometric glyph accent — a nod to Gillian Elayne Designs' brand
   marks (✦ ◈ ✿ ⟡ ⬡ ❖ ◉), used sparingly before section titles. */
.section-glyph {
  font-size: 0.6em;
  color: var(--color-accent);
  transform: translateY(-2px);
}
.section:nth-of-type(2) .section-glyph { color: var(--periwinkle-400); }
.section:nth-of-type(3) .section-glyph { color: var(--sage-500); }
.section:nth-of-type(4) .section-glyph { color: var(--color-accent); }
.section:nth-of-type(5) .section-glyph { color: var(--periwinkle-500); }
.section:nth-of-type(6) .section-glyph { color: var(--sage-500); }
.section:nth-of-type(7) .section-glyph { color: var(--color-accent); }

.section-sub {
  color: var(--ink-light);
  font-size: var(--fs-small);
}

.section-link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--periwinkle-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.section-link:hover { gap: 8px; color: var(--periwinkle-700); }
.section-link svg { width: 16px; height: 16px; }

/* Grid systems */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-md);
}

.grid-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.dashboard-footer {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-sm);
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
