/* shared bits used on multiple pages. widgets, page headers, status boxes, utility stuff */

/* who am i widget - home page only */
.who-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-inset);
  border: 1px solid var(--border-bright);
  padding: 10px;
  margin-bottom: 14px;
}

.who-img-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
}

.who-img-wrap img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid var(--border-bright);
  display: block;
}

.who-img-placeholder {
  width: 54px;
  height: 54px;
  background-color: var(--bg-panel-dark);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--text-dim);
}

.who-bio {
  font-size: 12px;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.page-header {
  border-bottom: 1px solid var(--border-bright);
  margin-bottom: 18px;
  padding-bottom: 10px;
}

.page-header h1 {
  font-family: 'VT323', monospace;
  font-size: 34px;
  color: var(--heading);
  letter-spacing: 3px;
  text-shadow: 0 0 14px var(--heading-glow);
  line-height: 1;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* the little bordered info box in the sidebar */
.status-box {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-bright);
  border-left: 2px solid var(--accent);
  padding: 7px 9px;
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 12px;
}

.status-box .status-label {
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.status-box .status-val {
  color: var(--accent-pale);
  font-family: 'VT323', monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

/* home page preview widgets - one per section */
.widget {
  background-color: var(--bg-inset);
  border: 1px solid var(--border-bright);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget h2 {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--accent-pale);
  letter-spacing: 2px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
}

.widget-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-entry .entry-title {
  font-size: 14px;
  color: var(--text-bright);
}

.widget-entry .entry-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.widget-entry .entry-preview {
  font-size: 11px;
  color: var(--text);
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.entry-link {
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--link);
  margin-top: 5px;
  align-self: flex-start;
}

.entry-link:hover {
  color: var(--link-hover);
  text-decoration: none;
}

/* lastfm now playing widget */

.np-track {
  font-size: 11px;
}

.np-status {
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.np-status.now {
  color: var(--accent-pale);
  animation: blink 2.5s step-end infinite;
}

.np-status.last {
  color: var(--text-dim);
}

.np-body {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.np-art {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--border-bright);
  image-rendering: pixelated;
  background: var(--bg-inset);
}

.np-art-placeholder {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--bg-inset);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
}

.np-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.np-song {
  color: var(--text-bright);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  color: var(--text-dim);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* lost signal fallback */
.np-lost {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.np-lost::before {
  content: "░▒▓▒░";
  color: var(--border-bright);
  letter-spacing: -1px;
  animation: blink 0.9s step-end infinite;
}

/* utility bits */
.empty {
  color: var(--text-dim);
  font-size: 12px;
}

.loading {
  color: var(--text-dim);
  font-size: 12px;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.ascii-divider {
  display: block;
  margin: 14px 0;
  text-align: center;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--border-bright);
  letter-spacing: 1px;
}

/* the little static-noise line above the signal status box */
.signal-noise {
  display: block;
  font-size: 10px;
  color: var(--border-bright);
  letter-spacing: -1px;
}
