/* Subtle Frosted Glass, Purple Grid + Hacker Theme - Mobile-First CSS */
/* Reset & base */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

:root {
  --bg: #0a0710;
  --grid: rgba(127, 0, 255, 0.25);
  --fg: #f6f7ff;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.22);
  --redA: #ff2d55;
  --redB: #ff1e3a;
  --glow: rgba(255, 0, 90, 0.8);
}

body {
  color: var(--fg);
  background-color: var(--bg);
  /* purple grid paper background */
  background-image:
    linear-gradient(rgba(127, 0, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 0, 255, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Layout sections */
main  { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }

.image-frame {
  width: min(92%, 860px);
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08); /* frosted glass */
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Footer / ad panel (frosted, neon red CTA) */
footer { padding: 1.25rem 1rem 2rem; }

.product-ad {
  width: min(92%, 860px);
  margin: 0 auto 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(8, 0, 40, 0.4);
  border: 1px solid rgba(180, 0, 180, 0.5);
  color: #ffd9f5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 1rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #ffd6f1;
}

.product-ad a { text-decoration: none; }

.product-ad a p {
  margin: 0;
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,0,90,.95), rgba(255,0,0,.75));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 16px rgba(255,0,90,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover { transform: translateY(-1px); }

.product-ad a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

footer p {
  text-align: center;
  color: rgba(230, 230, 255, 0.9);
  font-size: 0.875rem;
  margin-top: .75rem;
  opacity: 0.9;
}

/* Accessibility helpers for high contrast on focus */
:focus { outline: none; }
a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Responsive tweaks */
@media (min-width: 768px) {
  .image-frame { padding: 1.25rem; }
  .product-ad { padding: 1rem 1.25rem; }
  .product-ad h3 { font-size: 1.05rem; }
}