/* phone-mockup.css: a moldura de iPhone em volta da tela de verdade.
 *
 * Proporção de iPhone (390 por 844 pontos, cerca de 9:19,5): a barra de status
 * de 44 pontos é desenhada aqui, com a ilha dinâmica, e a captura de 390 por
 * 800 (capture-site-screens.mjs) ocupa o resto. Cantos de 44 pontos, borda
 * fina, botões laterais. A largura vem de quem usa a moldura; o resto é
 * proporcional a ela, por isso as medidas são em `em` sobre a largura.
 */
:root {
  --phone-frame: #1D1E1C; /* fq-ignore: device bezel, the same in both themes */
  --phone-island: #000000; /* fq-ignore: dynamic island is black on every device */
}

.phone {
  /* 1em = 1/39 da largura, ou seja, 10 pontos de iPhone */
  --phone-width: 240px;
  position: relative;
  width: var(--phone-width);
  font-size: calc(var(--phone-width) / 39);
  padding: 0.45em;
  border-radius: 4.85em;
  background: var(--phone-frame);
  box-shadow: 0 0 0 1px var(--border-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-window); /* fq-ignore: bezel highlight */
}
/* os botões de volume e o lateral, finos, só para a silhueta */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: 0.3em;
  border-radius: 0.2em;
  background: var(--phone-frame);
}
.phone::before { left: -0.3em; top: 18%; height: 11%; }
.phone::after { right: -0.3em; top: 24%; height: 15%; }

.phone-display {
  position: relative;
  overflow: hidden;
  border-radius: 4.4em;
  background: var(--surface);
}
.phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4em;
  padding: 0 2.6em 0 3.2em;
  font-size: 1em;
  color: var(--text);
}
.phone-status time { font-size: 1.5em; font-weight: 600; letter-spacing: -0.01em; }
.phone-island {
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 12.6em;
  height: 3.7em;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--phone-island);
}
.phone-battery {
  position: relative;
  width: 2.5em;
  height: 1.2em;
  border-radius: 0.35em;
  border: 0.12em solid currentColor;
  opacity: 0.8;
}
.phone-battery::after {
  content: "";
  position: absolute;
  inset: 0.15em 0.6em 0.15em 0.15em;
  border-radius: 0.15em;
  background: currentColor;
}
.phone-screen { display: block; width: 100%; height: auto; }

@media (max-width: 760px) {
  .phone { --phone-width: 220px; }
}
