/* ── App shell ── */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* ── Views ── */
.view {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  padding: 56px 22px calc(var(--nav-height) + 28px);
  animation: viewIn .35s ease both;
}
.view.active { display: flex; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Session view gets no side padding (full-bleed feel) */
.view.session-view {
  padding: 0;
  background: var(--primary-dark);
  color: var(--white);
  min-height: 100vh;
}

/* ── Bottom nav ── */
#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  background: var(--white);
  border-top: 1px solid var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  color: var(--text-light);
  transition: color var(--transition);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 12px;
}
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* ── Page header ── */
.page-header { margin-bottom: 28px; }
.page-header h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Section label ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Home ── */
.home-top {
  padding-top: 16px;
  margin-bottom: 32px;
}
.home-greeting {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.home-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.streak-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: 0 8px 32px rgba(107,127,71,.25);
}
.streak-icon { font-size: 36px; line-height: 1; }
.streak-info { flex: 1; }
.streak-number {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.streak-label {
  font-size: 13px;
  opacity: .8;
  margin-top: 2px;
}
.streak-longest {
  font-size: 12px;
  opacity: .6;
  margin-top: 4px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.quick-card:active {
  transform: scale(.97);
  box-shadow: var(--shadow-md);
}
.quick-card-icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.quick-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.quick-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition);
}
.featured-card:active { transform: scale(.98); }
.featured-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.featured-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.featured-card-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.featured-card-play {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(107,127,71,.3);
}
.featured-card-play svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
  fill: var(--white);
}

/* ── Meditations list ── */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.filter-tab.active {
  background: var(--primary);
  color: var(--white);
}

.session-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition);
}
.session-card:active { transform: scale(.98); }
.session-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.session-card-dot.quick   { background: #8FA860; }
.session-card-dot.short   { background: #6B7F47; }
.session-card-dot.medium  { background: #4A5A2E; }
.session-card-info { flex: 1; }
.session-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}
.session-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.session-card-arrow {
  color: var(--text-light);
}

/* ── Meditations / Progress page spacer ── */
.list-spacer { height: 8px; }
