/* Base & Tokens */
:root{
  --bg: #0a1020;
  --bg-2: #0b1a2b;
  --text: #e9e1f3;
  --muted: #c9b7d9;
  --accent: #ff7fb0;
  --accent-2: #ffd4ec;
  --card: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --gap: 1rem;
  --focus: 2px solid #ffd6f0;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-size: 16px; }
html, body { margin: 0; color: var(--text); background: transparent; }

/* Layered background: gradient + subtle noise + radar sweep overlay */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  position: relative;
  background: linear-gradient(135deg, #0a1020 0%, #0a1230 60%, #0a1020 100%), #05070f;
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* tiny dotted noise (SVG data-URI, lightweight) */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'>\
  <rect width='4' height='4' fill='%23000' fill-opacity='.08'/>\
  <rect width='1' height='1' x='1' y='1' fill='%23fff' fill-opacity='.04'/>\
  <rect width='1' height='1' x='3' y='0' fill='%23fff' fill-opacity='.04'/>\
</svg>");
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle radar sweep glaze */
  background: conic-gradient(from 0deg at 50% 50%, rgba(255, 120, 200, .18) 0deg 40deg, transparent 40deg 120deg, rgba(0, 180, 255, .14) 120deg 180deg, transparent 180deg 360deg);
  mix-blend-mode: overlay;
  animation: radar-sweep 6s linear infinite;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.1);
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }

/* Layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding: 1rem; }

/* Core page structure styling */
header, main, footer, aside { position: relative; z-index: 1; }

/* Header (hero) */
header {
  padding: 2rem 1rem;
  text-align: center;
  display: grid;
  gap: .5rem;
}
header h1 {
  font-size: clamp(1.75rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.15;
  margin: 0;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.6vw + .6rem, 1.05rem);
}

/* Main content area with glass panels */
main { padding: 1rem 0 2rem; }
article {
  display: block;
  max-width: 72ch;
  margin: 0 auto;
  padding: 1rem;
}
.featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); margin-bottom: 1rem; }
.featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Glass panel helpers for content blocks */
.card, .product-ad, .sponsored-page {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .card, .product-ad, .sponsored-page { background: rgba(255,255,255,.14); }
}
.image-frame, .image-frame img { border-radius: 12px; }

/* Specific image frame rules (as requested) */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Content text tweaks */
.content { max-width: 72ch; margin: 0 auto; padding: 0 1rem; color: var(--text); }

/* Lists and typography */
ul, li { margin: 0.25rem 0; padding: 0; }
li { padding-left: 1.1rem; text-indent: -1.1rem; }
li::marker { color: var(--accent-2); }
h2 { font-size: clamp(1.25rem, 1.5vw + .75rem, 1.75rem); margin: 1.25rem 0 .5rem; color: #f1def0; }
p { margin: .75rem 0; }

/* CTA and buttons */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }
a:focus-visible { outline: 2px solid #e6a0ff; outline-offset: 2px; border-radius: 6px; }
.btn, .cta, .product-ad a { display: inline-block; padding: .75rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,.35); transition: transform .15s ease, background .2s ease, color .2s ease; }

.btn { background: #ff79b2; color: #0b0212; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255, 119, 180, 0.9);
}
.btn--outline:hover { background: rgba(255,119,180,0.12); }

.cta { background: linear-gradient(135deg, rgba(255, 120, 200, 0.95), rgba(255, 200, 230, 0.95)); color: #2b0a1b; }
.cta:hover { filter: brightness(1.03); }
.product-ad a, .sponsored-page a { color: #fff; }

/* Utility & layout helpers (grid, card, tag) */
.container { width: min(1100px, 92vw); margin-inline: auto; padding-block: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.tag {
  display: inline-block; padding: .25em .6em; font-size: .75rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 120, 200, .9), rgba(255, 120, 200, .4));
  color: #fff; border: 1px solid rgba(255,255,255,.5);
}

/* Footer tweaks */
footer { padding: 1.5rem 1rem; text-align: center; color: var(--muted); }

/* Print styles for readability */
@media print {
  body, header, main, footer { background: #fff !important; color: #000; }
  a { text-decoration: underline; }
  .card, .product-ad { background: #fff; border: 0; box-shadow: none; }
  .container { width: 100%; padding: 0; }
}

/* Accessibility & motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
