/* Global: Tokens & Layout (Mobile-First) */
:root {
  --bg: #0a0a0f;
  --bg-2: #11131a;
  --text: #f8f8f8;
  --muted: #cbd5e1;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --accent: #ff6f61;
  --accent-2: #ffffff;
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
  --radius: 14px;
  --focus: rgba(255,255,255,0.95);
}

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, #0b0b0f 0%, #10131a 60%, #0b0b0f 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

/* Coral geometric shapes background layer (decorative) + subtle glow */
body::before {
  content: "";
  position: fixed;
  width: 60vmin;
  height: 60vmin;
  left: -12vmin;
  top: -12vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,140,100,.28), transparent 40%),
    conic-gradient(from 180deg at 60% 40%, rgba(255,90,60,.25), rgba(255,180,90,.15), transparent 40%);
  filter: blur(0.5px) saturate(1.2);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  transform: rotate(10deg);
}
body::after {
  content: "";
  position: fixed;
  width: 70vmin;
  height: 70vmin;
  right: -14vmin;
  bottom: -14vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.25), transparent 40%),
    conic-gradient(from 0deg at 50% 50%, rgba(255,180,100,.25), transparent 40%);
  filter: blur(0.5px);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-6deg);
}

/* Glass panels: layered translucency with backdrop blur; fallback handled by opacity */
.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.grid { display: grid; gap: 1rem; }

/* Sections (global selectors) */
html, body, header, nav, main, article, aside, footer {
  scroll-behavior: smooth;
}

/* Header / Hero */
header {
  display: grid;
  place-items: center;
  padding: 1rem 0;
  margin: 1rem auto;
}

header > h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  line-height: 1.15;
  text-align: center;
  padding: 0.75rem 1rem;
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Main content */
main {
  padding: 0.75rem 0 2rem;
  min-height: calc(100vh - 260px);
}

.image-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.25);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

/* Article/meta styles (prepared for possible content) */
content, .content {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted);
}
h2, h3 { color: #fff; }

/* Footer / Product ads (glass panels) */
footer {
  padding: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: center;
  z-index: 1;
}
.product-ad, .sponsored-page {
  width: min(100%, 720px);
  padding: .75rem;
  text-align: center;
}
.product-ad { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
.sponsored-page { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }

/* Links / CTAs */
a, button, .btn, .cta {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  background: var(--accent);
  padding: .75rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.5);
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
a { background: transparent; color: var(--accent-2); border-radius: 6px; padding: .0; border: 0; text-decoration: underline dotted; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: #fff; }
.btn, .cta {
  background: var(--accent);
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #ff7a60; }
.btn:active, .cta:active { transform: translateY(0); }

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Utility components */
ul, li { margin: 0; padding: 0 0 0 1.25rem; color: var(--muted); }
li { margin: .15rem 0; }

/* Glass panel helper */
.card, .card-glass, .glass-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; }

/* Social / metadata text tweaks (optional) */
.small { font-size: .875rem; color: var(--muted); }

/* Layout helpers (grid utilities) */
@media (min-width: 640px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  main { padding-inline: 0; }
  .container { padding-inline: 0; }
  footer { grid-template-columns: 1fr 1fr; }
  .image-frame { margin-top: 0.5rem; }
}

/* Dark mode tweaks (default to dark cyber theme) */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #ffffff;
    --text: #111;
    --muted: #555;
    --surface: rgba(255,255,255,.9);
    --surface-2: rgba(255,255,255,.95);
    --accent: #c44a2a;
    --accent-2: #111;
    --border: rgba(0,0,0,.15);
    --shadow: 0 6px 14px rgba(0,0,0,.08);
  }
  body {
    background: linear-gradient(135deg, #f7f7f7 0%, #f0f0f0 60%, #f7f7f7 100%);
    color: var(--text);
    background-attachment: scroll;
  }
  body::before, body::after { display: none; }
  header > h1 {
    color: #111;
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(0,0,0,.08);
    text-shadow: none;
  }
  .glass { background: rgba(255,255,255,.8); border: 1px solid rgba(0,0,0,.1); }
  a { color: #1a1a1a; }
}
 
/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  a, button { color: #000; text-decoration: none; }
}
