/* _frame.css — iPhone 15 Pro device frame, status bar, home indicator, page chrome */

.back-link {
  position: fixed;
  top: 16px;
  right: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--card-bg);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  z-index: 100;
}
.back-link:hover { color: var(--accent); }

.device {
  width: 417px; /* 393 logical + 12*2 bezel */
  height: 876px; /* 852 + 12*2 */
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(60, 50, 120, 0.20))
          drop-shadow(0 12px 24px rgba(60, 50, 120, 0.15));
}

.bezel {
  width: 100%;
  height: 100%;
  background: #0A0A0A;
  border-radius: 55px;
  padding: 12px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screen {
  width: 393px;
  height: 852px;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: var(--screen-bg);
  color: var(--text-primary);
}
.screen::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain-overlay);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.screen > * { position: relative; z-index: 1; }

.dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 35px;
  background: #000;
  border-radius: 999px;
  z-index: 50;
}

.status-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 54px;
  padding: 18px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 40;
  pointer-events: none;
}
.sb-right { display: inline-flex; align-items: center; gap: 6px; }
.sb-right svg { width: 18px; height: 12px; fill: currentColor; }
.sb-battery {
  width: 26px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  margin-left: 2px;
}
.sb-battery::after {
  content: ""; position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}
.sb-battery-fill {
  position: absolute; top: 1.5px; left: 1.5px; bottom: 1.5px;
  width: 80%;
  background: currentColor;
  border-radius: 1.5px;
}

.home-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-primary);
  opacity: 0.85;
  z-index: 60;
  pointer-events: none;
}

/* Account for the 54px status bar area above content */
.screen > .content,
.screen > main,
.screen > .screen-content {
  padding-top: 66px;
}

.caption {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 13px;
}
.caption code {
  background: var(--card-bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}
