/* Theme: iridescent cyberpunk with glass panels and scarlet accents */

/* Tokens */
:root{
  --bg: #041b12;
  --bg-2: #092b14;
  --text: #eafff5;
  --muted: #a8f3c9;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --accent: #2ee673;      /* iridescent greens */
  --accent-2: #ff2b2b;     /* scarlet */
  --btn-text: #041f0f;
}

/* Base / Layout reset (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle noise/scanline */
  background-image:
    linear-gradient(135deg, rgba(42, 255, 150, .20) 0%, rgba(0, 255, 80, .15) 40%, rgba(0,0,0,.60) 100%),
    radial-gradient(circle at 15% 0%, rgba(0,255,120,.15), transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.25)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay, overlay, overlay, normal;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Container / grid utilities */
.container {
  width: 100%;
  max-width: clamp(640px, 72rem, 1100px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px){
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display:inline-block; padding: .25em .6em; font-size: .75rem; border-radius:999px; background: rgba(46, 230, 115, .25); color: #eafff5; border: 1px solid rgba(46,230,115,.6); }

/* Glass panels (frosted) */
.glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.25); }
}

/* Structural selectors */
html, body, header, nav, main, article, footer, aside { 
  /* ensure predictable rendering across sections */
}
header, main, footer { padding: 1rem 0; }
header { text-align: center; padding-block: 1.25rem; }
header h1 { font-size: clamp(1.8rem, 2.4vw + 1rem, 3.25rem); line-height: 1.08; margin: .25rem 0 .25rem; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.8vw, 0.95rem); margin-top: .25rem; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* Hero / content styling */
main { padding: 0 0; }
article { padding: 1rem; }
.featured-image { margin: .5rem 0 1rem; }
.featured-image img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 20px rgba(0,0,0,.25); }

h1, h2, h3 { color: var(--text); margin: .75rem 0 0.5rem; }
h1 { font-size: clamp(1.6rem, 2vw + 1rem, 2.75rem); line-height: 1.08; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.6vw + .75rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1.4vw + .6rem, 1.4rem); }

/* Text blocks */
p { margin: 0 0 1rem; color: var(--text); }
blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent-2); background: rgba(0,0,0,.15); border-radius: 6px; }

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

/* Links / buttons / interactive elements */
a, button, .btn, .cta { font-family: inherit; color: inherit; text-decoration: none; }
a { color: var(--accent-2); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn, .cta {
  display: inline-block;
  padding: 0.75em 1.25em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: var(--accent);
  color: #051a0f;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn + .btn { margin-left: .5rem; }

/* Image frame utility per requirements */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 12px rgba(0,255,120,.15);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content block styling hook (if used) */
.content { color: var(--text); }

/* Product ad / footer blocks (glass panels) */
.product-ad, .sponsored-page {
  display: block;
  min-width: 0;
  flex: 1 1 0;
}
footer { padding: 1rem 0; display: grid; gap: .75rem; justify-items: center; align-items: stretch; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  footer { grid-template-columns: repeat(3, 1fr); padding: .5rem 0; }
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Glass panels inside footer */
footer .glass { padding: 0.75rem; }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00f; text-decoration: underline; }
}
 /* Reduced motion policy */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}