/*
 * VaporHey v2 — LinxStash flagship theme
 * Pure-CSS synthwave background (zero image weight), frosted-glass buttons,
 * neon avatar ring. WCAG AA text contrast, prefers-reduced-motion aware.
 */

:root {
  --vh-pink:   #f72585;
  --vh-cyan:   #4cc9f0;
  --vh-purple: #7209b7;
  --vh-bg:     #060010;
  --vh-text:   #f2ecff;
  --vh-muted:  #c9bfe6;
  --vh-glass:  rgba(18, 8, 40, 0.55);
  --vh-radius: 14px;
}

/* Grid
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
  position: relative;
  z-index: 10;               /* content always above background layers */
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 12px;
}
.column { position: relative; width: 100%; box-sizing: border-box; }

@media (min-width: 400px) { .container { width: 90%; padding: 0; } }
@media (min-width: 550px) { .container { width: 80%; } }

/* Base
–––––––––––––––––––––––––––––––––––––––––––––––––– */
html { font-size: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  color: var(--vh-text);
  background-color: var(--vh-bg);
  -webkit-tap-highlight-color: rgba(247, 37, 133, 0.25);
  overflow-x: hidden;
}

/* Synthwave sky: deep-space gradient + glowing sun, fixed, behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 78%, rgba(247, 37, 133, 0.55) 0%, rgba(247, 37, 133, 0.28) 7%, transparent 16%),
    radial-gradient(ellipse at 50% 110%, rgba(114, 9, 183, 0.55) 0%, transparent 55%),
    linear-gradient(180deg, #02000a 0%, #0d0221 34%, #261447 62%, #3b1370 78%, #060010 100%);
}

/* Perspective grid floor */
body::after {
  content: "";
  position: fixed;
  left: -60vw;
  right: -60vw;
  bottom: -12vh;
  height: 46vh;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 201, 240, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 240, 0.32) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(240px) rotateX(58deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 100%);
  animation: vh-grid-flow 24s linear infinite;
}

@keyframes vh-grid-flow {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 460px, 0 0; }
}

/* Subtle CRT scanlines above everything, never blocking input */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0)   0px,
    rgba(0, 0, 0, 0)   3px,
    rgba(6, 0, 16, 0.10) 3px,
    rgba(6, 0, 16, 0.10) 4px
  );
}

/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */
h1 {
  margin: 0 0 10px;
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(92deg, var(--vh-pink) 0%, #c77dff 45%, var(--vh-cyan) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: var(--vh-cyan); /* fallback if clip unsupported */
  filter: drop-shadow(0 0 14px rgba(247, 37, 133, 0.45));
}
@media (min-width: 550px) { h1 { font-size: 40px; } }

/* verification badge inherits gradient clip poorly — keep it visible */
h1 svg { -webkit-text-fill-color: initial; }

p { margin-top: 0; }

.description-parent {
  max-width: 480px;
  margin: 0 auto;
  color: var(--vh-muted);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.015em;
}
.description-parent a { color: var(--vh-cyan); }
.description-parent a:hover { color: var(--vh-pink); }

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */
a { color: var(--vh-cyan); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--vh-pink); }

::selection { background: var(--vh-pink); color: #fff; }

/* Avatar — neon gradient ring + soft glow
–––––––––––––––––––––––––––––––––––––––––––––––––– */
#avatar {
  position: relative;
  z-index: 10;
  border-radius: 50%;
  padding: 4px;
  background:
    linear-gradient(var(--vh-bg), var(--vh-bg)) padding-box,
    linear-gradient(135deg, var(--vh-pink), var(--vh-purple) 50%, var(--vh-cyan)) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 0 22px rgba(247, 37, 133, 0.45),
    0 0 44px rgba(76, 201, 240, 0.25);
  animation: vh-avatar-glow 4s ease-in-out infinite alternate;
}

