/* ==== Global safety: prevent sideways scroll, center containers ==== */
html, body { overflow-x: hidden; }

:root {
  --mw-bg: #0a0f1c;
  --mw-card: rgba(20, 28, 48, 0.9);
  --mw-border: rgba(72, 209, 255, 0.25);
  --mw-neon: #48d1ff;
  --mw-accent: #885bff;
  --mw-text: #e9f3ff;
  --mw-muted:#9fb0c6;
  --mw-glow: 0 0 10px rgba(72,209,255,.35), 0 0 28px rgba(136,91,255,.25);
}

/* Center the main block on pages using shortcode and single template */
.maxwow-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  background:
    radial-gradient(800px 400px at 5% 0%, rgba(72,209,255,.05), transparent 60%),
    radial-gradient(600px 400px at 100% 10%, rgba(136,91,255,.05), transparent 60%),
    var(--mw-bg);
  border: 1px solid var(--mw-border);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,.35), var(--mw-glow);
}

.maxwow-heading {
  color: var(--mw-text);
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: .02em;
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 16px;
  text-shadow: 0 0 6px rgba(72,209,255,.35);
}
.maxwow-dot {
  width:10px; height:10px; border-radius:999px;
  background:linear-gradient(120deg, var(--mw-neon), var(--mw-accent));
  box-shadow: var(--mw-glow);
}

/* Grid of cards */
.maxwow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Card visuals */
.mw-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--mw-border);
  background: var(--mw-card);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.55), var(--mw-glow);
  border-color: rgba(72,209,255,.45);
}

.mw-thumb {
  aspect-ratio: 16/10;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}
.mw-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display:block;
  filter: saturate(1.06) contrast(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.mw-card:hover .mw-thumb img { transform: scale(1.04); filter: saturate(1.2) contrast(1.1); }

/* Title overlay on image */
.mw-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  color: var(--mw-text);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,12,24,.85) 60%);
}
.mw-title { margin: 0; font-size: 17px; line-height: 1.25; text-shadow: 0 0 6px rgba(0,0,0,.45); }
.mw-meta  { font-size: 12px; color: var(--mw-muted); margin-top: 4px; }

.mw-body {
  padding: 12px;
  color: var(--mw-text);
}
.mw-excerpt {
  margin: 0;
  font-size: 14px;
  color: #d7e6ff;
  opacity: .9;
  min-height: 40px;
}
.mw-btn {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(120deg, rgba(72,209,255,.14), rgba(136,91,255,.14));
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--mw-text);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mw-btn:hover { transform: translateY(-1px); background: linear-gradient(120deg, rgba(72,209,255,.25), rgba(136,91,255,.25)); border-color: rgba(72,209,255,.45); }

/* ===== Single page: 90% black transparent frame ===== */
.mw-screen-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  pointer-events: none;
}
.mw-on-top { position: relative; z-index: 1001; }

/* Glassy panel for single content */
.mw-article-panel {
  border-radius: 16px;
  border: 1px solid rgba(72,209,255,0.25);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
  overflow: hidden;
}
.mw-article-panel .mw-thumb img { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .mw-card, .mw-thumb img { transition: none !important; }
}
