/* === local font === */
@font-face {
  font-family: "NeueHaasDisplay";
  src: url("files/NeueHaasDisplayThin.ttf") format("truetype");
  font-weight: 200; /* thin */
  font-style: normal;
  font-display: swap;
}

/* =========================
   global reset / lowercase aesthetic
   ========================= */
body,
h1,
h2,
h3,
p,
a,
li,
strong,
small,
input,
button {
  text-transform: lowercase;
  font-family: "NeueHaasDisplay", system-ui, sans-serif;
}

/* spacing scale + tokens */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --rule: rgba(0, 0, 0, 0.12);
  --card: rgba(255, 255, 255, 0.45);

  /* ui palette (minimal) */
  --ink: #001d17;
  --accent: #f6ff00;
  --glass: rgba(255, 255, 255, 0.28);
  --glass-2: rgba(255, 255, 255, 0.38);
  --sea-1: rgba(12, 140, 140, 0.28);
  --sea-2: rgba(5, 107, 107, 0.28);
}

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;

  /* single, full-screen background */
  background-image: url("customization/Untitled design.gif");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* fills the screen */
  background-attachment: fixed; /* parallax feel; remove if it jitters on mobile */

  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

/* prevent mobile jank with fixed backgrounds (optional) */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* =========================
   container
   ========================= */
.psone-container {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: var(--card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* keep ALL direct children aligned to same column + gutters */
.psone-container > * {
  margin-inline: auto;
  padding-inline: var(--space-3);
  box-sizing: border-box;
  max-width: 860px;
}

/* section rhythm */
.section {
  margin-block: var(--space-5);
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule);
}
.section:first-child {
  border-top: 0;
}

.prose {
  max-width: 68ch;
}
.media {
  width: 100%;
  max-width: 720px;
  margin: var(--space-3) auto;
  display: block;
}
.meta {
  color: #08352d;
  font-size: 12px;
  opacity: 0.85;
}

/* =========================
   nav bar (logo above links)
   ========================= */
.psone-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* a little more breathing room */
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 2px solid transparent;
  font-size: 14px;
}

/* row that holds the <a> links */
.psone-menu-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem; /* more space between items */
}

/* injected logo above links */
#nav-logo {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 2px;
  image-rendering: auto;
}

/* ===== nav items: button-like “glass pills” */
.psone-menu a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 1rem; /* bigger hit target */
  border-radius: 12px;
  letter-spacing: 0.06em; /* spaced-out lettering */
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18),
    /* same vibe as .psone-btn */ inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

/* no yellow line/dot anymore */
.psone-menu a::after,
.psone-menu a::before {
  display: none !important;
  content: none !important;
}

/* hover = subtle lift + glow (matches buttons) */
.psone-menu a:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(0, 255, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 255, 210, 0.45);
}

/* active/current page = “primary” pill (sea gradient) */
.psone-menu a.active {
  background: linear-gradient(180deg, var(--sea-1), var(--sea-2));
  border-color: rgba(0, 255, 210, 0.55);
  box-shadow: 0 0 18px rgba(0, 255, 210, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* keyboard focus ring (accessible) */
.psone-menu a:focus-visible {
  outline: 2px solid rgba(0, 255, 210, 0.7);
  outline-offset: 2px;
}

/* smaller screens: keep spacing but scale text */
@media (max-width: 768px) {
  .psone-menu-links {
    gap: 0.6rem;
  }
  .psone-menu a {
    padding: 0.38rem 0.75rem;
    font-size: 12px;
    letter-spacing: 0.05em;
  }
}

/* =========================
   headings
   ========================= */
h1 {
  font-size: 22px;
  margin: 0 0 var(--space-2);
}
h2 {
  font-size: 18px;
  margin: var(--space-3) 0 var(--space-2);
}

/* =========================
   paragraphs / lists
   ========================= */
p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 var(--space-3);
}
ul {
  padding-left: 1.2rem;
}
ul li {
  margin-bottom: 0.4rem;
  font-size: 15px;
}

/* =========================
   contact button row
   ========================= */
.btn-row > .psone-btn {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .btn-row {
    width: 100%;
  }
  .btn-row > .psone-btn {
    flex: 1 1 48%;
  }
}

/* =========================
   profile image / logo (content areas)
   ========================= */
.psone-img {
  display: block;
  max-width: 400px;
  margin: 0.01rem auto;
  border: none;
  border-radius: 0;
}

/* =========================
   buttons (hover glow)
   ========================= */
.psone-btn,
.psone-btn:link,
.psone-btn:visited,
button.psone-btn {
  font: inherit;
  text-transform: lowercase;
  color: var(--ink, #001d17);
  background: linear-gradient(
    180deg,
    var(--glass-2, rgba(255, 255, 255, 0.55)),
    var(--glass, rgba(255, 255, 255, 0.32))
  );
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* hover glow */
.psone-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.45),
    0 0 32px rgba(0, 255, 210, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 255, 210, 0.5); /* soft cyan pop */
}

/* active press */
.psone-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* keyboard focus */
.psone-btn:focus-visible {
  outline: 2px solid rgba(0, 255, 210, 0.7);
  outline-offset: 2px;
}

/* variants */
.psone-btn--primary {
  background: linear-gradient(
    180deg,
    var(--sea-1, rgba(130, 255, 230, 0.5)),
    var(--sea-2, rgba(90, 210, 190, 0.4))
  );
}
.psone-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}
.psone-btn--ghost:hover {
  border-color: rgba(0, 255, 210, 0.6);
}

