/* ═══════════════════════════════════════════
   Supply Now — Shared Phone Frame Styles
   Include in every screen file:
   <link rel="stylesheet" href="shared-phone.css">
   ═══════════════════════════════════════════ */

/* ── Page Layout ── */
.page { max-width: 1400px; margin: 0 auto; padding: 40px 24px 64px; }
.page-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.page-subtitle { text-align: center; color: var(--color-on-surface-variant); font-size: 15px; margin-bottom: 32px; line-height: 1.5; }

/* ── Industry Selector ── */
.industry-bar {
  position: sticky; top: 0; z-index: 100; display: flex; justify-content: center;
  gap: 4px; padding: 12px 8px; background: rgba(248,250,252,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-outline-variant); margin-bottom: 32px;
}
.industry-tab {
  display: flex; align-items: center; gap: 6px; padding: 8px 18px;
  border-radius: 24px; cursor: pointer; border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--color-on-surface-variant); transition: all 0.2s;
}
.industry-tab .material-symbols-outlined { font-size: 20px; opacity: 0.6; transition: opacity 0.2s; }
.industry-tab.active {
  background: var(--color-primary-container); color: var(--color-primary); font-weight: 600;
}
.industry-tab.active .material-symbols-outlined { opacity: 1; }
.industry-tab:hover:not(.active) { background: var(--color-surface-container); }

/* ── Phone Frame ── */
.phone-row { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 16px 0; }
.phone-col { display: flex; flex-direction: column; align-items: center; }
.phone-label { font-size: 12px; font-weight: 600; color: var(--color-on-surface-variant); margin-top: 12px; text-align: center; }
.phone-frame {
  width: 375px; height: 812px; background: #1a1a1a; border-radius: 55px; padding: 12px;
  position: relative; box-shadow: var(--shadow-2), 0 0 0 1px rgba(0,0,0,0.1);
  transform: scale(0.72); transform-origin: top center;
}

/* ── Phone Screen (MUST be flex column for bottom-nav) ── */
.phone-screen {
  width: 100%; height: 100%; background: var(--color-surface); border-radius: 44px;
  overflow: hidden; overflow-y: auto; position: relative;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.phone-screen::-webkit-scrollbar { display: none; }
/* NEVER add style="display:block" on .phone-screen — it breaks bottom-nav */

/* ── Dynamic Island ── */
.dynamic-island {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: center; padding-top: 12px; padding-bottom: 8px;
  background: linear-gradient(to bottom, var(--color-surface) 60%, transparent);
  flex-shrink: 0;
}
.dynamic-island-pill { width: 120px; height: 34px; background: #1a1a1a; border-radius: 20px; }

/* ── Status Bar ── */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px 8px; font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.status-bar .time { font-size: 15px; font-weight: 700; }
.status-icons { display: flex; gap: 4px; align-items: center; }
.status-icons .material-symbols-outlined { font-size: 16px; }

/* ── Bottom Navigation ── */
/* sticky keeps it at bottom when content is long (scrollable),
   margin-top:auto pushes it down when content is short */
.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 8px 0 20px;
  background: var(--color-surface, #fff);
  border-top: 1px solid var(--color-outline-variant, #e2e8f0);
  flex-shrink: 0;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 500; color: var(--color-on-surface-variant);
  cursor: pointer; position: relative;
}
.nav-item .material-symbols-outlined { font-size: 24px; }
.nav-item.active { color: var(--color-primary); }
.nav-item.active .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.nav-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--color-error, #dc2626); color: #fff;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── App Bar ── */
.app-bar {
  display: flex; align-items: center; padding: 12px 20px; gap: 12px;
  flex-shrink: 0;
}
.app-bar .title { flex: 1; font-size: 17px; font-weight: 700; }
.app-bar .material-symbols-outlined { font-size: 24px; color: var(--color-on-surface-variant); cursor: pointer; }

/* ── Section Title / ID (for gallery mode) ── */
.section-title { font-size: 20px; font-weight: 700; }
.section-id {
  font-size: 10px; font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--color-surface-container); padding: 2px 8px;
  border-radius: 4px; color: var(--color-on-surface-variant); font-weight: 500;
}
.section-desc { color: var(--color-on-surface-variant); font-size: 14px; margin-bottom: 16px; line-height: 1.6; }

/* ── Preview Mode ── */
body.preview { background: #fff; }
body.preview .page-title,
body.preview .page-subtitle,
body.preview .industry-bar,
body.preview .section-title,
body.preview .section-desc,
body.preview .section-id { display: none !important; }
body.preview .page { padding: 20px 0; }
body.preview .phone-row { padding: 0; justify-content: center; }
body.preview .phone-col .phone-label { display: none; }

/* ── Screen Set transition ── */
.screen-set { transition: opacity 0.25s ease, transform 0.25s ease; }
