/*
 * Xvising Inner Page System
 * Applies to standard WordPress pages through `body.xvising-page-shell`.
 */

body.xvising-page-shell {
  --xv-gold-1: #d4af37;
  --xv-gold-2: #ffd700;
  --xv-gold-3: #f9e27d;
  --xv-cyan: #63f5ff;
  --xv-ink: #ecf1ff;
  --xv-muted: #a7b2cb;
  --xv-bg-0: #060810;
  --xv-bg-1: #0a0f1d;
  --xv-bg-2: #131c30;
  --xv-glass-stroke: rgba(255, 255, 255, 0.13);
  --xv-shell: linear-gradient(180deg, rgba(18, 24, 40, 0.82), rgba(8, 12, 22, 0.8));
  --xv-gold-grad: linear-gradient(135deg, var(--xv-gold-1), var(--xv-gold-2) 45%, var(--xv-gold-3));

  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--xv-ink);
  background-color: var(--xv-bg-1);
  background-image:
    radial-gradient(1200px 700px at 75% -20%, #1a2540 0%, transparent 65%),
    radial-gradient(1000px 650px at -8% 18%, #101d42 0%, transparent 60%),
    linear-gradient(180deg, var(--xv-bg-0), var(--xv-bg-1) 35%, #070a14 100%);
  background-attachment: fixed;
}

body.xvising-page-shell.xvising-owns-chrome #masthead,
body.xvising-page-shell.xvising-owns-chrome #colophon,
body.xvising-page-shell.xvising-owns-chrome .ast-mobile-header-wrap {
  display: none !important;
}

body.xvising-page-shell .xvising-page-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.xvising-page-shell .xv-page-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.94), rgba(5, 9, 18, 0.74));
  border-bottom: 1px solid rgba(99, 245, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

body.xvising-page-shell .xv-page-header-inner {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
  min-height: 78px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body.xvising-page-shell .xv-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

body.xvising-page-shell .xv-page-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(99, 245, 255, 0.25)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.2));
}

body.xvising-page-shell .xv-page-brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

body.xvising-page-shell .xv-page-brand-copy strong {
  font-family: "Orbitron", "Poppins", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  background: var(--xv-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

body.xvising-page-shell .xv-page-brand-copy em {
  font-style: italic;
  font-size: 0.78rem;
  color: #f6f9ff;
  opacity: 0.92;
}

body.xvising-page-shell .xv-page-nav {
  min-width: 0;
}

body.xvising-page-shell .xv-page-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
}

body.xvising-page-shell .xv-page-nav-list li {
  margin: 0;
}

body.xvising-page-shell .xv-page-nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border: 0;
  color: #f4f7ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  position: relative;
}

body.xvising-page-shell .xv-page-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.95), transparent);
}

body.xvising-page-shell .xv-page-nav-list a:hover,
body.xvising-page-shell .xv-page-nav-list .current-menu-item > a,
body.xvising-page-shell .xv-page-nav-list .current_page_item > a {
  color: #fff2b8;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.22);
}

body.xvising-page-shell .xv-page-nav-list a:hover::after,
body.xvising-page-shell .xv-page-nav-list .current-menu-item > a::after,
body.xvising-page-shell .xv-page-nav-list .current_page_item > a::after {
  transform: scaleX(1);
}

body.xvising-page-shell .xv-page-content-shell {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) 0 clamp(42px, 8vw, 86px);
  flex: 1 0 auto;
}

body.xvising-page-shell .site,
body.xvising-page-shell #content,
body.xvising-page-shell .site-content {
  background: transparent;
}

body.xvising-page-shell .site-content > .ast-container {
  max-width: min(1240px, calc(100vw - 2rem));
  padding-top: 0;
  padding-bottom: 0;
}

body.xvising-page-shell #primary {
  margin: 0;
  width: 100%;
}

