/* Underground Bunker Hacker Theme - Teal Galaxy, Olive, Frosted Glass, Mobile-First */

:root{
  --bg: #041f1a;
  --surface: rgba(15,23,18,0.72);
  --surface-2: rgba(15,23,18,0.5);
  --text: #e9ffef;
  --muted: #b9ffd9;
  --primary: #2bd4a2;  /* teal */
  --olive: #97a300;    /* olive accent */
  --glass: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.25);
  --focus: 0 0 0 3px rgba(43,212,162,.6);
  --shadow: 0 12px 28px rgba(0,0,0,.4);
  --glow: 0 0 20px rgba(43,212,162,.8);
}

html, body { height: 100%; }

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

/* Teal galaxy starscape background (mobile-first, subtle glow) */
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  background: #041f1a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #041f1a;
  /* soft teal gradients for depth */
  background-image:
    radial-gradient(circle at 20px 20px, rgba(0,255,210,.15) 2px, transparent 2px),
    radial-gradient(circle at 60px 40px, rgba(0,180,160,.15) 2px, transparent 2px),
    radial-gradient(circle at 140px 100px, rgba(0,255,170,.12) 2px, transparent 2px);
  background-size: 80px 80px, 120px 120px, 180px 180px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* layered teal stars */
  background-image:
    radial-gradient(circle at 10px 10px, rgba(176,255,219,.9) 1px, transparent 2px),
    radial-gradient(circle at 60px 40px, rgba(0,230,200,.8) 1px, transparent 2px),
    radial-gradient(circle at 200px 120px, rgba(0,255,170,.7) 1px, transparent 2px),
    radial-gradient(circle at 300px 240px, rgba(0,255,180,.65) 1px, transparent 2px);
  background-size: 240px 240px;
  opacity: .85;
  pointer-events: none;
  filter: saturate(1.2);
  z-index: 0;
}

/* Layout */
main {
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.image-frame {
  width: min(92vw, 720px);
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

/* Image inside frame (hero image) */
.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  image-rendering: crisp-edges;
}

/* Footer with featured product CTA */
footer {
  margin-top: auto;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-ad {
  background: rgba(5, 15, 12, 0.65);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 260px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

.product-ad h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #eafffb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.product-ad a {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  margin-top: .25rem;
  background: linear-gradient(135deg, #174f34 0%, #0f3b28 100%);
  color: #eafff0;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}
.product-ad a:focus {
  outline: none;
  box-shadow: var(--focus);
}
.product-ad p { margin: 0; }

footer p {
  color: #baf6e2;
  font-size: 0.9rem;
  text-align: center;
  margin: 0.5rem 0 0;
  opacity: 0.95;
}

/* Accessibility: focus visible for keyboard nav */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Responsive adjustments */
@media (min-width: 720px) {
  main { padding: 4rem 2rem; }

  .image-frame {
    padding: 14px;
  }

  .image-frame img { border-radius: 14px; }

  footer { justify-content: center; }

  .product-ad { padding: 1rem 1.25rem; }
  .product-ad h3 { font-size: 1.15rem; }
}