/* =========================================================
   hellafits — link-in-bio page
   Flat, matte dark theme (recreates cedaz.com layout)
   bg #161616 · cards #1C1C1C · text #FFFAFA · 6px radius
   No gradients, no shadows, no blur.
   ========================================================= */

:root {
  --bg: #161616;
  --card: #1c1c1c;
  --card-hover: #242424;
  --thumb: #262626;
  --text: #fffafa;
  --text-dim: #9b9b9b;
  --text-mute: #6f6f6f;
  --line: #2a2a2a;
  --matrix: #00e05a;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Region-gated cards rely on [hidden] beating .link-card's display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Layout: single centered column ---------- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 20px 48px;
}

/* ---------- Profile ---------- */
.profile { text-align: center; }

.avatar-link { display: inline-block; }
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.name {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 18px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ---------- Quick buttons row ---------- */
.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.quick-btn {
  background: var(--card);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease;
}
.quick-btn:hover { background: var(--card-hover); }

/* ---------- Link cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.link-card:hover { background: var(--card-hover); }

.thumb {
  width: 61px;
  height: 61px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--thumb);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.link-body { flex: 1; min-width: 0; text-align: left; }
.link-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.link-desc {
  display: block;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 3px;
}

.link-cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.link-card:hover .link-cta { color: var(--text); }

/* ---------- Newest video ---------- */
.video-section { margin-top: 32px; }
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}
.video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.video-label {
  font-size: 13px;
  color: var(--text-dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-label strong { color: var(--text); font-weight: 600; }
.yt-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.yt-link:hover { color: var(--text); }

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.video-thumb:hover img { opacity: 1; transform: scale(1.02); }
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play svg {
  width: 62px;
  height: 62px;
  padding: 16px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  color: #fff;
  transition: transform 0.2s ease;
}
.video-thumb:hover .play svg { transform: scale(1.08); }

/* ---------- Social tiles (icon only) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.tile {
  background: var(--card);
  border-radius: var(--radius);
  aspect-ratio: 131 / 77;
  display: grid;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s ease;
}
.tile:hover { background: var(--card-hover); }
.tile svg { width: 24px; height: 24px; }

/* ---------- Socials card ---------- */
.socials-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-top: 20px;
  text-align: center;
}
.socials-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.socials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
.socials-row a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.socials-row a svg { width: 22px; height: 22px; }
.socials-row a:hover { color: var(--text); transform: translateY(-2px); }

/* ---------- Contact form ---------- */
.contact { margin-top: 40px; }
.contact-title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
}
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.field {
  width: 100%;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.field::placeholder { color: var(--text-mute); }
.field:focus { outline: none; border-color: var(--line); background: var(--card-hover); }
textarea.field { min-height: 125px; resize: vertical; }

.submit {
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.submit:hover { opacity: 0.85; }
.submit:active { opacity: 0.7; }
.submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Footer ---------- */
.footer-bottom {
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  color: var(--text);
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s ease;
  z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Reveal animation (subtle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .container { padding: 44px 16px 36px; }
  .name { font-size: 36px; }
  .avatar { width: 76px; height: 76px; }
  .thumb { width: 52px; height: 52px; font-size: 24px; }
  .link-card { gap: 13px; padding: 14px; }
  .link-cta { display: none; }
  .tiles { gap: 9px; }
  .play svg { width: 52px; height: 52px; padding: 13px; }
}

/* =========================================================
   EFFECTS — matrix accents & element interactions
   ========================================================= */

/* Background layers (behind content, above the flat bg) */
#matrix {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Avatar pulsing green ring (transform/opacity = compositor-friendly) */
.avatar-link { position: relative; }
.avatar-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 224, 90, 0.5);
  animation: avatar-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes avatar-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Name soft glow */
.name { text-shadow: 0 0 26px rgba(0, 224, 90, 0.25); }

/* Link cards: lift + green border glow + scanline sweep */
.link-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(0, 224, 90, 0.10), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 224, 90, 0.35);
  box-shadow: 0 10px 32px -14px rgba(0, 224, 90, 0.45);
}
.link-card:hover::after { left: 120%; }
.thumb { transition: transform 0.25s ease; }
.link-card:hover .thumb { transform: scale(1.08) rotate(-3deg); }
.link-card:hover .link-cta { color: var(--matrix); }

