/* ===== Global base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Scrollbar halus */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* ===== Card outline (border glow) ===== */

.card-outline {
  position: relative;
}

.card-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.7),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(236, 72, 153, 0.6),
      transparent 55%
    );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Link button style ===== */

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.95)
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 120ms ease-out,
    box-shadow 120ms ease-out,
    border-color 150ms ease-out,
    background 150ms ease-out;
}

.link-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow:
    0 10px 35px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 18px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.link-btn span {
  pointer-events: none;
}

/* ===== Chips (interest tags) ===== */

.chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.95);
}

/* ===== Equalizer kecil di kartu Spotify ===== */

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.equalizer span {
  width: 3px;
  border-radius: 999px;
  background: rgb(52 211 153);
  animation: equalize 1s ease-in-out infinite;
}

.equalizer span:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.equalizer span:nth-child(2) {
  height: 10px;
  animation-delay: 0.12s;
}

.equalizer span:nth-child(3) {
  height: 8px;
  animation-delay: 0.24s;
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.4);
    opacity: 1;
  }
}

/* ===== SR-Only (buat icon centang) ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
