/* Friends, hype badges and the picture calendar (2026-10-12). Loaded only by the pages that use them. */

/* ---------- Profile: the Friends entry matches the Teams entry ---------- */
.profile-section--friends {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border-color: #2dccc9;
  box-shadow: 0.18rem 0.22rem 0 #2dccc9;
}
.profile-section--friends .profile-teams-link { background: #167b80; border-color: #0d5b5f; font-size: 15px; min-height: 44px; }
.profile-section--teams .profile-teams-link { font-size: 15px; min-height: 44px; }

/* ---------- Hype badges ---------- */
.hype-badges {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  padding: 0;
  list-style: none;
}
.hype-badge {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: #241c22;
  background: #fff4d4;
  border: 2px solid #e0245e;
  border-radius: 12px;
}
.hype-badge strong { font-size: 17px; line-height: 1.2; }
.hype-badge strong span { color: #e0245e; }
.hype-badge > span { color: #5d4f57; font-size: 15px; }
.hyperactivity .profile-section__heading p { margin-top: 4px; color: #5d4f57; font-size: 15px; }
.hyperactivity__unlisted { margin-top: 10px !important; color: #5d4f57; font-size: 15px; }

/* ---------- Friends pages ---------- */
.friends-page .profile-section { margin-top: 12px; }
.friends-section h2 { font-size: 20px; margin: 0 0 6px; }
.friends-section p { font-size: 16px; line-height: 1.45; margin: 0 0 10px !important; }
.friends-section .primary-button { font-size: 17px; text-decoration: none; }
.friends-note { color: #5d4f57; font-size: 15px !important; }
.friends-message {
  margin: 4px 0 0;
  padding: 10px 12px;
  color: #10403f;
  background: #dff7f6;
  border: 1px solid #2dccc9;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}
.friends-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.friends-inline-form label { display: grid; gap: 4px; min-width: 0; font-size: 15px; font-weight: 700; }
.friends-inline-form input,
.friends-field input,
.friends-link input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font: inherit;
  font-size: 16px;
  color: #241c22;
  background: #fff;
  border: 1px solid #bfae9d;
  border-radius: 8px;
}
.friends-inline-form button,
.friends-secondary,
.friend-card button,
.friends-invites button,
.friends-blocked button {
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #241c22;
  cursor: pointer;
  background: #fff;
  border: 2px solid #241c22;
  border-radius: 8px;
}
.friends-inline-form button:disabled,
.friends-inline-form input:disabled { opacity: 0.5; cursor: not-allowed; }
.friends-field { display: grid; gap: 4px; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.friends-link { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.friends-link-actions { display: grid; gap: 8px; margin: 10px 0; }
.friends-link-actions .primary-button { margin-top: 0; }
.friends-share-state strong { font-size: 17px; }
.friends-empty { color: #5d4f57; }
.friends-invites { margin-top: 12px; font-size: 16px; }
.friends-invites summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.friends-invites ul,
.friends-blocked,
.friend-list,
.friend-plans { margin: 0; padding: 0; list-style: none; }
.friends-invites li,
.friends-blocked li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid #e8dfcf; font-size: 16px; }
.friend-card { padding: 12px 0; border-top: 1px solid #e8dfcf; }
.friend-card:first-child { border-top: 0; padding-top: 4px; }
.friend-card__head { display: grid; gap: 2px; }
.friend-card__name { font-size: 19px; }
.friend-card__since,
.friend-card__quiet { color: #5d4f57; font-size: 15px; }
.friend-card__quiet { margin: 6px 0 0 !important; }
.friend-card__label { margin: 8px 0 2px !important; font-size: 14px !important; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: #a51f52; }
.friend-plans a { display: grid; gap: 1px; min-height: 44px; padding: 6px 0; color: inherit; text-decoration: none; border-top: 1px solid #f0e7d8; }
.friend-plans li:first-child a { border-top: 0; }
.friend-plans__date { color: #167b80; font-size: 14px; font-weight: 800; }
.friend-plans strong { font-size: 16px; }
.friend-plans a > span:last-child { color: #5d4f57; font-size: 15px; }
.friend-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.friend-card__block { border-color: #a51f52 !important; color: #a51f52 !important; }

@media (max-width: 420px) {
  .friends-inline-form { grid-template-columns: 1fr; }
}

/* ---------- Picture calendar ---------- */
.plans-day--coin { background-image: none; }
.plans-day__coin {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 66%;
  max-width: 3rem;
  aspect-ratio: 1;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
.plans-day--coin .plans-day__number {
  position: absolute;
  top: 0.08rem;
  left: 0.12rem;
  padding: 0 0.12rem;
  color: #241c22;
  background: rgb(255 255 255 / 85%);
  border-radius: 0.2rem;
  font-size: 0.78rem;
  z-index: 2;
}
.plans-trophy { display: inline-flex; align-items: center; gap: 1px; }
.plans-trophy svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.plans-trophy--1 { color: #8a6100; }
.plans-trophy--2 { color: #5b6470; }
.plans-trophy--3 { color: #8a4b1c; }
.plans-day__place.plans-trophy {
  padding: 0.04rem 0.12rem;
  background: #fff8df;
  border: 1px solid currentColor;
  font-size: 0.74rem;
  line-height: 1.1;
}
.plans-day__place.plans-trophy--1 { background: #ffe58a; }
.plans-day__place.plans-trophy--2 { background: #e7eaee; }
.plans-day__place.plans-trophy--3 { background: #f6d2b5; }
.plans-trophy__place { color: #241c22; }
.plans-summary { margin: 0 0 6px !important; text-align: center; font-size: 16px; font-weight: 800; color: #3e333b; }
.plans-shelf { margin: 10px 0 0; padding: 10px 12px; background: #fff4d4; border: 1px solid #e8c45a; border-radius: 10px; }
.plans-shelf__title { margin: 0 0 6px !important; font-size: 17px !important; }
.plans-shelf__row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.plans-shelf__item { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.plans-shelf__trophy { font-size: 26px; }
.plans-shelf__trophy .plans-trophy__place { display: none; }
.plans-trophy-note { margin-top: 10px !important; color: #5d4f57; font-size: 15px; }

/* Trophy sits bottom-right so the date number (top-left) stays readable. */
.plans-day .plans-day__place.plans-trophy { top: auto; bottom: 0.08rem; right: 0.08rem; }
.plans-day--coin .plans-day__more { right: auto; left: 0.08rem; }
.plans-day .plans-day__coin { top: 46%; }

.friends-link-button { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; text-align: center; }