/* Quick buttons */
.quick-btn {
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.quick-btn:hover {
  color: var(--matrix);
  border-color: rgba(0, 224, 90, 0.4);
  box-shadow: 0 0 18px -6px rgba(0, 224, 90, 0.5);
  transform: translateY(-2px);
}

/* Social tiles */
.tile {
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tile:hover {
  color: var(--matrix);
  border-color: rgba(0, 224, 90, 0.4);
  box-shadow: 0 0 20px -6px rgba(0, 224, 90, 0.5);
  transform: translateY(-3px);
}

/* Socials card icons */
.socials-row a:hover { color: var(--matrix); }

/* Video card */
.video-card {
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
  border-color: rgba(0, 224, 90, 0.3);
  box-shadow: 0 10px 32px -14px rgba(0, 224, 90, 0.35);
}
.video-thumb:hover .play svg { box-shadow: 0 0 24px -4px rgba(255, 0, 0, 0.7); }

/* Submit button */
.submit { transition: opacity 0.18s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.submit:hover {
  box-shadow: 0 0 26px -8px rgba(0, 224, 90, 0.6);
  transform: translateY(-2px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #matrix { display: none; }
  .avatar-link::after { animation: none; }
  .link-card::after { display: none; }
}

/* =========================================================
   ENHANCE — spotlight, progress, ticker, magnetic, misc
   ========================================================= */

/* Cursor spotlight */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 90, 0.10) 0%, rgba(0, 224, 90, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--matrix);
  box-shadow: 0 0 8px rgba(0, 224, 90, 0.6);
  z-index: 60;
}

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 50;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover {
  color: var(--matrix);
  border-color: rgba(0, 224, 90, 0.4);
  box-shadow: 0 0 18px -6px rgba(0, 224, 90, 0.5);
}

/* Marquee ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin-top: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.ticker-track span {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(0, 224, 90, 0.55);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Magnetic hover (composes with the existing hover lift) */
.quick-btn { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.quick-btn:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); }
.tile { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.tile:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 3px)); }

/* Name glitch on hover */
.name:hover { animation: glitch 0.4s steps(2) 1; }
@keyframes glitch {
  0%   { text-shadow: 2px 0 rgba(0, 224, 90, 0.7), -2px 0 rgba(255, 0, 80, 0.5); }
  50%  { text-shadow: -2px 0 rgba(0, 224, 90, 0.7), 2px 0 rgba(255, 0, 80, 0.5); }
  100% { text-shadow: 0 0 26px rgba(0, 224, 90, 0.25); }
}

/* Avatar hover zoom */
.avatar { transition: transform 0.3s ease; }
.avatar-link:hover .avatar { transform: scale(1.06); }

/* Link card left accent bar */
.link-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--matrix);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.link-card:hover::before { transform: scaleY(1); }

/* Field focus green glow */
.field:focus {
  border-color: rgba(0, 224, 90, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 224, 90, 0.12);
  background: var(--card-hover);
}

/* Socials card hover glow */
.socials-card {
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.socials-card:hover {
  border-color: rgba(0, 224, 90, 0.25);
  box-shadow: 0 10px 32px -14px rgba(0, 224, 90, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .cursor-glow { display: none; }
}

/* Neutralize hover lifts on touch devices (prevents sticky hover) */
@media (hover: none) {
  .link-card:hover,
  .quick-btn:hover,
  .tile:hover,
  .submit:hover,
  .avatar-link:hover .avatar,
  .link-card:hover .thumb { transform: none; }
}
