/* ===========================================================================
   Pillow Client — vouches panel                                  built 2026-10-16
   ---------------------------------------------------------------------------
   The shell of the section under the globe: copy on the left, a Discord panel
   on the right. Everything here is presentation — the panel's contents are
   added by /scripts/vouches.js and only ever come from a real source (a guild
   widget or a JSON feed), so this file has no state of its own beyond the
   empty one it ships with.

     · the Discord mark is part of the site's ink, not Discord's blurple: the
       only extra hue the panel introduces is the green status dot, which is a
       status, not decoration
     · the list scrolls inside the panel so the section keeps one height no
       matter how many vouches the feed holds
     · the live dot pulses once every 2.6s and stops under reduced motion
   =========================================================================== */

.lp-vouch {
  padding: clamp(72px, 11vh, 140px) 0;
  background: linear-gradient(180deg, #000 0%, #06040b 55%, #000 100%);
}

.lp-vouch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4.5vw, 60px);
  align-items: center;
}

.lp-vouch__note { margin-top: 14px; color: rgba(205, 198, 220, 0.72); }

.lp-vouch__chip {
  display: inline-block;
  margin: 22px 0 0;
  padding: 5px 11px;
  border: 1px dashed rgba(168, 85, 247, 0.45);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(206, 178, 255, 0.82);
}

.lp-vouch__chip.is-live {
  border-style: solid;
  border-color: rgba(88, 199, 133, 0.5);
  color: #a9e8c5;
}

/* --- the panel ------------------------------------------------------------- */
.lp-vouch__panel {
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 38vh, 420px);
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(168, 85, 247, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
}

.lp-vouch__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.lp-vouch__logo {
  flex: none;
  width: 22px;
  height: 22px;
  fill: rgba(226, 214, 255, 0.9);
}

.lp-vouch__server {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
}

.lp-vouch__presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* display: inline-flex above beats the UA's [hidden] rule, so say it again here:
   without this the "— online" row shows before there is a count to show. */
.lp-vouch__presence[hidden] { display: none; }

.lp-vouch__presence b { font-weight: 500; color: #a9e8c5; }

.lp-vouch__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58c785;
  box-shadow: 0 0 0 0 rgba(88, 199, 133, 0.5);
  animation: vouch-pulse 2.6s ease-out infinite;
}

@keyframes vouch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 199, 133, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(88, 199, 133, 0); }
}

/* --- the list -------------------------------------------------------------- */
.lp-vouch__list {
  flex: 1;
  min-height: 0;
  max-height: clamp(260px, 44vh, 420px);
  margin: 0;
  padding: 4px 4px 0 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.lp-vouch__list:empty { display: none; }

.lp-vouch__list::-webkit-scrollbar { width: 8px; }
.lp-vouch__list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.4);
  background-clip: content-box;
}

.vouch {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 2px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.vouch:last-child { border-bottom: 0; }

.vouch__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.16);
  object-fit: cover;
}

.vouch__avatar--letter {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #dcc7ff;
}

.vouch__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.vouch__author { font-size: 13.5px; font-weight: 500; color: #fff; }

.vouch__role,
.vouch__date {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.vouch__date { margin-left: auto; }

.vouch__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #cdc6dc;
  white-space: pre-line;
}

.vouch__link {
  display: inline-block;
  margin-top: 7px;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(206, 178, 255, 0.85);
}

.vouch__link:hover { color: #e4d5ff; }

.vouch__status {
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-radius: 50%;
  background: #58c785;
}

.vouch__status[data-status="idle"] { background: #f0b232; }
.vouch__status[data-status="dnd"] { background: #f23f43; }
.vouch__status[data-status="offline"] { background: #80848e; }

/* --- the empty state ------------------------------------------------------- */
.lp-vouch__empty {
  flex: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
  margin: 16px 0 0;
  padding: 26px 22px;
  border: 1px dashed rgba(168, 85, 247, 0.3);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  color: rgba(205, 198, 220, 0.75);
}

.lp-vouch__empty[hidden] { display: none; }

/* --- the foot -------------------------------------------------------------- */
.lp-vouch__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.lp-vouch__channel {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.46);
}

.lp-vouch__cta {
  margin-left: auto;
  padding: 9px 16px;
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.16);
  font-size: 12px;
  font-weight: 500;
  color: #e9dcff;
  transition: background 200ms var(--ease, ease), border-color 200ms var(--ease, ease);
}

a.lp-vouch__cta:hover {
  border-color: rgba(196, 132, 252, 0.7);
  background: rgba(168, 85, 247, 0.28);
}

/* No invite configured: inert, and it looks inert. Never a link into a 404. */
.lp-vouch__cta.is-inert {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
}

@media (max-width: 1023px) {
  .lp-vouch__inner { grid-template-columns: minmax(0, 1fr); }
  .lp-vouch__panel { min-height: 0; }
  .lp-vouch__list { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-vouch__dot { animation: none; }
}
