/* Section: Base Reset and Globals */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
:root {
  --bg: #0a0a0f;
  --bg-2: #0b0b12;
  --text: #f6f6f6;
  --muted: #b8b8c8;
  --accent: #ff2a2a;
  --accent-2: #ff5a6a;
  --panel: rgba(12,12,20,.28);
  --panel-2: rgba(12,12,20,.18);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 26px rgba(0,0,0,.42);
  --radius: 12px;
  --focus-ring: 0 0 0 3px rgba(255,0,0,.6);
}
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(255,0,0,.08), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(45deg, rgba(255,0,0,.15) 0 2px, transparent 2px 6px),
    radial-gradient(circle at 20% -10%, rgba(255,0,0,.12), transparent 40%),
    var(--bg-2);
  background-blend-mode: overlay, overlay, normal, normal;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,.04) 0 1px, transparent 1px),
    radial-gradient(circle at 100% 0, rgba(255,0,0,.04) 0 1px, transparent 1px);
  background-size: 2px 2px;
  mix-blend-mode: overlay;
  opacity: .6;
}

/* Section: Layout Helpers */
.container { width: min(100%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; }
.card { padding: 1rem; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }

/* Section: Background Pattern (futuristic) is handled via page background above */

/* Section: Typography */
h1, h2, h3 { color: #fff; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.75rem, 3vw + 1rem, 3rem); line-height: 1.15; letter-spacing: .4px; }
h2 { font-size: clamp(1.25rem, 2vw + .75rem, 1.75rem); }
p { font-size: clamp(0.95rem, 0.8vw + .9rem, 1.125rem); line-height: 1.6; color: var(--text); margin: 0 0 1rem; }
.meta { color: var(--muted); font-size: .95rem; }

/* Section: Glass Panels (Frosted) */
header, main, article, footer, aside { background: transparent; }
header, .panel, article { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.panel, .content { background: rgba(12,12,20,.28); border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); }

/* Fallback for no-backdrop users (higher opacity) */
.backdrop-fallback { background: rgba(12,12,20,.50); }

/* Section: Image Frames */
.image-frame, .featured-image { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); display: block; width: 100%; background: #111; }
.image-frame { aspect-ratio: 16/9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content Areas */
.content { padding: 1rem; }

/* Section: Link and Button Styles (Interactive) */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  padding: .55em 1em;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-1px);
}
a:hover { text-decoration: underline; }
.btn { background: linear-gradient(#ff2a2a, #b20f12); border: 1px solid rgba(255,255,255,.5); color: #fff; font-weight: 700; }
.btn:hover { transform: translateY(-1px); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.6); color: #fff; }

/* Section: Lists and Tags */
ul { margin: 0 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }
.tag { display:inline-block; padding:.15em .5em; border-radius:999px; font-size:.75rem; border:1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color:#fff; }

/* Section: Page Structure Styling (align with provided selectors) */
html, body, header, nav, main, article, footer, aside { width: 100%; }
header { padding: 1.75rem 0; text-align: center; }
nav { margin-top: .25rem; }
nav a { color: #fff; text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
nav a:hover { background: rgba(255,255,255,.08); }

/* Section: Layout Details for Main Content */
main { padding: 1rem; }
article { max-width: 860px; margin: 0 auto; padding: 1.25rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.28); background: rgba(8,8,12,.28); box-shadow: var(--shadow); }

/* Section: Footer and Ad Sections */
footer { padding: 1rem 1rem 2rem; color: var(--muted); }

/* Section: Responsive Helpers */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  header { padding: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Section: Print Styles */
@media print {
  body { background: #fff; color: #000; }
  article { background: #fff; border: 0; box-shadow: none; }
  a, .btn { color: #000; text-decoration: underline; }
}