/* Base & Tokens */
:root {
  --bg: #0b0f12;
  --bg-2: #0a141a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --border: rgba(190, 198, 210, 0.40);
  --text: #eafff4;
  --muted: #a4b8a7;
  --accent: #39ff87;
  --accent-2: #9fffbd;
  --silver: #cbd6e5;
  --card: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 28px rgba(0,0,0,.28);
  --radius: 12px;
  --radius-sm: 9px;
  --focus: #39ff7a;
}

/* Layered Neon Cyberpunk Background (gradient + glow + scanlines) */
html, body { height: 100%; }
html { overflow-y: auto; }
body {
  margin: 0;
  color: var(--text);
  background: 
    /* base gradient (neon green leaning) */
    linear-gradient(135deg, #0b0f12 0%, #0a141a 45%, #03060a 100%),
    /* neon green glow hint layer */
    linear-gradient(135deg, rgba(57,255,135,.20) 0%, rgba(0,0,0,0) 60%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  /* subtle glow sweep */
  content:"";
  position: fixed;
  inset: -20vmax;
  background: radial-gradient(circle at 70% 20%, rgba(57,255,135,.18), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(0,255,200,.12), transparent 40%);
  filter: blur(0.4px);
  z-index: 0;
  pointer-events: none;
}
body::after {
  /* pure CSS "noise/scanline" texture; minimal impact on render path */
  content:"";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode: overlay;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(340px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(57,255,135,.25);
  color: #0b2d15;
  border: 1px solid rgba(57,255,135,.5);
}
a, button, .btn, .cta { cursor: pointer; color: var(--text); text-decoration: none; }

/* Glass Panels (fallback included) */
.backdrop {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: calc(var(--radius) + 2px);
  padding: 0.75rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .backdrop { background: rgba(255,255,255,.12); }
}

/* Page Regions */
header, main, footer, aside, article, nav {
  padding-block: 1rem;
}
header { padding-block: 1.25rem; position: relative; z-index: 1; }
main { padding-block: 1.25rem; }
footer { padding-top: 1.25rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
aside { display: none; }

/* Header Styling */
header > h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .25rem;
  font-weight: 800;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(.9rem, 2vw, 1.04rem);
  margin: 0 0 .8rem;
}
nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
nav a {
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Hero / Featured Image */
.featured-image {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.featured-image img {
  width: 100%; height: auto; display: block;
  object-fit: cover;
}
.image-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(180, 255, 220, .5);
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content Area */
.content { padding: 0 0.25rem; }
article {
  display: block;
}
article h2 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin: .75rem 0 0.5rem;
  color: var(--text);
}
article h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  margin: .75rem 0;
  color: #eafff0;
}
article p { color: var(--text); margin: .5rem 0 1rem; }
article ol, article ul { margin: .25rem 0 1rem 1.25rem; color: var(--text); }
article li { margin: .25rem 0; }
article blockquote {
  margin: .75rem 0; padding: .5rem 1rem;
  border-left: 4px solid rgba(57,255,135,.6);
  color: var(--muted);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
article em { color: #d7ffe9; }

/* Links & Buttons in Theme */
a { color: var(--accent); }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Buttons variants */
.btn, button { font-weight: 600; border-radius: 999px; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.25); background: linear-gradient(135deg, rgba(57,255,135,.95), rgba(57,255,135,.65)); color: #041f12; display: inline-block; text-align: center; }
.btn.secondary, .cta { background: rgba(255,255,255,.12); color: var(--text); border: 1px solid rgba(255,255,255,.3); }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); opacity: .95; }
.btn + .btn { margin-left: .5rem; }

/* Tiny utility components */
ul, ol { padding-left: 1.25rem; }
li { line-height: 1.5; }

/* Footer content blocks (ads / promos) */
.product-ad, .sponsored-page {
  padding: .9rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  text-align: center;
}
.product-ad a, .sponsored-page a { display: block; padding: .25rem 0; color: var(--text); }
footer p { text-align: center; color: var(--muted); margin: .5rem 0 0; }

/* Simple responsive adjustments */
@media (min-width: 700px) {
  footer { grid-template-columns: 1fr 1fr; align-items: start; }
  .image-frame { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print Styles */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
