/* Section: Theme Tokens */
:root{
  --bg: #000;
  --bg-2: #0a0a0a;
  --text: #eafff0;
  --muted: #a6f0a2;
  --accent: #b7ff00;
  --accent-2: #7dff33;
  --panel: rgba(16, 255, 0, 0.14);
  --border: rgba(180, 255, 0, 0.35);
  --shadow: 0 6px 20px rgba(0,0,0,.6);
  --radius: 14px;
  --gap: 1rem;
}

/* Section: Global & Background (mobile-first base) */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body { height: 100%; }

html, body { margin: 0; color: var(--text); background: #000; }

/* Layered background: gradient + subtle holographic scanlines/noise */
body {
  font-family: ui-sans-serif, system-ui, "-apple-system", "Segoe UI", Roboto, Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.55;
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.92) 60%, rgba(0,0,0,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(0,255,80,.08) 0 40%, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(0,180,0,.12) 0 40%, transparent 40%);
  background-color: #000;
  background-blend-mode: multiply, overlay, overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Subtle scanlines overlay (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.25) 2px 3px);
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
  transform: translateZ(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  body::before{ display: none; }
  * { animation: none !important; transition: none !important; }
}

/* Section: Layout & Glass Panels */
.header-glass,
.card,
.article-glass,
.product-ad,
.sponsor-glass {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 1rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

/* Fallback when backdrop-filter isn't supported (higher opacity) */
@supports not (backdrop-filter: blur(8px)) {
  .header-glass,
  .article-glass,
  .card,
  .product-ad,
  .sponsor-glass {
    background: rgba(0,0,0,.55);
    border-color: rgba(120,255,0,.45);
  }
}

/* Section: Container & Grid Utilities */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-inline: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(12,12,12,.42);
  border: 1px solid rgba(124,255,0,.4);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-2px); }

/* Section: Image Frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(178,255,0,.4);
  box-shadow: 0 6px 20px rgba(0,255,100,.28);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  filter: saturate(1.05);
}
.featured-image { margin: 1rem auto 0; max-width: 900px; }

/* Section: Content typography & structure */
.content {
  color: var(--text);
  font-size: clamp(15px, 1vw + 12px, 18px);
  line-height: 1.6;
  margin: 0;
}
.content h1, .content h2, .content h3 {
  line-height: 1.25;
  margin: 0.6em 0 0.4em;
}
.content p { margin: 0.65em 0; }
.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25em 1em;
  color: #eafff0;
  margin: 0.8em 0;
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; margin: .75em 0; }
li { margin: .25em 0; }

/* Section: Links & Buttons (interactive primitives) */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 2px; }

/* Focus ring accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons: solid and outline variants; interactive states */
.btn, .cta, button {
  font-family: inherit;
  font-size: clamp(0.9rem, 0.5vw + 0.9rem, 1rem);
  padding: .65em 1em;
  border-radius: 8px;
  border: 1px solid rgba(178,255,0,.55);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s;
  text-decoration: none;
}
.btn:hover, .cta:hover, button:hover { transform: translateY(-1px); }
.btn--solid {
  background: linear-gradient(135deg, rgba(0,255,120,.95), rgba(125,255,51,.95));
  color: #001300;
  border: 1px solid rgba(0,0,0,.25);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(125,255,0,.7);
}
.cta { display:inline-flex; align-items:center; gap:.5ch; }

/* Section: Typography + layout helpers (compact) */
 ul, li { list-style: disc inside; }
 .tag {
  display:inline-block; padding:.15em .5em; font-size:12px;
  border-radius:999px; background: rgba(183,255,0,.15);
  color: var(--accent); border: 1px solid rgba(183,255,0,.4);
}

/* Section: Structural elements (semantic) */
html, body, header, nav, main, article, footer, aside {
  /* no extra layout rules; kept for targeted styling hooks */
}
header { padding: 1rem 0.5rem; text-align: center; z-index: 1; position: relative; }
header h1 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.8rem); margin: .25rem 0 .5rem; letter-spacing:.3px; }
header .meta { font-size: 0.92rem; color: var(--muted); }

main { padding: 1rem 0; }

/* Section: Hero / Article container styles */
.article-glass { background: rgba(0,0,0,.28); border: 1px solid rgba(0,255,0,.35); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(8px); }

/* Section: Footer & Ad blocks */
footer { padding: 1rem 0; display: grid; gap: .75rem; justify-items: center; align-items: center; color: var(--muted); }
.product-ad, .sponsor-glass { width: min(900px, 92%); text-align: center; }

/* Print: basic readability */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, nav, footer { display: none; }
  main { display: block; padding: 0; }
  article { background: transparent; border: none; box-shadow: none; }
}
