/* Base tokens */
:root {
  --bg: #0b0b12;
  --bg-2: #14161e;
  --text: #e8f0f9;
  --muted: #aab8c3;
  --accent: #ff4db2;       /* pink hologram accent */
  --accent-2: #6aa84f;     /* olive accent */
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 12px;
}

/* Base layout + background (mobile-first) */
html, body { height: 100%; }
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Layered background: gradient + hologram-like overlays + scanlines (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 60% -10%, rgba(255,0,170,.20), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(60,180,80,.15), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,.25), rgba(0,0,0,0) 60%);
  background-blend-mode: screen, overlay, normal;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .95;
  /* subtle glow tint to emphasize cyberpunk vibe */
  filter: saturate(1.1);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* scanline effect */
  background-image: repeating-linear-gradient(to bottom,
    rgba(255,255,255,.04) 0 1px, rgba(0,0,0,0) 1px 2px);
  opacity: .25;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Focus visibility helpers + accessible defaults */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Global typography scales (fluid) */
html { font-size: 100%; }
body { font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; }

/* Layout utilities */
.container { width: min(92%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Section chips / tags */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(106,168,79,.25);
  color: #fff;
  border: 1px solid rgba(106,168,79,.6);
}

/* Glass panel (fallback-friendly) */
.card, .image-frame, .product-ad, .sponsored-page, header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-clip: padding-box;
}
.card { padding: 1rem; }

/* Image handling */
.image-frame, .featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: #111; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.image-frame { aspect-ratio: 16/9; display: block; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Header styling (hero) */
header {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: rgba(10,12,14,.28);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  margin: .25rem 0;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 3.6rem);
  letter-spacing: .5px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.8vw + .6rem, 1.1rem);
}

/* Main content */
main { padding: 1rem; }

/* Article content styling */
article { margin: 0 auto; max-width: 720px; }
article h2 { font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem); margin: .75rem 0; color: #fff; }
article p { color: rgba(232,240,249,.95); margin: .5rem 0; }
article ul { padding-left: 1.25rem; margin: .5rem 0; color: rgba(232,240,249,.95); }
article li { margin: .25rem 0; }

/* Blockquotes for atmosphere */
blockquote {
  margin: .75rem 0;
  padding: .5rem 0.75rem;
  border-left: 3px solid var(--accent);
  color: #fff;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}

/* Optional content helper container (if used) */
.content { padding: .25rem 0; color: var(--text); }

/* Footer / calls to action as glass panels */
footer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; padding: 1rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; }

.product-ad, .sponsored-page { display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 72px; text-align: center; text-wrap: balance; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; width: 100%; height: 100%; display: block; }

/* Links in content to maintain contrast on glass */
a { color: #ffebf3; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; border: 0; }
  a { text-decoration: underline; }
  .image-frame, .product-ad, .sponsored-page { border: 1px solid #000; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { animation: none; transition: none; }
  header, main, footer { animation: none; transform: none; }
}
