/* Night hacker theme – single CSS, mobile-first, accessible, frosted glass */

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

html, body { height: 100%; margin: 0; padding: 0; }

:root {
  --bg0: #000;
  --bg1: #05070f;
  --bg2: #02040a;
  --cyan: #00e5ff;
  --cyan2: #00b8d8;
  --glass: rgba(6, 12, 24, 0.65);
  --text: #e6ffff;
  --muted: #9af2ff;
  --shadow: 0 8px 28px rgba(0, 228, 255, 0.25);
}

/* Light reset for typography and layout */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 40%, var(--bg0) 100%);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle cyan glow for hacker vibe */
body::before {
  content: "";
  position: fixed;
  inset: -2px;
  background: radial-gradient(circle at 20% 0, rgba(0,230,255,0.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0,255,230,0.15), transparent 40%);
  pointer-events: none;
  z-index: -1;
  filter: blur(0.4px);
}

/* Layout wrappers */
main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  flex: 1 1 auto;
}

.image-frame {
  width: min(92vw, 720px);
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  display: block;
}

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

/* Footer / product ad as frosted glass panel + CTA */
footer {
  width: 100%;
  padding: 1.75rem 1rem 2rem;
  display: flex;
  flex-direction:column;
  align-items: center;
  gap: 0.75rem;
  color: #b9f6ff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.25) 60%);
  border-top: 1px solid rgba(0,255,255,0.25);
}

.product-ad {
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(0,255,255,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.product-ad h3 {
  font-size: 1rem;
  color: #aaf7ff;
  margin: 0 0 .25rem;
  letter-spacing: .2px;
}

.product-ad a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #00e5ff 0%, #00b8d8 100%);
  color: #001115;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 228, 255, 0.35);
}
.product-ad a:focus { outline: 3px solid #00ffd5; outline-offset: 2px; }

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #6be8ff;
}

/* Focus accessibility for all interactive elements */
a:focus, button:focus, [tabindex]:focus {
  outline: 3px solid #00ffd5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { padding: 1.75rem; }
  footer { flex-direction: row; justify-content: center; gap: 2rem; align-items: center; padding-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}