/* Neon cyberpunk theme: production-ready CSS */

/* Tokens */
:root{
  --bg: #0b0020;
  --bg-2: #1a0033;
  --text: #eae6ff;
  --muted: #b9a8d8;
  --accent: #8a3ef2;
  --accent-2: #5d1cd1;
}

/* Base / typography */
html, body { height: 100%; }
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #0a0033 0%, #160035 40%, #0b0020 100%), 
              radial-gradient(circle at 20% 20%, rgba(138,63,242,.15) 0 15%, transparent 40%), 
              radial-gradient(circle at 80% 0%, rgba(93,28,209,.15) 0 15%, transparent 40%),
              #000;
  font-family: ui-system, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: overlay;
  opacity: .25;
}

/* Layout containers and utilities */
.container { width: 100%; max-width: clamp(680px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

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

.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: .75rem; }

/* Glass panels (with backdrop-filter) and fallbacks */
.glass, .product-ad, .sponsored-page {
  background: rgba(18,0,42,.22);
  border: 1px solid rgba(120,90,180,.4);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass, .product-ad, .sponsored-page { background: rgba(18,0,42,.40); }
}

/* Typography scale (fluid) */
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4rem; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3.25rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 2.6vw + .8rem, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw + .4rem, 1.35rem); }
p { font-size: clamp(1rem, 1.6vw + .6rem, 1.125rem); color: rgba(234,226,255,.95); }

/* Link and text accessibility */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Header / navigation */
header {
  padding: 1rem;
  display: block;
  background: rgba(10,0,40,.28);
  border-bottom: 1px solid rgba(138,62,242,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 { margin: 0 0 .25rem; font-weight: 800; font-size: clamp(1.4rem, 3vw + .8rem, 2.4rem); }
header .meta { color: var(--muted); font-size: .92rem; margin-top:.25rem; }

/* Main content */
main { padding: 1rem 0; display: block; }
article { width: min(100%, 1000px); margin: 0 auto; padding: 0 1rem; }

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

/* Content blocks */
.content { padding: .75rem; color: #f7f3ff; }
blockquote { margin: .5rem 0; padding-left: .75rem; border-left: 3px solid var(--accent); color: #fff; font-style: italic; opacity: .95; }
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Action buttons and CTAs */
.btn { display: inline-block; padding: .6rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); font-weight: 700; color: #fff; background: var(--accent); text-align: center; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn.outline {
  background: transparent; color: var(--text); border-color: rgba(138,62,242,.8);
}
.btn.outline:hover { background: rgba(138,62,242,.15); }

/* Utility tag */
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; background: rgba(138,62,242,.25); color: #fff; border: 1px solid rgba(138,62,242,.6); }

/* Footer / ads / sponsored content */
footer { padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: stretch; }
footer p { color: var(--muted); text-align: center; margin: .25rem 0 0; grid-column: 1 / -1; }

/* Image wrapper utility (if needed) */
.inline-image { display: inline-block; max-width: 100%; height: auto; }

/* Accessible focus for interactive items in lists/containers */
li:focus-within { outline: 2px solid #fff; outline-offset: 2px; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { color: #000; text-decoration: none; }
}

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