/* ===== SUBPAGES: MINECRAFT NIGHT WORLD BACKGROUNDS ===== */
/* Visual-only — structure, images, and content unchanged */

/* Let global starfield from theme-nocturne.css show through */
body.theme-nocturne.rift-subpage,
body.theme-nocturne.folio-page,
body.theme-nocturne.store-download-page {
  background-color: #050810;
}

body.theme-nocturne .folio-main,
body.theme-nocturne .mc-store {
  background: transparent;
  position: relative;
  z-index: 1;
}

body.theme-nocturne.rift-subpage main {
  background: transparent;
}

/* Section shell — layered environments */
body.theme-nocturne .folio-section,
body.theme-nocturne .feat-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.theme-nocturne .folio-section::before,
body.theme-nocturne .feat-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    #2a3038 0,
    #2a3038 6px,
    #1e232b 6px,
    #1e232b 12px,
    #353b44 12px,
    #353b44 14px,
    #1a1f28 14px,
    #1a1f28 20px
  );
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  opacity: 0.85;
}

body.theme-nocturne .folio-wrap,
body.theme-nocturne .feat-wrap,
body.theme-nocturne .folio-faq-layout,
body.theme-nocturne .shop-inner {
  position: relative;
  z-index: 1;
}

/* --- FEATURES PAGE --- */
body.theme-nocturne .feat-hero {
  background: #060a14;
}

body.theme-nocturne .feat-hero--garden {
  background: #060a14;
}

body.theme-nocturne .feat-hero--garden .feat-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(36, 121, 210, 0.08), transparent 65%),
    linear-gradient(180deg, transparent 70%, rgba(5, 8, 16, 0.35) 100%);
}

body.theme-nocturne .feat-hero__visual::after {
  content: none;
}

body.theme-nocturne .feat-section--void {
  background-color: #081018 !important;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(91, 61, 138, 0.12), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #060c14 100%) !important;
}

body.theme-nocturne .feat-section--void::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 50% 35% at 80% 70%, rgba(36, 121, 210, 0.06), transparent 60%);
}

body.theme-nocturne .feat-section--deepslate {
  background-color: #0a0c10 !important;
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(42, 48, 56, 0.35), transparent 60%),
    linear-gradient(180deg, #12151c 0%, #0a0c10 100%) !important;
}

body.theme-nocturne .feat-section--deepslate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(26, 31, 40, 0.22) 14px,
    rgba(26, 31, 40, 0.22) 16px
  );
  opacity: 0.7;
}

body.theme-nocturne .feat-section--stone {
  background-color: #0c1610 !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(93, 145, 53, 0.1), transparent 50%),
    linear-gradient(180deg, #101e17 0%, #0c1812 100%) !important;
}

body.theme-nocturne .feat-section--stone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(175deg, transparent 70%, rgba(22, 53, 26, 0.2) 70.5%, transparent 71%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 7px,
      rgba(255, 255, 255, 0.015) 7px,
      rgba(255, 255, 255, 0.015) 8px
    );
  opacity: 0.4;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
}

/* --- FOLIO EDITORIAL PAGES (guides, faq, trust) --- */
body.theme-nocturne .folio-hero__overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 20, 0.15) 0%, rgba(6, 10, 20, 0.45) 45%, rgba(5, 8, 14, 0.88) 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(111, 136, 216, 0.12), transparent 55%) !important;
}

body.theme-nocturne .folio-hero--faq .folio-hero__overlay {
  background:
    linear-gradient(135deg, rgba(91, 61, 138, 0.35) 0%, rgba(8, 10, 18, 0.55) 45%, rgba(5, 8, 14, 0.92) 100%),
    radial-gradient(circle at 20% 20%, rgba(111, 136, 216, 0.1), transparent 40%) !important;
}

body.theme-nocturne .folio-hero--guides .folio-hero__overlay {
  background:
    linear-gradient(180deg, rgba(20, 16, 10, 0.2) 0%, rgba(12, 18, 14, 0.55) 50%, rgba(5, 8, 14, 0.92) 100%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(231, 163, 74, 0.08), transparent 50%) !important;
}

body.theme-nocturne .folio-hero--trust .folio-hero__overlay {
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.25) 0%, rgba(10, 12, 18, 0.65) 55%, rgba(5, 8, 14, 0.94) 100%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(42, 48, 56, 0.3), transparent 60%) !important;
}

body.theme-nocturne .folio-section--stone {
  background-color: #0b1220 !important;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(111, 136, 216, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1630 0%, #080d18 100%) !important;
}

body.theme-nocturne .folio-section--stone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(168deg, transparent 75%, rgba(22, 53, 26, 0.18) 75.3%, transparent 76%),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(255, 255, 255, 0.012) 15px, rgba(255, 255, 255, 0.012) 16px);
}

body.theme-nocturne .folio-section--deepslate {
  background-color: #0a0c10 !important;
  background-image:
    linear-gradient(180deg, #10131c 0%, #060810 100%) !important;
}

body.theme-nocturne .folio-section--deepslate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 50% 60%, rgba(91, 61, 138, 0.14), transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.016) 11px,
      rgba(255, 255, 255, 0.016) 12px
    );
  opacity: 0.65;
}

body.theme-nocturne .folio-section--dark,
body.theme-nocturne .folio-section--parchment-band {
  background-color: #081018 !important;
  background-image:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(193, 90, 145, 0.1), transparent 55%),
    linear-gradient(180deg, #0a1420 0%, #060c14 100%) !important;
}

