/* Cyberpunk magenta grid + yellow hacker theme (mobile-first) */

/* 1) Reset (light) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 2) Theme variables (easy tweaking) */
:root {
  --bg: #1b0033;              /* deep magenta base */
  --grid: rgba(255, 0, 150, 0.25); /* magenta grid lines */
  --card: rgba(255, 255, 0, 0.12);  /* frosted glass tint */
  --border: rgba(255, 214, 0, 0.6);
  --text: #fffbd6;             /* readable on magenta */
  --yellow: #ffd400;           /* prominent hacker yellow */
  --yellow-dark: #e6c200;
  --shadow: 0 8px 28px rgba(0,0,0,.25);
}

html, body { height: 100%; }

/* 3) Magenta grid paper background (grid lines) + base color */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background-color: var(--bg);
  /* magenta grid paper: base + vertical + horizontal grid lines */
  background-image:
    linear-gradient(var(--bg), var(--bg)),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: auto, 24px 100%, 100% 24px;
  background-position: 0 0, 0 0, 0 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4) Layout scaffolding (mobile-first) */
main {
  display: block;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* 5) Frosted glass image frame (hero area) */
.image-frame {
  width: min(92vw, 860px);
  margin: 2rem auto;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 214, 0, 0.35);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image sizing inside frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  filter: saturate(1.05);
  /* slight neon glow around the image for cyberpunk vibe */
  box-shadow: 0 0 0 transparent;
}
.image-frame::after {
  /* subtle neon glow overlay behind image content for depth */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 40px rgba(255, 212, 0, 0.25);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 6) Hero headline (overlay via pseudo element for a clear hero) */
.image-frame::before {
  content: "When the Accursed Painting Changes Forever";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: clamp(14px, 3.2vw, 20px);
  color: #ffea4d;
  text-shadow: 0 0 8px rgba(255, 212, 0, 0.95),
               0 0 14px rgba(255, 212, 0, 0.75);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* 7) Footer + product ad (prominent CTA) */
footer {
  padding: 2rem 1rem 3rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
  color: rgba(255, 251, 216, 0.95);
}

/* Frosted glass card for the ad */
.product-ad {
  width: min(92vw, 520px);
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 214, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.product-ad h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fffecb;
  text-shadow: 0 0 6px rgba(255, 220, 0, 0.9);
}
.product-ad a {
  text-decoration: none;
}
.product-ad a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}
.product-ad p {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  color: #1b0a00;
  background: linear-gradient(135deg, #ffd600 0%, #ffb300 100%);
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.product-ad p:hover, .product-ad p:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}

footer p {
  font-size: 0.9rem;
  color: rgba(255, 254, 222, 0.9);
  opacity: 0.9;
}

/* 8) Accessibility: high contrast focus on interactive elements elsewhere too */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 9) Responsive tweaks (tablet/desktop) */
@media (min-width: 768px) {
  main { padding: 3rem 1.5rem; }
  .image-frame { width: min(900px, 84vw); margin: 3rem auto; }
  footer { padding-bottom: 4rem; }
}