body.xvising-page-shell article.type-page .entry-header,
body.xvising-page-shell article.type-page .entry-content {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.xvising-page-shell article.type-page {
  position: relative;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(20px, 3.4vw, 44px);
  background:
    radial-gradient(540px 220px at 16% 0%, rgba(99, 245, 255, 0.11), transparent 65%) padding-box,
    radial-gradient(540px 220px at 88% 100%, rgba(255, 215, 0, 0.14), transparent 64%) padding-box,
    var(--xv-shell) padding-box,
    linear-gradient(135deg, rgba(255, 215, 0, 0.55), rgba(99, 245, 255, 0.24) 52%, rgba(255, 255, 255, 0.14)) border-box;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.xvising-page-shell .xv-page-footer {
  margin-top: auto;
  position: relative;
  border-top: 1px solid rgba(255, 215, 0, 0.18);
  background:
    radial-gradient(900px 260px at 50% -22%, rgba(255, 215, 0, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(8, 12, 22, 0.9), rgba(4, 7, 15, 0.95));
}

body.xvising-page-shell .xv-page-footer-inner {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 20px 0 26px;
}

body.xvising-page-shell .xv-page-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px clamp(10px, 1.4vw, 18px);
}

body.xvising-page-shell .xv-page-footer-menu li {
  margin: 0;
  flex: 0 0 auto;
}

body.xvising-page-shell .xv-page-footer-menu a {
  border: 0;
  color: #eef3ff;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.95;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

body.xvising-page-shell .xv-page-footer-menu a:hover,
body.xvising-page-shell .xv-page-footer-menu .current-menu-item > a {
  color: #fff2b8;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

body.xvising-page-shell .xv-page-footer-legal {
  margin: 12px 0 0;
  text-align: center;
  color: var(--xv-muted);
  font-size: 0.9rem;
}

body.xvising-page-shell article.type-page .entry-header {
  margin-bottom: clamp(18px, 3vw, 28px);
}

body.xvising-page-shell article.type-page .entry-title,
body.xvising-page-shell article.type-page h1,
body.xvising-page-shell article.type-page h2,
body.xvising-page-shell article.type-page h3,
body.xvising-page-shell article.type-page h4,
body.xvising-page-shell article.type-page h5,
body.xvising-page-shell article.type-page h6 {
  font-family: "Orbitron", "Poppins", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #f5f8ff;
  margin: 0 0 0.55em;
}

body.xvising-page-shell article.type-page .entry-title,
body.xvising-page-shell article.type-page h1,
body.xvising-page-shell article.type-page h2 {
  background: var(--xv-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(255, 215, 0, 0.12);
}

body.xvising-page-shell article.type-page h1 {
  font-size: clamp(2.05rem, 4vw, 3rem);
}

body.xvising-page-shell article.type-page h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

body.xvising-page-shell article.type-page h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

body.xvising-page-shell article.type-page .entry-content {
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.78;
  color: var(--xv-ink);
}

body.xvising-page-shell article.type-page .entry-content > * + * {
  margin-top: 1.1em;
}

body.xvising-page-shell article.type-page p,
body.xvising-page-shell article.type-page li,
body.xvising-page-shell article.type-page dd {
  color: var(--xv-ink);
}

body.xvising-page-shell article.type-page strong,
body.xvising-page-shell article.type-page b {
  color: #fff4c4;
}

body.xvising-page-shell article.type-page em {
  color: #d4ebff;
}

body.xvising-page-shell article.type-page a {
  color: #b7fbff;
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 245, 255, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

body.xvising-page-shell article.type-page a:hover,
body.xvising-page-shell article.type-page a:focus-visible {
  color: #fff2ac;
  border-bottom-color: rgba(255, 215, 0, 0.65);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

body.xvising-page-shell article.type-page ul,
body.xvising-page-shell article.type-page ol {
  padding-inline-start: 1.3rem;
}

body.xvising-page-shell article.type-page li::marker {
  color: #ffd96b;
}

body.xvising-page-shell article.type-page blockquote,
body.xvising-page-shell article.type-page .wp-block-quote {
  margin: 1.6em 0;
  padding: 1rem 1.1rem 1rem 1.2rem;
  border-left: 3px solid rgba(255, 215, 0, 0.8);
  background: linear-gradient(100deg, rgba(255, 215, 0, 0.1), rgba(99, 245, 255, 0.06));
  border-radius: 0 12px 12px 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.xvising-page-shell article.type-page hr,
body.xvising-page-shell article.type-page .wp-block-separator {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.55), transparent);
}

body.xvising-page-shell article.type-page pre,
body.xvising-page-shell article.type-page code,
body.xvising-page-shell article.type-page kbd,
body.xvising-page-shell article.type-page samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

body.xvising-page-shell article.type-page code,
body.xvising-page-shell article.type-page kbd {
  padding: 0.15em 0.45em;
  border-radius: 6px;
  background: rgba(99, 245, 255, 0.12);
  color: #dffaff;
}

body.xvising-page-shell article.type-page pre {
  margin: 1.6em 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(99, 245, 255, 0.24);
  background: #060b15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.xvising-page-shell article.type-page table,
body.xvising-page-shell article.type-page .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.xvising-page-shell article.type-page th,
body.xvising-page-shell article.type-page td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.xvising-page-shell article.type-page th {
  text-align: left;
  color: #fff2c2;
  background: rgba(255, 215, 0, 0.14);
}

body.xvising-page-shell article.type-page tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

body.xvising-page-shell article.type-page .wp-block-button__link,
body.xvising-page-shell article.type-page .wp-element-button,
body.xvising-page-shell article.type-page button,
body.xvising-page-shell article.type-page input[type="button"],
body.xvising-page-shell article.type-page input[type="submit"] {
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.55);
  color: #1a1200;
  background: var(--xv-gold-grad);
  box-shadow: 0 12px 24px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.xvising-page-shell article.type-page .wp-block-button__link:hover,
body.xvising-page-shell article.type-page .wp-element-button:hover,
body.xvising-page-shell article.type-page button:hover,
body.xvising-page-shell article.type-page input[type="button"]:hover,
body.xvising-page-shell article.type-page input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 32px rgba(212, 175, 55, 0.35), 0 0 18px rgba(99, 245, 255, 0.14);
}

body.xvising-page-shell article.type-page input[type="text"],
body.xvising-page-shell article.type-page input[type="email"],
body.xvising-page-shell article.type-page input[type="url"],
body.xvising-page-shell article.type-page input[type="tel"],
body.xvising-page-shell article.type-page input[type="number"],
body.xvising-page-shell article.type-page textarea,
body.xvising-page-shell article.type-page select {
  width: 100%;
  color: #f4f8ff;
  background: rgba(10, 16, 29, 0.82);
  border: 1px solid rgba(99, 245, 255, 0.3);
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
}

body.xvising-page-shell article.type-page input:focus-visible,
body.xvising-page-shell article.type-page textarea:focus-visible,
body.xvising-page-shell article.type-page select:focus-visible,
body.xvising-page-shell article.type-page button:focus-visible,
body.xvising-page-shell article.type-page .wp-block-button__link:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.86);
  outline-offset: 2px;
}

body.xvising-page-shell article.type-page figcaption,
body.xvising-page-shell article.type-page .wp-caption-text {
  color: var(--xv-muted);
  font-size: 0.92rem;
}

@media (max-width: 782px) {
  body.xvising-page-shell .xv-page-header-inner {
    width: calc(100vw - 1rem);
    min-height: 72px;
    padding: 9px 0;
    gap: 12px;
  }

  body.xvising-page-shell .xv-page-brand-logo {
    width: 44px;
    height: 44px;
  }

  body.xvising-page-shell .xv-page-brand-copy em {
    font-size: 0.72rem;
  }

  body.xvising-page-shell .xv-page-nav-list {
    gap: 10px 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.xvising-page-shell .xv-page-content-shell {
    width: calc(100vw - 1rem);
    padding-top: 16px;
    padding-bottom: 34px;
  }

  body.xvising-page-shell .site-content > .ast-container {
    max-width: calc(100vw - 1rem);
  }

  body.xvising-page-shell article.type-page {
    border-radius: 14px;
    padding: 18px 14px;
  }

  body.xvising-page-shell .xv-page-footer-inner {
    width: calc(100vw - 1rem);
    padding-bottom: 20px;
  }

  body.xvising-page-shell .xv-page-footer-menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.xvising-page-shell article.type-page a,
  body.xvising-page-shell article.type-page .wp-block-button__link,
  body.xvising-page-shell article.type-page .wp-element-button,
  body.xvising-page-shell article.type-page button,
  body.xvising-page-shell article.type-page input[type="button"],
  body.xvising-page-shell article.type-page input[type="submit"] {
    transition: none;
  }
}
