/* ============================================================
   INDEX PAGE — thankgodimskinnyaf
   ============================================================ */

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 44px 0 32px;
  position: relative;
}

.glitch {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3.6vw, 38px);
  font-weight: bold;
  letter-spacing: 3px;
  color: var(--text);
  position: relative;
  display: inline-block;
  text-transform: lowercase;
  user-select: none;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
}

.glitch::before {
  color: var(--red);
  animation: glitch-r 5s infinite;
}

.glitch::after {
  color: #00c8ff;
  animation: glitch-b 5s infinite;
}

/* Occasional burst class added by JS */
.glitch-burst::before { opacity: 1; transform: translateX(-3px); }
.glitch-burst::after  { opacity: 1; transform: translateX(3px); }

@keyframes glitch-r {
  0%,88%,100% { opacity: 0; transform: none; clip-path: none; }
  89% { opacity: 1; transform: translateX(-3px); clip-path: inset(15% 0 55% 0); }
  91% { opacity: 1; transform: translateX(2px);  clip-path: inset(55% 0 10% 0); }
  93% { opacity: 1; transform: translateX(-2px); clip-path: inset(30% 0 40% 0); }
  95% { opacity: 0; }
}

@keyframes glitch-b {
  0%,84%,100% { opacity: 0; transform: none; clip-path: none; }
  85% { opacity: 1; transform: translateX(3px);  clip-path: inset(40% 0 25% 0); }
  87% { opacity: 1; transform: translateX(-2px); clip-path: inset(10% 0 60% 0); }
  89% { opacity: 1; transform: translateX(2px);  clip-path: inset(65% 0 5% 0); }
  91% { opacity: 0; }
}

.hero-sub {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--dim);
  text-transform: lowercase;
}

/* ---- Profile layout ---- */
.profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 8px;
}

@media (max-width: 620px) {
  .profile { grid-template-columns: 1fr; }
}

/* ---- Photo ---- */
.photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-box {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-md);
  background: #060606;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown when no photo */
.photo-placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--border-md);
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
  pointer-events: none;
}

.photo-placeholder-label::before {
  content: '[ photo ]';
  display: block;
}

/* ---- Now Playing / Top Tracks Player ---- */
.now-playing {
  border: 1px solid var(--border-md);
  background: #040404;
  overflow: hidden;
}

.np-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  user-select: none;
}

.np-icon  { color: var(--red); flex-shrink: 0; }
.np-label { color: var(--dim); text-transform: uppercase; }

.np-tracklist { padding: 0; }

.np-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  user-select: none;
}

.np-row:hover { background: #0a0a0a; }

.np-row.active {
  background: #0a0000;
  border-left: 2px solid var(--red);
}

.np-row-icon {
  color: var(--dim);
  font-size: 8px;
  flex-shrink: 0;
  width: 10px;
}

.np-row.active .np-row-icon { color: var(--red); }

.np-row-title {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--dim);
}

.np-row.active .np-row-title { color: var(--text); }

.np-embed-wrap {
  border-top: 1px solid var(--border);
}

.np-embed-wrap iframe {
  width: 100%;
  height: 80px;
  border: none;
  display: block;
}

/* ---- Details box ---- */
.details-box {
  border: 1px solid var(--border-md);
  overflow: hidden;
}

.details-header {
  background: var(--red);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 5px 12px;
  text-transform: lowercase;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table tr { border-bottom: 1px solid var(--border); }
.details-table tr:last-child { border-bottom: none; }
.details-table tr:nth-child(even) { background: #050505; }

.details-table td {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: middle;
}

.details-table .dt-label {
  color: var(--red);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1px;
  width: 1%;
  padding-right: 6px;
}

.details-table .dt-value { color: var(--text); }

/* Highlight the BODY TYPE row */
.details-table .highlight .dt-label,
.details-table .highlight .dt-value {
  color: var(--text);
  font-weight: bold;
}
.details-table .highlight { background: #0a0000; }

/* ---- Atmospheric text ---- */
.atmo {
  text-align: center;
  padding: 14px 0 20px;
  min-height: 70px;
}

#typing-target {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 1px;
  line-height: 2.2;
  white-space: pre-wrap;
  display: inline-block;
  text-align: left;
}

/* ---- GIF row ---- */
.gif-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 8px 0 16px;
}

/* Placeholder box shown until real GIFs are added */
.gif-slot {
  width: 80px;
  height: 80px;
  border: 1px dashed var(--border-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--border-md);
  font-size: 9px;
  letter-spacing: 1px;
  text-align: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* When an actual <img> is inside .gif-slot, hide the placeholder text */
.gif-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-slot-label { pointer-events: none; }
