/* CSS: Future Cyberpunk / Hacker Theme - Production Stylesheet */

/* Token Palette */
:root {
  --bg: #0a0f1a;            /* deep night backdrop (royal blue / maroon inspired) */
  --bg-2: #0a1130;          /* royal blue hint layer */
  --text: #e7f0ff;           /* high contrast text on glass */
  --muted: #a9b6d1;          /* secondary text */
  --accent: #800019;         /* maroon accent (primary) */
  --accent-2: #1e6bf2;        /* royal blue highlight (secondary) */
  --link: #9bd6ff;            /* link hue with good contrast */
  --surface: rgba(255,255,255,0.12);
  --surface-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.28);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(58,180,255,0.6);
}

/* Base / Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Layered background: gradient + subtle scanlines + faint glow */
  background-image:
    linear-gradient(135deg, rgba(40,120,255,.25), rgba(128,0,0,.25) 60%, rgba(40,120,255,.25)),
    linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle holographic overlay (non-intrusive) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: conic-gradient(from 180deg at 50% 50%, rgba(0,180,255,.12), rgba(128,0,0,.08), rgba(0,180,255,.12));
  mix-blend-mode: screen;
  opacity: 0.28;
  pointer-events: none;
  filter: saturate(120%);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  font-size: .75rem;
  color: #fff;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25);
}
ul, li { margin: 0; padding: 0; list-style: none; }

/* Hero / Header styling (glass panel feel) */
header {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
header h1 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3.4rem);
  line-height: 1.08;
  text-align: center;
  margin: 0;
  letter-spacing: .01em;
  color: #eaf4ff;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
header {
  width: min(1100px, 100%);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem auto 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  header {
    background: rgba(255,255,255,.22);
  }
}

/* Main / content area */
main {
  display: block;
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  place-items: center;
  padding: 0;
}
.image-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.05);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}
@media (max-width: 700px){
  .image-frame { aspect-ratio: 4 / 3; border-radius: 12px; }
}

/* Glass panel variants for content areas */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,.20); }
}

/* Footer / ad sections */
footer {
  padding: 1rem;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  display: block;
  text-align: center;
  padding: 1rem;
  margin: .75rem auto;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none;
  width: min(680px, 100%);
  transition: transform .2s ease;
  color: var(--text);
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-2px); }
.product-ad a, .sponsored-page a { color: inherit; text-decoration: none; display: block; }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 600; }

/* Interactive elements (buttons / links) */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(to bottom right, rgba(0,140,255,.15), rgba(255,255,255,.04));
  padding: .65rem 1rem;
  border-radius: 10px;
  display: inline-block;
  font-weight: 600;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
a:hover, button:hover, .btn:hover, .cta:hover {
  text-decoration: underline;
  color: var(--link);
  background: rgba(0,140,255,.25);
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 2px;
}
a:active, button:active { transform: translateY(1px) scale(0.98); }

/* Link color management for high contrast on glass */
a { color: #e6f0ff; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--link); }

/* Utility style hooks used in HTML */
.main, .content {
  display: block;
}
.container.section { padding: 0.5rem; }

/* Accessibility & typography */
h1, h2, h3, p { margin: 0 0 0.5rem 0; }
p { line-height: 1.5; color: var(--muted); }
h1 { color: #eaf4ff; }

/* Responsive helpers */
@media (min-width: 900px) {
  header { padding: 2rem 1rem; }
  main { padding: 2rem 0 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print-friendly */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
