/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

:root {
  --bg-dark: #0b002b;
  --bg-deep: #170033;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.18);
  --text: #e9e0ff;
  --muted: #c9b8ff;
  --accent: #ff8c00;
  --accent-2: #9b5cff;
  --glow: 0 0 8px rgba(155, 92, 255, 0.9), 0 0 20px rgba(155, 92, 255, 0.6);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.75;
  /* orange dots pattern + purple hacker vibe */
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle, rgba(255,165,0,.85) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,165,0,.55) 1px, transparent 1px),
    linear-gradient(135deg, #0b002b 0%, #1a0032 60%, #0b002b 100%);
  background-size: 14px 14px, 28px 28px, cover;
  background-position: 0 0, 7px 7px, 0 0;
  min-height: 100%;
}

/* Layout containers */
header {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 10;
  background: rgba(15, 0, 40, 0.58);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
header h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: .25rem 0;
  color: #f3e0ff;
  text-shadow: 0 0 8px rgba(158, 70, 255, .75);
}
header .meta {
  font-size: .9rem;
  color: #e9d8ff;
  opacity: .9;
}

/* Main content */
main {
  padding: 1rem;
  display: flex;
  justify-content: center;
}
article {
  width: 100%;
  max-width: 900px;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.featured-image { overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); margin: .5rem 0 1rem; }
.featured-image img { display: block; width: 100%; height: auto; }

/* Article text styling for readable, cyberpunk feel */
article p {
  color: #efe6ff;
  margin: 0.75rem 0;
}
article p + p { text-indent: 1em; }

/* Footer / ad block as prominent CTA */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
.product-ad {
  margin: 0.75rem auto 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(25, 0, 60, 0.65);
  border: 1px solid rgba(255,255,255,.18);
  max-width: 720px;
}
.product-ad h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.product-ad a {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  color: #0b002b;
  text-decoration: none;
  background: linear-gradient(135deg, #ff9a1a 0%, #d96d00 100%);
  border: 1px solid rgba(0,0,0,.25);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-ad a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.5);
}
.product-ad a:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
footer p { margin-top: .5rem; font-size: .85rem; }

/* Focus styles for accessibility on links, buttons, inputs if present */
a:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Responsive, mobile-first tweaks */
@media (min-width: 768px) {
  header { padding: 1.25rem 2rem; }
  header h1 { font-size: 2.5rem; }
  article { padding: 1.5rem 2rem; }
  .product-ad { margin-top: 1rem; }
}
