/* Mirror Portal – cyberpunk, lime blur, frosted glass (mobile-first) */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { padding: 0; margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: #e8f0f6;
  background: #0a0a0a;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Lime abstract blur background (soft, decorative) */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}
body::before {
  left: -12vmax;
  top: -12vmax;
  background:
    radial-gradient(circle at 25% 25%, rgba(0,255,128,.65), transparent 40%),
    radial-gradient(circle at 60% 60%, rgba(0,255,128,.35), transparent 40%);
}
body::after {
  right: -12vmax;
  bottom: -12vmax;
  background:
    radial-gradient(circle at 60% 40%, rgba(255,165,0,.65), transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(0,255,128,.25), transparent 40%);
}

/* Layout (mobile-first) */
main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: calc(100vh - 140px);
}

.image-frame {
  width: min(92vw, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* subtle neon hue shift for cyberpunk vibe */
  filter: saturate(1.1) contrast(1.05);
}

/* Frosted glass helper (soft glow) on frame edge */
.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(0, 255, 128, 0.15);
  pointer-events: none;
}

/* Footer with Product Ad (prominent CTA) */
footer {
  padding: 1.25rem;
  text-align: center;
  color: #d9e3ea;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Product Ad card (frosted glass) */
.product-ad {
  display: inline-block;
  text-align: left;
  margin: 0 auto 1rem;
  padding: 0.6rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 165, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.product-ad h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #a8ff66;
  text-shadow: 0 0 6px rgba(168,255,102,.6);
}
.product-ad a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.product-ad a > p {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  /* orange CTA button look */
  background: linear-gradient(135deg, #ffd27a 0%, #ff9a1f 100%);
  color: #251a01;
  font-weight: 800;
  user-select: none;
  transition: transform .2s ease, filter .2s ease;
}
.product-ad a:focus-visible {
  outline: 3px solid #00ffbd;
  outline-offset: 2px;
  border-radius: 8px;
}
.product-ad a > p:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.product-ad a > p:active {
  transform: translateY(0);
  filter: brightness(.98);
}

/* Global focus for accessibility on links (for keyboard users) */
a:focus-visible {
  outline: 3px solid #00ffbd;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  main {
    padding: 3rem 2rem;
    min-height: calc(100vh - 180px);
  }
  .image-frame {
    width: 760px;
    border-radius: 22px;
  }
  footer { padding: 2rem; }
  .product-ad h3 { font-size: 1.05rem; }
}
