/* Nightwave: pink waves hacker theme - single stylesheet */

/* Base reset and helpers */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0b0b10;
  --surface: rgba(255,255,255,.08);
  --surface-strong: rgba(255,255,255,.15);
  --text: #e8e8ff;
  --muted: #cbd5e1;
  --pink: #ff2d92;
  --pink-dark: #d9007b;
  --cyan: #00e5ff;
  --radius: 14px;
  --radius-lg: 22px;
}
html, body { height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Pink waves background (soft, accessible) */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 120%;
  height: 120%;
  left: -10%;
  top: -10%;
  background: radial-gradient(circle at 20% 20%, rgba(255,0,180,.25), transparent 35%),
              radial-gradient(circle at 70% 40%, rgba(0,229,255,.25), transparent 40%);
  filter: blur(40px);
  z-index: -1;
  animation: drift 22s linear infinite;
  pointer-events: none;
  opacity: .75;
}
body::after { opacity: .5; animation-duration: 28s; }

/* Subtle drift animation for depth */
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-6%, 4%, 0) rotate(0.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

/* Layout containers */
main {
  width: 100%;
  display: grid;
  place-items: start center;
  padding: 2rem 1rem 1.5rem;
}
.image-frame {
  width: min(92vw, 760px);
  border-radius: var(--radius-lg);
  padding: .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  overflow: hidden;
}
.image-frame img {
  width: 100%; height: auto; display: block;
  border-radius: calc(var(--radius-lg) - 6px);
  outline: 1px solid rgba(255,255,255,.18);
}

/* Footer and product ad (CTA) */
footer {
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.product-ad h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.4);
}
.product-ad a {
  color: inherit; text-decoration: none;
}
.product-ad a > p {
  margin: 0;
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.5);
  line-height: 1;
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.product-ad a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 999px;
}
.product-ad a:hover > p {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
}
p { color: #e9e9f0; }

/* Accessibility: focus styles for all focusable elements when tabbed */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
  border-radius: 6px;
}
a { color: #fff; text-decoration: none; }

/* Typography refinements for hacker vibe */
h1, h2, h3, h4 {
  text-transform: none;
  letter-spacing: .3px;
}
h3 { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Responsive tweaks (mobile-first) */
@media (min-width: 640px) {
  main { padding-top: 3rem; }
  .image-frame { border-radius: calc(var(--radius-lg) - 2px); }
}
@media (min-width: 1024px) {
  body { font-size: 16px; }
  .product-ad h3 { font-size: 1.05rem; }
}
