/* ThaïGuide — kudos.css */

/* ── Bouton 🎉 sur chaque ligne du leaderboard ────────────────────────────── */
.tg-kudos-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  width: 30px; height: 30px;
  font-size: .95rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  overflow: visible;
  line-height: 1;
  padding: 0;
}
.tg-kudos-btn:active { transform: scale(.9); }
.tg-kudos-btn:hover { background: rgba(255,200,0,.18); }
.tg-kudos-btn img.emoji {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* ── Panneau d'envoi sous la ligne ─────────────────────────────────────────── */
.tg-kudos-panel {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 12px;
  margin: 4px 0 8px;
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
}
.tg-kudos-panel-open { max-height: 480px; opacity: 1; padding: 14px; }

.tg-kudos-title { font-size: .85rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.tg-kudos-hint  { font-size: .7rem; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.tg-kudos-sugs  { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.tg-kudos-sug {
  text-align: left; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-radius: 9px; color: #fbbf24; font-size: .78rem; font-weight: 600;
  padding: 8px 11px; cursor: pointer; transition: background .15s;
}
.tg-kudos-sug:hover { background: rgba(245,158,11,.2); }
.tg-kudos-sug-on { background: rgba(245,158,11,.28); border-color: rgba(245,158,11,.6); }
.tg-kudos-text {
  width: 100%; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px; color: #fff; font-size: .82rem; font-family: inherit;
  padding: 9px 12px; resize: none; box-sizing: border-box; margin-bottom: 6px;
}
.tg-kudos-text:focus { outline: none; border-color: rgba(245,158,11,.5); }
.tg-kudos-text::placeholder { color: rgba(255,255,255,.3); }
.tg-kudos-row2 { display: flex; align-items: center; justify-content: space-between; }
.tg-kudos-count { font-size: .65rem; color: rgba(255,255,255,.3); }
.tg-kudos-send {
  background: linear-gradient(135deg,#f59e0b,#d97706); border: none; border-radius: 10px;
  color: #fff; font-size: .82rem; font-weight: 800; padding: 9px 18px; cursor: pointer;
}

/* ── Toast de confirmation ─────────────────────────────────────────────────── */
.tg-kudos-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; border-radius: 11px;
  padding: 11px 22px; font-size: .85rem; font-weight: 700; z-index: 999;
  max-width: 85vw; text-align: center; opacity: 0; transition: opacity .25s, transform .25s;
}
.tg-kudos-toast-in { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Badge numérique sur le bouton Amis de la nav ─────────────────────────── */
.tg-kudos-nav-badge {
  position: absolute; top: 2px; right: 14px;
  background: #f59e0b; color: #fff;
  font-size: .58rem; font-weight: 800;
  border-radius: 999px; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid #0a1628;
  pointer-events: none;
}

/* ── Accordéon "Mes félicitations" dans l'onglet Amis ─────────────────────── */
#tg-kudos-inbox {
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.08);
  overflow: hidden;
}
.tg-kudos-inbox-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none;
  padding: 13px 16px; cursor: pointer; text-align: left;
}
.tg-kudos-inbox-toggle span:first-child { font-size: 1.3rem; flex-shrink: 0; }
.tg-kudos-inbox-lbl {
  flex: 1; font-size: .88rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 7px;
}
.tg-kudos-inbox-count {
  background: #f59e0b; color: #fff; font-size: .68rem; font-weight: 800;
  border-radius: 999px; padding: 2px 7px; line-height: 1.3;
}
.tg-kudos-inbox-arr { font-size: .75rem; color: rgba(255,255,255,.45); flex-shrink: 0; }

.tg-kudos-inbox-body {
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tg-kudos-inbox-body-open { display: block; }
.tg-kudos-inbox-list {
  max-height: 280px; overflow-y: auto;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.tg-kudos-item {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px; padding: 10px 12px;
}
.tg-kudos-item-icon { font-size: 1.2rem; flex-shrink: 0; }
.tg-kudos-item-body { flex: 1; min-width: 0; }
.tg-kudos-item-from { font-size: .8rem; font-weight: 800; color: #fbbf24; margin-bottom: 2px; }
.tg-kudos-item-msg  { font-size: .8rem; color: rgba(255,255,255,.85); line-height: 1.4; margin-bottom: 4px; }
.tg-kudos-item-time { font-size: .65rem; color: rgba(255,255,255,.35); }
.tg-kudos-empty {
  text-align: center; padding: 16px; color: rgba(255,255,255,.35); font-size: .8rem;
}
