/* mockups.css — iPhone frame + Browser frame */

/* iPhone frame */
.iphone-frame {
  position: relative;
  width: 375px;
  height: 812px;
  background: #000;
  border: 12px solid #000;
  border-radius: 56px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 16px rgba(0,0,0,0.6),
    0 32px 80px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transform: scale(clamp(0.45, calc((100vh - 220px) / 812px), 0.95));
  transform-origin: center center;
  flex-shrink: 0;
}

.iphone-frame .dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}

.iphone-frame .status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 14px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  z-index: 50;
  pointer-events: none;
}

.status-bar-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-bar-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}

.iphone-frame .home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: var(--ink);
  border-radius: 3px;
  opacity: 0.2;
  z-index: 100;
}

.iphone-frame .phone-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 44px;
  overflow: hidden;
  background: var(--bg);
}

/* browser frame */
.browser-frame {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 16px rgba(0,0,0,0.5),
    0 32px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  transform-origin: center center;
  flex-shrink: 0;
}

.browser-frame--act2 {
  width: 1280px;
  height: 820px;
  transform: scale(clamp(0.35, min(calc((100vh - 220px) / 820px), calc((100vw - 540px) / 1280px)), 0.62));
}

.browser-frame--act3 {
  width: 1440px;
  height: 900px;
  transform: scale(clamp(0.3, min(calc((100vh - 220px) / 900px), calc((100vw - 540px) / 1440px)), 0.55));
}

.browser-titlebar {
  height: 36px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot--red { background: #ff5f57; }
.browser-dot--yellow { background: #febc2e; }
.browser-dot--green { background: #28c840; }

.browser-tab {
  width: 200px;
  height: 28px;
  background: #3a3a3a;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 8px;
}

.browser-urlbar-row {
  height: 36px;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}

.browser-urlbar {
  flex: 1;
  background: #2a2a2a;
  border-radius: 4px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.01em;
}

.browser-content {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--bg);
  min-height: 0;
}

.browser-frame--act2 .browser-content {
  height: calc(820px - 72px);
}

.browser-frame--act3 .browser-content {
  height: calc(900px - 72px);
}

/* act mount points */
.act-mount {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.act-mount:not([hidden]) {
  display: flex;
}

/* view sections inside mounts */
.view-section {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.view-section[hidden] {
  display: none;
}
