/* Base tokens */
:root {
  --bg-grad: linear-gradient(135deg, rgba(3,40,25,0.95) 0%, rgba(7,68,40,0.95) 60%, rgba(3,40,25,0.95) 100%), 
             repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  --bg: #041e14;
  --bg-2: #062a1f;
  --text: #eafff1;
  --muted: #a7ffd3;
  --accent: #d6ff00;       /* laser lemon */
  --accent-2: #8fff3a;      /* secondary neon accent */
  --surface: rgba(8, 24, 14, 0.6);
  --surface-2: rgba(8, 24, 14, 0.46);
  --border: rgba(110, 255, 160, 0.5);
  --card-border: rgba(120, 255, 180, 0.5);
  --glass: rgba(10, 26, 18, 0.28);
  --radius: 14px;
  --shadow: 0 8px 22px rgba(0,0,0,.25);
  --shadow-soft: 0 4px 12px rgba(0,0,0,.22);
  --focus: 0 0 0 3px rgba(0, 255, 140, 0.6);
  --tag: rgba(0, 0, 0, 0.25);
  --focus-offset: 3px;
  --link: #a9ff90;
  --link-weak: #d0ffd0;
}

/* Global reset-ish & typography */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100%;
  position: relative;
}
body::before {
  /* subtle overlay to enhance cyberpunk texture without heavy images */
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20px 20px, rgba(0,255,120,0.08) 0 6px, transparent 6px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: 0.8;
  z-index: 0;
}
img { display: block; max-width: 100%; height: auto; }

/* Layout helpers (utility) */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  padding-inline: 0.5rem;
}
.grid { display: grid; gap: 1rem; }
.card { background: rgba(8, 24, 14, 0.42); border: 1px solid rgba(120, 255, 180, 0.45); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-soft); }

/* Section structure styling (required selectors) */
html, body, header, nav, main, article, footer, aside {
  /* provide consistent stacking context and spacing defaults where applicable */
}
header {
  padding: 2rem 1rem;
  margin: 1rem auto;
  width: min(1100px, 92%);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(10, 28, 20, 0.28);
  border: 1px solid rgba(120, 255, 180, 0.45);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
}
header .meta {
  font-size: 0.9rem;
  color: var(--muted);
}
main { padding: 1rem 0 2rem; display: block; }

/* Content & primary article visuals */
article { width: min(900px, 94%); margin: 0 auto; padding: 0 0.5rem; }
.featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(120, 255, 180, 0.5); margin: 0.75rem 0; }
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 180, 0.5);
  background: rgba(0,0,0,0.05);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Glass panels (fallback included) */
.panel, .glass, .card {
  background: rgba(10, 25, 18, 0.28);
  border: 1px solid rgba(120, 255, 180, 0.45);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .panel, .glass, .card {
    background: rgba(10, 25, 18, 0.68);
  }
}
.content { padding: 1rem; }

/* Links, buttons, CTAs (interactive) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  outline: none;
}
a { color: var(--link); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: var(--focus-offset); }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 140, 0.6);
  background: linear-gradient(135deg, rgba(214,255,0,0.95), rgba(214,255,0,0.75));
  color: #072;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Outline variant (secondary) */
.btn.outline, .cta {
  background: transparent;
  border: 1px solid rgba(0, 255, 140, 0. eight);
}
.btn.outline { color: var(--text); }

/* Special link helpers (tags) */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0,255,140,0.15);
  color: var(--text);
  border: 1px solid rgba(0,255,140,0.35);
}

/* Lists & typography scales */
ul, ol { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; }

/* Image frame alias for compatibility with potential .image-frame usage */
.featured-image { display: block; width: 100%; }

/* Footer & ad blocks (glass panels) */
footer {
  padding: 1rem 0 2rem;
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
.product-ad, .sponsored-page {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: rgba(8, 26, 22, 0.38);
  border: 1px solid rgba(120, 255, 180, 0.5);
}
.product-ad a, .sponsored-page a { display: block; width: 100%; height: 100%; color: var(--text); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 700; }

/* Responsive layout utilities */
@media (min-width: 600px) {
  main { padding: 1.25rem 0; }
}
@media (min-width: 720px) {
  footer { grid-template-columns: 1fr 1fr; padding: 1.25rem 0; }
  .container { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles: simple readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, footer { box-shadow: none; border: 0; background: transparent; }
}