/* size mods */
.psone-btn--sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.9em;
}
.psone-btn--lg {
  padding: 0.75rem 1.3rem;
  font-size: 1.05em;
}

/* layout helpers */
.btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================
   portfolio search (legacy input, unused now)
   ========================= */
.search-box {
  width: 100%;
  padding: 0.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid #666;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
}

/* =========================
   NEW: portfolio search toolbar
   ========================= */
.search-toolbar {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin: var(--space-3) 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-icon {
  opacity: 0.8;
  font-size: 14px;
}

.search-input {
  flex: 1 1 auto;
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.25);
  color: var(--ink);
  outline: none;
  font-size: 14px;
}
.search-input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.search-clear {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.search-clear:hover {
  background: rgba(255, 255, 255, 0.35);
}

.search-count {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.85;
}

.search-hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.75;
}
.search-hint kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
}
/* hint row can hold a bottom-right CTA */
.search-hint--with-cta {
  position: relative;
  padding-right: 210px; /* room for the CTA on the right */
}

/* tiny CTA that matches the hint size */
.portfolio-toolbar-cta {
  position: absolute;
  right: 0;
  bottom: 0;

  font-size: 12px; /* same scale as .search-hint */
  line-height: 1.2;
  opacity: 0.75;

  text-decoration: none;
  color: var(--ink);

  padding: 1px 5px; /* matches the kbd “chip” size */
  border-radius: 4px; /* matches kbd rounding */
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* small hover — keeps it subtle */
.portfolio-toolbar-cta:hover {
  opacity: 1;
  border-color: rgba(0, 255, 210, 0.55);
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.25);
}

/* mobile: don't absolute-pin it (keeps it from squishing) */
@media (max-width: 680px) {
  .search-hint--with-cta {
    padding-right: 0;
  }
  .portfolio-toolbar-cta {
    position: static;
    display: inline-block;
    margin-left: 8px;
  }
}

/* mobile tweaks for toolbar */
@media (max-width: 768px) {
  .search-toolbar {
    top: 6px;
    padding: 8px 10px;
  }
  .search-input {
    padding: 8px 10px;
    font-size: 13px;
  }
  .search-count {
    display: none; /* keeps it clean on small screens */
  }
}

/* =========================
   condensed portfolio list
   ========================= */
.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portfolio-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}
.portfolio-row a {
  color: var(--ink);
  text-decoration: none;
  font-weight: bold;
}
.portfolio-row a:hover {
  text-decoration: underline;
}
.portfolio-row small {
  color: #000;
  font-size: 12px;
}

/* subtle indent so the blurb sits under the video/audio column */
.video-player .portfolio-desc,
.track-extra .portfolio-desc {
  padding-left: 2px;
}

/* =========================
   inline video player
   ========================= */
.video-player {
  margin-top: 0.6rem;
}
.video-player iframe {
  width: 100%;
  max-width: 480px;
  height: 270px;
  border-radius: 4px;
}

/* =========================
   small tags
   ========================= */
small {
  color: #000;
  font-size: 13px;
}

/* =========================
   featured section grid (desktop)
   ========================= */
.section.featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4);
  align-items: start;
}
.section.featured .st-track {
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
}
.section.featured .st-track:hover {
  background: #ffffff5f;
  text-decoration: none;
}

/* =========================
   custom footer player UI (transparent)
   ========================= */
#site-audio-footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.15);
  color: var(--ink);
  /* allow dropdown to render above the footer */
  overflow: visible; /* was overflow-x: hidden */
}
#site-audio-footer .footer-inner {
  max-width: min(1400px, 100vw);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
  /* don't clip the menu */
  overflow: visible;
}
#site-audio-footer audio {
  display: none;
}

/* left: play/pause */
.af-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: 1;
  transition: transform 0.08s ease;
}
.af-btn:active {
  transform: translateY(1px);
}

.af-seek {
  position: relative;
  flex: 1 1 auto;
  min-width: 260px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.af-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.85);
}
.af-time {
  min-width: 68px;
  text-align: center;
  font-size: 12px;
  opacity: 0.85;
}