@keyframes vh-avatar-glow {
  from { box-shadow: 0 0 18px rgba(247, 37, 133, 0.40), 0 0 36px rgba(76, 201, 240, 0.20); }
  to   { box-shadow: 0 0 26px rgba(76, 201, 240, 0.50), 0 0 52px rgba(247, 37, 133, 0.30); }
}

/* Buttons — frosted glass, gradient edge, lift on hover
–––––––––––––––––––––––––––––––––––––––––––––––––– */
button, .button { margin-bottom: 1rem; }

.column .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 10px 44px;
  box-sizing: border-box;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background:
    linear-gradient(var(--vh-glass), var(--vh-glass)) padding-box,
    linear-gradient(120deg, rgba(247, 37, 133, 0.65), rgba(114, 9, 183, 0.65) 50%, rgba(76, 201, 240, 0.65)) border-box;
  border: 1.5px solid transparent;
  border-radius: var(--vh-radius);
  box-shadow: 0 4px 18px rgba(2, 0, 10, 0.55);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .column .button {
    -webkit-backdrop-filter: blur(9px) saturate(1.3);
            backdrop-filter: blur(9px) saturate(1.3);
  }
}

.column .button:hover,
.column .button:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
  background:
    linear-gradient(rgba(30, 14, 60, 0.62), rgba(30, 14, 60, 0.62)) padding-box,
    linear-gradient(120deg, var(--vh-pink), #c77dff 50%, var(--vh-cyan)) border-box;
  box-shadow:
    0 6px 22px rgba(2, 0, 10, 0.6),
    0 0 18px rgba(247, 37, 133, 0.35),
    0 0 34px rgba(76, 201, 240, 0.22);
}

.column .button:active { transform: translateY(0); transition-duration: 60ms; }

.column .button:focus-visible {
  outline: 2px solid var(--vh-cyan);
  outline-offset: 3px;
}

/* Button icons: normalize to white for cohesion */
.column .button img.icon {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.column .button i.icon { color: #fff !important; }

/* Social icon row
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.social-icon-div { position: relative; z-index: 10; }
.social-icon {
  color: var(--vh-cyan);
  font-size: 26px;
  padding: 0 6px;
  text-shadow: 0 0 12px rgba(76, 201, 240, 0.55);
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}
.social-hover:hover .social-icon,
.social-link:focus-visible .social-icon {
  color: var(--vh-pink);
  transform: translateY(-2px) scale(1.12);
  text-shadow: 0 0 16px rgba(247, 37, 133, 0.65);
}
.social-link:focus-visible { outline: 2px solid var(--vh-cyan); outline-offset: 3px; border-radius: 6px; }

/* Parallax objects from core markup — hide, we have our own scene
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.background-container, .parallax-background { display: none; }

/* Footer / credit
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.credit-txt { font-weight: 700; font-size: 15px; text-decoration: none; }
.credit-txt-clr { color: var(--vh-muted) !important; }

/* Scrollbar
–––––––––––––––––––––––––––––––––––––––––––––––––– */
* { scrollbar-width: thin; scrollbar-color: var(--vh-purple) #0d0221; }
*::-webkit-scrollbar { width: 8px; }
*::-webkit-scrollbar-track { background: #0d0221; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--vh-pink), var(--vh-purple));
  border-radius: 30px;
}

/* Misc
–––––––––––––––––––––––––––––––––––––––––––––––––– */
hr { margin: 3rem 0 3.5rem; border-width: 0; border-top: 1px solid rgba(76, 201, 240, 0.25); }

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #16082b;
  border: 1px solid var(--vh-purple);
  border-radius: 4px;
  color: var(--vh-cyan);
}

.u-full-width { width: 100%; box-sizing: border-box; }
.u-max-full-width { max-width: 100%; box-sizing: border-box; }

/* iOS Safari: fixed attachment is broken on WebKit touch devices
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll !important; }
  /* position:fixed pseudo layers still work on iOS — scene stays intact */
}

/* Reduced motion: kill all animation, keep the look
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  #avatar { animation: none; }
  .column .button, .social-icon, a { transition: none; }
  html { scroll-behavior: auto; }
}
