/**
 * refs.css — Affiliate chip, strip, and disclosure styling.
 *
 * Designed to blend with the Mashpit Win98 retro aesthetic.
 * Chips appear in footer strips inside each window panel.
 */

/* ── Strip container ──────────────────────────────────────────── */
.refs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 4px;
  align-items: center;
}

/* ── Chip (clickable badge) ───────────────────────────────────── */
.refs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: #C0C0C0;
  border-top: 1px solid #FFFFFF;
  border-left: 1px solid #FFFFFF;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
  box-shadow: inset 1px 1px #DFDFDF, inset -1px -1px #808080;
  border-radius: 0;
  color: #0000FF;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.refs-chip:hover {
  text-decoration: none;
}

.refs-chip:active {
  box-shadow: inset -1px -1px #DFDFDF, inset 1px 1px #808080;
  border-color: #000000;
}

/* Chip label (service name) */
.refs-chip-label {
  font-weight: normal;
  color: #0000FF;
  text-decoration: underline;
}

.refs-chip:hover .refs-chip-label {
  color: #000080;
}

/* Chip tagline (bonus description) */
.refs-chip-tagline {
  color: #444444;
  font-size: 10px;
}

.refs-chip:hover .refs-chip-tagline {
  color: #000000;
}

/* ── Chip separator (optional "·" between label and tagline) ── */
.refs-chip-label + .refs-chip-tagline::before {
  content: '·';
  margin-right: 4px;
  color: #4a4a6a;
}

/* ── Editorial inline link ────────────────────────────────────── */
.refs-editorial {
  color: #8888cc;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.refs-editorial:hover {
  color: #aaaaee;
  text-decoration-style: solid;
}

/* ── Disclosure text ──────────────────────────────────────────── */
.refs-disclosure {
  margin-top: 6px;
  padding: 4px 0;
  color: #555570;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid #1a1a2e;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .refs-chip {
    font-size: 12px;
    padding: 2px 6px;
  }

  .refs-chip-tagline {
    display: none;  /* Hide taglines on very small screens */
  }

  .refs-strip {
    gap: 4px;
  }
}

/* ── Favorites.exe window layout ────────────────────────────── */
.window-favorites {
  width: 480px;
  height: 450px;
}

.favorites-body {
  flex: 1;
  background: #ffffff;
  border: 2px inset #808080;
  margin: 4px;
  padding: 8px;
  overflow-y: auto;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000000;
}

.favorites-scroll-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.favorites-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.favorites-section-header {
  font-weight: bold;
  font-size: 11px;
  font-family: Tahoma, Arial, sans-serif;
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 2px;
  margin-bottom: 4px;
  color: #000000;
}

.favorites-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fav-chip-col {
  flex-shrink: 0;
}

.fav-chip-col .refs-strip {
  padding: 0;
  gap: 0;
}

.fav-desc-col {
  color: #333333;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
}

.favorites-footer {
  padding: 4px 6px;
  background: #d4d0c8;
  border-top: 1px solid #808080;
  flex-shrink: 0;
}

.favorites-footer .refs-disclosure {
  border-top: none;
  margin-top: 0;
  padding: 0;
}

.disclosure-thanks {
  margin-top: 2px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 11px;
  color: #555570;
}

