/* Minimal reset and hacker-cyberpunk theme with olive background and frosted glass */

:root {
  --bg: #3a4d2c;          /* olive solid background */
  --bg-elev: #2b2f33;      /* muted gray for panels */
  --text: #e6e6e6;          /* accessible light text */
  --muted: #b6c0c9;         /* secondary text */
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.25);
  --accent: #39ff8a;          /* neon cyber accent */
  --accent-soft: rgba(57,255,138,0.25);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first layout */
main {
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem;
  min-height: 60vh;
}

.image-frame {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  /* subtle cyber-glow edge */
  isolation: isolate;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.0);
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  /* frosted glass effect over the image */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  pointer-events: none;
  z-index: 1;
  border-radius: 14px;
  /* subtle edge glow for hacker vibe */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.0);
}

footer {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text);
}

.product-ad {
  display: inline-block;
  padding: 0.75rem 1rem;
  margin: 0.75rem auto 0;
  max-width: 760px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: left;
}

.product-ad h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #e7f0e7;
}

.product-ad a {
  text-decoration: none;
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.36);
  color: #eaffea;
  border: 1px solid rgba(60,255,165,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.product-ad a p {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  display: inline;
}

/* Footer copy styling for subtle hacker vibe */
footer p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Light focus for all anchors on keyboard navigation */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Accessibility helpers for contrast on dark olive surfaces */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #365019;
    --text: #1a1a1a;
  }
  body { background: var(--bg); color: var(--text); }
  .image-frame { border-color: rgba(0,0,0,0.15); }
  .product-ad { background: rgba(255,255,255,0.75); color: #111; }
  .product-ad a { background: #111; color: #fff; border-color: #999; }
  .image-frame::before { background: rgba(255,255,255,0.75); backdrop-filter: blur(4px); }
}

/* Responsive tweaks */
@media (min-width: 640px) {
  main { padding: 2rem 1.25rem; }
}
@media (min-width: 900px) {
  main { padding: 3rem 2rem; }
  .image-frame { border-radius: 16px; max-width: 860px; }
  .product-ad { font-size: 1rem; }
}
