/* ────────────────────────────────────────
   itsvictoria's world — hot pink Y2K personal site
   ──────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-stripe: #ffe3ee;
  --panel: #ffffff;
  --panel-soft: #fff0f6;
  --accent: #ff2d7e;
  --accent-dark: #c2185b;
  --accent-deep: #7a1237;
  --text: #6e1638;
  --text-soft: #b23566;
  --border: #ff9bc4;
  --border-strong: #ff2d7e;
  --highlight: #ffd6e8;

  --font-display: 'Bubblegum Sans', cursive;
  --font-body: 'Quicksand', sans-serif;
  --font-pixel: 'VT323', monospace;
}

* { box-sizing: border-box; }

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

body {
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    45deg,
    var(--bg) 0px,
    var(--bg) 20px,
    var(--bg-stripe) 20px,
    var(--bg-stripe) 22px
  );
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline wavy var(--accent); }

.page {
  max-width: 1000px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

/* ── sparkle cursor trail ── */
.sparkle-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.sparkle {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--accent);
  animation: sparkle-fade 0.75s ease-out forwards;
}
@keyframes sparkle-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(0.4) rotate(45deg); }
}

/* ── decorative now-playing widget ── */
.player-widget {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 220px;
  background: var(--accent-deep);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  z-index: 500;
  box-shadow: 0 4px 0 var(--accent-dark);
}
.player-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-avatar img { width: 70%; height: 70%; object-fit: contain; }
.player-body { flex: 1; min-width: 0; }
.player-track {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  color: #ffd6e8;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eq-bars {
  --vol: 0.7;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-bottom: 4px;
}
.eq-bars span {
  width: 4px;
  background: var(--accent);
  height: 20%;
  border-radius: 1px;
  transition: height 0.15s ease;
}
.eq-bars.playing span { animation: eq-bounce 0.9s ease-in-out infinite; }
.eq-bars.playing span:nth-child(1) { animation-delay: 0s; }
.eq-bars.playing span:nth-child(2) { animation-delay: 0.1s; }
.eq-bars.playing span:nth-child(3) { animation-delay: 0.2s; }
.eq-bars.playing span:nth-child(4) { animation-delay: 0.3s; }
.eq-bars.playing span:nth-child(5) { animation-delay: 0.15s; }
@keyframes eq-bounce {
  0%, 100% { height: calc(20% + 10% * var(--vol)); }
  50% { height: calc(90% * var(--vol) + 10%); }
}
.player-meta {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: #ff9bc4;
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.player-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.player-controls button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 22px;
  font-size: 0.75rem;
  cursor: pointer;
}
.player-controls button:hover { background: var(--accent-dark); }
.player-controls button:focus-visible,
.contact-btn:focus-visible,
.mini-btn:focus-visible,
.btn:focus-visible,
.navbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.vol-label { font-family: var(--font-pixel); font-size: 0.8rem; color: #ff9bc4; display: flex; align-items: center; gap: 4px; }
.vol-label input { width: 60px; }
.player-note { font-size: 0.65rem; color: #ff9bc4; margin: 4px 0 0; }

@media (max-width: 900px) {
  .player-widget { position: static; width: auto; margin-bottom: 14px; }
}

/* ── banner ── */
.banner {
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 3px solid var(--accent-dark);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 var(--accent-dark);
}
.banner-inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px; text-align: center; }
.banner-cat { width: 52px; height: 52px; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(0,0,0,0.15)); }
.banner-cat-flip { transform: scaleX(-1); }
.site-title { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.6rem); color: #fff; margin: 0 0 4px; text-shadow: 2px 2px 0 var(--accent-deep); }
.tagline { font-family: var(--font-pixel); font-size: 1.1rem; color: #ffe1ee; margin: 0; }

/* ── nav ── */
.navbar {
  background: var(--accent);
  border: 3px solid var(--accent-dark);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.navbar a { color: #fff; padding: 4px 6px; }
.navbar a:hover { color: #ffd6e8; text-decoration: underline; }
.navbar .sep { color: #ffb8d9; margin: 0 4px; }

/* ── ticker ── */
.ticker {
  background: var(--accent-deep);
  color: #ffe1ee;
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  padding: 6px 0;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 2px dashed var(--accent);
}

/* ── layout ── */
.content { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
@media (max-width: 720px) { .content { grid-template-columns: 1fr; } }

.box {
  background: var(--panel);
  border: 3px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 3px 0 var(--border);
}
.box > h3, .box > h2 {
  margin: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.box > h3 .view-link { color: #ffe1ee; font-size: 0.8rem; font-family: var(--font-body); font-weight: 700; }

.box-body { padding: 16px; }
.box-body.no-pad { padding: 0; }

.edit-me { color: var(--text-soft); font-style: italic; }

/* ── profile card ── */
.profile-card { text-align: center; }
.profile-card .box-body { padding-top: 16px; }
.pfp-frame {
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
  border: 4px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  background: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pfp-frame img { width: 70%; height: 70%; object-fit: contain; }
.username { font-family: var(--font-display); color: var(--accent-dark); margin: 0 0 6px; font-size: 1.4rem; }
.status { font-size: 0.9rem; color: var(--text-soft); font-style: italic; margin: 0 0 12px; }
.facts { list-style: none; padding: 10px 0 0; margin: 0; text-align: left; border-top: 2px dotted var(--border); }
.facts li { display: flex; justify-content: space-between; font-family: var(--font-pixel); font-size: 1.05rem; padding: 2px 0; }
.facts .label { color: var(--text-soft); text-transform: uppercase; letter-spacing: 1px; }
.facts .value { color: var(--accent-dark); font-weight: 700; }

/* ── contacting box ── */
.contacting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-soft);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  text-align: left;
}
.contact-btn:hover { background: var(--highlight); text-decoration: none; }
.contact-btn .icon { font-size: 1rem; }
.hint.small { font-size: 0.78rem; color: var(--text-soft); margin: 8px 0 0; min-height: 1.2em; }

/* ── url box ── */
.url-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.url-row code {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: var(--accent-dark);
  background: var(--panel-soft);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px dashed var(--border);
  overflow-wrap: anywhere;
}
.mini-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.mini-btn:hover { background: var(--accent-dark); }

/* ── interest table ── */
.interest-table { width: 100%; border-collapse: collapse; }
.interest-table th, .interest-table td { text-align: left; padding: 8px 10px; border-bottom: 2px dotted var(--border); font-size: 0.9rem; }
.interest-table th { font-family: var(--font-display); font-weight: normal; color: #fff; background: var(--accent); width: 90px; }
.interest-table td { color: var(--text); background: var(--panel-soft); }
.interest-table tr:last-child th, .interest-table tr:last-child td { border-bottom: none; }

/* ── blog box ── */
.empty-state { color: var(--text-soft); margin: 0; }

/* ── blurbs box ── */
.blurb-label { font-family: var(--font-display); color: var(--accent-dark); margin: 14px 0 2px; }
.blurb-label:first-child { margin-top: 0; }
.blurb-text { margin: 0 0 6px; }

/* ── guestbook box ── */
.guestbook-box .box-body > p:first-child { margin-top: 0; }
.comments-line { font-size: 0.85rem; color: var(--text-soft); margin: 10px 0 0; }

.btn {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  border: 2px solid var(--accent-dark);
  box-shadow: 0 3px 0 var(--accent-dark);
}
.btn:hover { background: var(--accent-dark); text-decoration: none; transform: translateY(1px); box-shadow: 0 2px 0 var(--accent-dark); }

/* ── footer ── */
.footer { text-align: center; margin-top: 10px; font-size: 0.85rem; color: var(--text-soft); }
.footer .blink { animation: blink 1.4s steps(1) infinite; font-family: var(--font-pixel); font-size: 1rem; color: var(--accent-dark); }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sparkle, .footer .blink, .eq-bars.playing span { animation: none !important; }
}