body.theme-nocturne .folio-page .folio-main > .folio-section:last-of-type,
body.theme-nocturne .folio-page .folio-main > .folio-cta:last-child {
  background-color: #0a0c10 !important;
  background-image: linear-gradient(180deg, #12151c 0%, #080a0e 100%) !important;
}

body.theme-nocturne .folio-block-edge {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #3d4a38 0,
    #3d4a38 8px,
    #2a3328 8px,
    #2a3328 16px,
    #1a1f28 16px,
    #1a1f28 24px
  ) !important;
  opacity: 0.9;
}

body.theme-nocturne .folio-block-edge--stone {
  background: repeating-linear-gradient(
    90deg,
    #3a4048 0,
    #3a4048 10px,
    #2a3038 10px,
    #2a3038 20px
  ) !important;
}

body.theme-nocturne .folio-block-edge--dirt {
  background: repeating-linear-gradient(
    90deg,
    #4a3828 0,
    #4a3828 8px,
    #3a2a1c 8px,
    #3a2a1c 16px,
    #2a1f14 16px,
    #2a1f14 24px
  ) !important;
}

body.theme-nocturne .folio-block-edge--purple {
  background: repeating-linear-gradient(
    90deg,
    #4e3678 0,
    #4e3678 8px,
    #291a4a 8px,
    #291a4a 16px,
    #1a1030 16px,
    #1a1030 24px
  ) !important;
}

body.theme-nocturne .folio-cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(78, 54, 120, 0.15), transparent 55%),
    linear-gradient(180deg, #0e1630 0%, #080d18 100%) !important;
  position: relative;
  isolation: isolate;
}

/* --- DOWNLOAD STORE --- */
body.theme-nocturne .mc-store {
  background: transparent;
}

body.theme-nocturne .shop-pdp {
  position: relative;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(231, 163, 74, 0.08), transparent 55%),
    linear-gradient(180deg, #141210 0%, #0a0c10 100%);
}

body.theme-nocturne .shop-pdp::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.01) 15px,
    rgba(255, 255, 255, 0.01) 16px
  );
  opacity: 0.5;
}

body.theme-nocturne .shop-gallery,
body.theme-nocturne .shop-specs,
body.theme-nocturne .shop-faq-block,
body.theme-nocturne .shop-platforms {
  position: relative;
  isolation: isolate;
}

body.theme-nocturne .shop-gallery {
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(36, 121, 210, 0.06), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #060c14 100%) !important;
}

body.theme-nocturne .shop-specs {
  background:
    linear-gradient(180deg, #10131c 0%, #0a0c10 100%) !important;
}

body.theme-nocturne .shop-specs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 12px,
    rgba(26, 31, 40, 0.2) 12px,
    rgba(26, 31, 40, 0.2) 14px
  );
  opacity: 0.6;
}

body.theme-nocturne .shop-faq-block {
  background:
    radial-gradient(ellipse 55% 45% at 50% 60%, rgba(91, 61, 138, 0.1), transparent 60%),
    linear-gradient(180deg, #0c1610 0%, #081018 100%) !important;
}

body.theme-nocturne .shop-platforms {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(93, 145, 53, 0.08), transparent 50%),
    linear-gradient(180deg, #101e17 0%, #0a1410 100%) !important;
}

body.theme-nocturne .shop-other {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(111, 136, 216, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1630 0%, #080d18 100%) !important;
}

body.theme-nocturne .shop-tabs-wrap {
  position: relative;
  background:
    linear-gradient(180deg, #10131c 0%, #0a0c10 100%) !important;
  border-bottom-color: rgba(42, 48, 56, 0.6);
}

body.theme-nocturne .shop-panels {
  position: relative;
  background:
    radial-gradient(ellipse 60% 45% at 20% 40%, rgba(36, 121, 210, 0.06), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #060c14 100%);
}

body.theme-nocturne .shop-faq {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 45% at 50% 60%, rgba(91, 61, 138, 0.1), transparent 60%),
    linear-gradient(180deg, #0c1610 0%, #081018 100%) !important;
  border-top-color: rgba(42, 48, 56, 0.5);
}

body.theme-nocturne .shop-server {
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(42, 48, 56, 0.35), transparent 60%),
    linear-gradient(180deg, #12151c 0%, #0a0c10 100%) !important;
  border-top-color: rgba(42, 48, 56, 0.5);
}

body.theme-nocturne .shop-server::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 14px,
    rgba(26, 31, 40, 0.18) 14px,
    rgba(26, 31, 40, 0.18) 16px
  );
  opacity: 0.55;
}

/* --- 404 --- */
body.theme-nocturne.page-404 main,
body.theme-nocturne .error-page {
  background: transparent;
  min-height: 50vh;
}

body.theme-nocturne.page-404 main .bg-mc-deepslate {
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(91, 61, 138, 0.15), transparent 55%),
    linear-gradient(180deg, #0a0c14 0%, #050810 100%) !important;
  position: relative;
  isolation: isolate;
}

body.theme-nocturne.page-404 main .bg-mc-deepslate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.012) 15px,
    rgba(255, 255, 255, 0.012) 16px
  );
  opacity: 0.5;
}

/* Cards stay readable on atmospheric backgrounds */
body.theme-nocturne .shop-product,
body.theme-nocturne .shop-edition-card,
body.theme-nocturne .folio-stone-panel,
body.theme-nocturne .folio-field-note {
  backdrop-filter: blur(1px);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-nocturne .folio-section::before,
  body.theme-nocturne .feat-section::before {
    animation: none !important;
  }
}