/* right: volume + menu */
.af-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}
.af-range {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  outline: none;
}
.af-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.af-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 3-dot menu */
.af-menu {
  position: relative;
  /* ensure its children can overflow */
  overflow: visible;
}
.af-menu-btn {
  padding: 6px 10px;
}
/* ✅ Hide menu by default and pop it above the footer */
.af-menu-panel {
  display: none; /* ← keep hidden until .open */
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px); /* lift above footer with a small gap */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  padding: 6px;
  z-index: 10000; /* sit above other footer controls */
}
.af-menu.open .af-menu-panel {
  display: block;
}
.af-rate {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.af-rate:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* keep content from hiding behind the footer */
body.has-audio-footer .psone-container {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.track-extra {
  margin-top: 6px;
}
.track-extra .portfolio-desc {
  margin: 0;
}
/* =================
   interactions
   ================= */
.st-track {
  cursor: pointer;
}
.st-track:hover {
  text-decoration: underline;
}

/* fix text ghosting on blurred white backgrounds */
.psone-container *,
.psone-menu * {
  text-shadow: none !important;
  -webkit-text-stroke: initial !important;
  filter: initial !important;
}

/* playing track glow */
@keyframes st-glow {
  0% {
    text-shadow: 0 0 0 rgba(246, 255, 0, 0);
  }
  50% {
    text-shadow: 0 0 12px rgba(246, 255, 0, 0.9);
  }
  100% {
    text-shadow: 0 0 0 rgba(246, 255, 0, 0);
  }
}
.psone-container .portfolio-list a.playing,
.st-track.playing {
  color: var(--ink);
  animation: st-glow 1.2s ease-in-out infinite;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(246, 255, 0, 0.9) !important;
}

/* =================
   responsive tweaks
   ================= */
@media (max-width: 900px) {
  .section.featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    font-size: 13px;
    line-height: 1.3;
  }

  .psone-container {
    width: 95%;
    max-width: 100%;
    margin: 0.8rem auto;
    padding: 0.8rem;
  }

  #nav-logo {
    max-height: 36px;
  }
  .psone-menu {
    gap: 4px;
    padding: 0.6rem;
  }
  .psone-menu-links {
    gap: 0.4rem;
  }
  .psone-menu a {
    padding: 0.28rem 0.6rem;
    font-size: 12px;
  }

  h1 {
    font-size: 16px;
    margin-bottom: 0.4rem;
  }
  h2 {
    font-size: 14px;
    margin: 0.6rem 0 0.3rem;
  }

  p,
  li {
    font-size: 13px;
    margin-bottom: 0.6rem;
  }
  .psone-img {
    max-width: 80px;
  }

  .psone-btn,
  button.psone-btn {
    padding: 0.3rem 0.6rem;
    font-size: 11px;
  }

  .video-player iframe,
  .thumb-video,
  video {
    width: 100% !important;
    height: auto !important;
    max-height: 180px;
    display: block;
    box-sizing: border-box;
  }

  .portfolio-row {
    padding: 0.4rem;
    font-size: 12px;
    margin-bottom: 0.4rem;
  }

  .portfolio-item audio {
    width: 100% !important;
    height: 26px !important;
    margin: 0.2rem 0;
    transform: scale(1) !important;
    display: block;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  .psone-btn,
  button.psone-btn {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  body {
    font-size: 12px;
    line-height: 1.3;
  }

  .psone-container {
    padding: 0.6rem;
    margin: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  #nav-logo {
    max-height: 30px;
  }
  h1 {
    font-size: 14px;
  }
  h2 {
    font-size: 13px;
  }

  .psone-btn,
  button.psone-btn {
    font-size: 11px;
    padding: 0.4rem;
  }
  .psone-img {
    max-width: 60px;
  }
  .portfolio-row {
    font-size: 11px;
    padding: 0.3rem;
  }

  .video-player iframe,
  .thumb-video,
  video {
    width: 100% !important;
    max-height: 140px;
    height: auto !important;
    display: block;
  }

  .portfolio-item audio {
    width: 100% !important;
    height: 24px !important;
    margin: 0.2rem 0;
  }

  html,
  body {
    margin: 0;
    padding: 0;
  }
}

/* footer wrap tweaks */
@media (max-width: 760px) {
  #site-audio-footer .footer-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .now-playing {
    order: 3;
    width: 100%;
  }
  .af-time {
    min-width: 70px;
  }
  .af-range {
    width: 90px;
  }
}

/* rainbow flow just for "soundthirst.com" on portfolio page*/
.rainbow-flow {
  background: linear-gradient(
    90deg,
    #ff004c,
    #ff7a00,
    #ffe600,
    #00ff85,
    #00d9ff,
    #7a5cff,
    #ff00d4,
    #ff004c
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 4s linear infinite;
  font-weight: 700; /* optional: makes it pop */
}

@keyframes rainbowFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* ======================================
   Portfolio CTA — rainbow hover (with normal aqua edge glow)
   ====================================== */

.portfolio-cta-btn {
  position: relative;
  overflow: hidden;
}

/* rainbow layer sits INSIDE the border so the aqua edge stays visible */
.portfolio-cta-btn::before {
  content: "";
  position: absolute;
  inset: 2px; /* key: leaves a border edge visible */
  border-radius: 8px; /* matches your 10px button radius minus inset */
  background: linear-gradient(
    90deg,
    #ff004c,
    #ff7a00,
    #ffe600,
    #00ff85,
    #00d9ff,
    #7a5cff,
    #ff00d4,
    #ff004c
  );
  background-size: 300% 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
  pointer-events: none;
}
