/* Base */
:root {
  --bg: #0a0a12;
  --bg-2: #0b1220;
  --text: #eaf6ff;
  --muted: #a8b9d6;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --accent: #1fb6ff;      /* sky blue */
  --accent-2: #ff2a56;     /* scarlet/plasma */
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.28);
  --radius: 12px;
}
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }

/* Layered background: gradient + subtle plasma scanlines */
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(12,0,22,0.95) 0%, rgba(6,14,28,0.95) 60%, rgba(4,8,30,0.98) 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* plasma swirl hints with soft radial accents */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0,200,255,0.22), transparent 25%),
    radial-gradient(circle at 75% 60%, rgba(255,60,90,0.20), transparent 28%),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,0.08), transparent 35%);
  background-blend-mode: screen;
  z-index: 0;
  pointer-events: none;
  filter: saturate(110%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle scanlines for cyberpunk texture */
  background: repeating-linear-gradient(to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 2px);
  opacity: 0.28;
  mix-blend-mode: overlay;
  z-index: 0;
  pointer-events: none;
}
:* { box-sizing: border-box; }

/* Layout helpers */
.container {
  max-width: clamp(640px, 86vw, 1200px);
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}
.grid { display: grid; gap: 1rem; }

/* Typography (fluid) */
h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem); line-height: 1.15; margin: 0.8rem 0 0.4rem; }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.25rem); margin: 1.1rem 0 0.4rem; color: #e9f2ff; }
h3 { font-size: clamp(1rem, 1.8vw, 1.15rem); margin: 0.75rem 0 0.3rem; }
p { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: #eaf6ff; margin: 0 0 1rem; }

/* Header / Nav / semantic sections */
header, nav, main, article, aside, footer {
  /* structural styling hooks can be glassed below; keep defaults lightweight */
}
header {
  padding: 1.25rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
header h1 { color: #eaffff; }
header .meta { color: var(--muted); font-size: clamp(0.85rem, 1.5vw, 0.95rem); margin-top: .25rem; }

/* Simple nav styling */
nav { display: flex; gap: .5rem; align-items: center; padding-top: .25rem; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.15); transition: color .15s ease, background .15s ease; }
nav a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(31,182,255,.6); }
nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Main content area */
main { padding: 1rem 0 2rem; }
article { padding: 0; }

/* Featured image frame */
.featured-image { margin: 0 0 1rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #111; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.image-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); background: #000; box-shadow: 0 6px 22px rgba(0,0,0,.4); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels for content blocks */
.glass { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 0.75rem; }

/* Content helpers */
.content { padding: 0.25rem 0 0.5rem; }

/* Lists and blocks */
ul, li { margin: 0.25rem 0; padding: 0; }
ul { list-style: disc; margin-left: 1.25rem; }
ol { margin-left: 1.25rem; }

/* Quote styling */
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }

/* Image frame helper class for explicit usage if needed */
.image-frame { position: relative; }

/* Content grid / cards / tags */
.grid-auto { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: .75rem; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }

/* Tag utility */
.tag { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(63, 178, 255, 0.6); background: rgba(63,178,255,0.25); color: #eaffff; }

/* Buttons / CTAs */
a, button, .btn, .cta { color: var(--text); text-decoration: none; }

/* Base button styles: solid and outline variants via classes */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.45); background: rgba(31,182,255,0.95); color: #041018; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { background: rgba(31,182,255,1); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--text); }
.btn.primary { background: linear-gradient(135deg, #1fb6ff 0%, #5a00ff 100%); color: white; border: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Links emphasis on focus/hover */
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Footer / ad sections (glass panels) */
footer { padding: 1rem 0 2rem; margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
footer .product-ad, footer .sponsored-page { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); }
footer p { text-align: center; color: var(--muted); margin: .75rem 0 0; }

/* Image emphasis accessibility: ensure text over glass is legible */
@media (prefers-color-scheme: dark) {
  :root { --text: #eaf6ff; --muted: #a8b9d6; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body {
    background: white;
    color: #000;
  }
  header, nav, main, article, footer { background: transparent; color: #000; }
  a { text-decoration: underline; }
  .glass { background: transparent; border: none; }
}
