/* CSS: Hacker-y, neon yellow gradient with purple accents, frosted glass, mobile-first */

/* Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #f6f3ff;
  /* Yellow-forward gradient background with a cyberpunk purple accent */
  background: linear-gradient(135deg, #ffe987 0%, #ffd166 40%, #f7c500 70%, #8a3cff 100%);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CSS variables for easy theme tweaks */
:root {
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text: #f8f6ff;
  --shadow: 0 12px 32px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-lg: 18px;
  --glow: 0 0 0 0 rgba(0,0,0,0);
}

main {
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  min-height: 60vh;
}

.image-frame {
  width: min(92vw, 860px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  outline: 0;
}
.image-frame:focus-within,
.image-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, .65);
  border-color: rgba(139, 92, 246, .8);
}
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: saturate(1.05);
}

/* Frosted glass accent around the image (subtle halo) */
.image-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
  border: 1px solid rgba(139,92,246,.25);
  box-shadow: inset 0 0 40px rgba(139,92,246,.25);
  opacity: .95;
  mix-blend-mode: screen;
}

/* Footer / ad section */
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: rgba(255,255,255,.95);
  background: transparent;
}

/* Frosted glass ad panel with a prominent purple CTA */
.product-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin: 0.5rem auto;
  max-width: 92%;
}
.product-ad h3 {
  font-size: 1.05rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fff;
}
.product-ad a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(124, 58, 237, .6);
}
.product-ad a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124,58,237,.75); }
.product-ad a:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }

footer p {
  margin: .5rem 0 0;
  font-size: .85rem;
  color: rgba(255,255,255,.92);
}

/* Small screens get breathing room; larger screens gain more padding / space */
@media (min-width: 700px) {
  main { padding: 4rem 2rem; min-height: 70vh; }
  .product-ad { margin: 1rem auto; }
  .image-frame { padding: 1rem; }
}