/* Global reset and theme */
:root{
  --bg: #000;
  --bg-dark: #000;
  --card: rgba(8,8,12,.65);
  --glass: rgba(8,8,12,.60);
  --red: #ff2a2a;
  --red-dark: #e60000;
  --text: #f2f2f2;
  --muted: #bfbfbf;
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Black checkerboard background */
  background-image:
    linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%, #333),
    linear-gradient(-45deg, #333 25%, transparent 25%, transparent 75%, #333 75%, #333);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Harvest accessibility: focus outlines for keyboard nav */
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Layout: mobile-first, responsive scaling */
main {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  min-height: calc(100vh - 120px);
  align-content: center;
  justify-items: center;
}

.image-frame {
  width: min(94%, 880px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,0,0,.55);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  overflow: hidden;
}

/* Image inside frosted frame */
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  max-height: 100%;
  object-fit: contain;
  filter: saturate(1.05);
}

/* Subtle neon glow on the frame for cyberpunk vibe */
.image-frame::after {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(255,0,0,.25), transparent 40%);
  mix-blend-mode: screen;
  filter: blur(2px);
}
.image-frame { position: relative; }

footer {
  width: 100%;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,0,0,.4);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Product ad block (frosted glass card) */
.product-ad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(10,10,12,.55);
  border: 1px solid rgba(255,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  min-width: 200px;
}
.product-ad h3 {
  margin: 0 0 .25rem 0;
  font-size: 1rem;
  color: #ff5a5a;
  letter-spacing: .2px;
}
.product-ad a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: .15rem 0;
  border-bottom: 1px solid rgba(255,0,0,.6);
}
.product-ad a:hover { color: #ffd9d9; }

/* Helper: link color baseline to suit dark theme */
a { color: #ff2a2a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* CTA-ready utility (optional for developers) */
.btn {
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,0,0,.65);
  color: #fff;
  background: linear-gradient(180deg, rgba(190,0,0,.95), rgba(140,0,0,.95));
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: none;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,0,0,.98), rgba(150,0,0,.95)); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 2rem; }
  .image-frame { padding: 1.25rem; }
}
@media (min-width: 1024px) {
  main { padding: 2.5rem 3rem; }
  .image-frame { border-radius: 22px; padding: 1.5rem; }
}
