/* PATH: /public/css/inbox.css */

/* Chat List (Quizio-like) */
.vx-inbox{
  min-height: calc(100vh - 84px - 86px);
}
body:not(.vx-show-topbar) .vx-inbox{
  min-height: calc(100vh - 86px);
}

.vx-inbox-header{
  position: relative;
  margin: 0 -12px;
  padding: 16px 16px 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--vx-brand, #6D17D6), var(--vx-brand-2, #8A05BE));
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  overflow: hidden;
}

.vx-inbox-header::after{
  content:"";
  position:absolute;
  left:-20%;
  right:-20%;
  bottom:-46px;
  height: 120px;
  background: radial-gradient(closest-side at 50% 0%, rgba(255,255,255,.28), rgba(255,255,255,0));
  transform: rotate(0.0001deg);
  pointer-events:none;
  opacity: .75;
}

.vx-inbox-headerTop{
  position: relative;
  z-index: 1;
  display:flex;
  align-items:center;
  gap:12px;
}

.vx-inbox-iconBtn{
  border:0;
  width:40px;
  height:40px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.16);
  color:#fff;
  font-size:18px;
  transition: transform .12s ease, background .12s ease;
}
.vx-inbox-iconBtn:hover{ background: rgba(255,255,255,.22); }
.vx-inbox-iconBtn:active{ transform: scale(.98); }

.vx-inbox-titleWrap{ flex:1; min-width:0; }
.vx-inbox-title{
  font-weight: 950;
  letter-spacing: -0.6px;
  font-size: 20px;
  line-height: 1.1;
}
.vx-inbox-subtitle{
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

.vx-inbox-searchRow{
  position: relative;
  z-index: 1;
  display:flex;
  gap:12px;
  margin-top: 14px;
  align-items:center;
}

.vx-inbox-search{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.vx-inbox-search i{ opacity:.95; }
.vx-inbox-search input{
  flex:1;
  border:0;
  outline:0;
  background: transparent;
  color:#fff;
  font-weight: 700;
}
.vx-inbox-search input::placeholder{ color: rgba(255,255,255,.78); font-weight: 600; }

.vx-inbox-filterBtn{
  width:46px;
  height:46px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.18);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  transition: transform .12s ease, background .12s ease;
}
.vx-inbox-filterBtn:hover{ background: rgba(255,255,255,.22); }
.vx-inbox-filterBtn:active{ transform: scale(.98); }

.vx-inbox-suggestBox{
  position: relative;
  z-index: 3;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  max-height: 260px;
  overflow: auto;
}

.vx-inbox-suggestItem{
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.vx-inbox-suggestItem + .vx-inbox-suggestItem{
  border-top: 1px solid rgba(255,255,255,.18);
}
.vx-inbox-suggestItem:active{
  background: rgba(255,255,255,.10);
}
.vx-inbox-suggestItem i{
  margin-left: auto;
  opacity: .85;
}

.vx-inbox-suggestMeta{
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.vx-inbox-suggestNick{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vx-inbox-suggestSub{
  font-size: 12px;
  opacity: .9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-inbox-suggestEmpty{
  padding: 12px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 700;
}

.vx-inbox-onlineBlock{
  position: relative;
  z-index: 1;
  margin-top: 14px;
}
.vx-inbox-onlineTitle{
  font-weight: 950;
  letter-spacing: -0.4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.vx-inbox-onlineStrip{
  display:flex;
  gap:14px;
  overflow:auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.vx-inbox-onlineStrip::-webkit-scrollbar{ height: 6px; }
.vx-inbox-onlineStrip::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.25); border-radius: 999px; }

.vx-inbox-onlineItem{
  border:0;
  background: transparent;
  color:#fff;
  padding:0;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap:6px;
  min-width: 72px;
  cursor:pointer;
}

.vx-inbox-avatarRing{
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from 180deg, #ff7a18, #af002d, #319197, #ff7a18);
}
.vx-inbox-avatarRing--sm{
  width: 52px;
  height: 52px;
  display: flex;
  border-radius: 18px;
}

.vx-inbox-avatar{
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}
.vx-inbox-avatar--sm{ border-radius: 16px; }

.vx-inbox-onlineDot{
  position:absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #22c55e;
  right: 2px;
  bottom: 2px;
  border: 2px solid rgba(0,0,0,.15);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.vx-inbox-onlineDot--off{
  background: rgba(255,255,255,.35);
}

.vx-inbox-onlineNick{
  font-size: 12px;
  font-weight: 800;
  opacity: .92;
  max-width: 74px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-inbox-body{
  padding: 14px 0 0;
}

.vx-inbox-sectionTitle{
  font-weight: 950;
  letter-spacing: -0.5px;
  margin: 10px 0 10px;
  font-size: 16px;
  color: var(--vx-text, #0b1220);
}

/* lista */
.vx-inbox-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.vx-inbox-rowWrap{
  display:flex;
  align-items:stretch;
  gap:8px;
}

/* row */
.vx-inbox-row{
  width:100%;
  flex:1;
  text-align:left;
  border: 1px solid var(--vx-border-2, rgba(0,0,0,.06));
  background: var(--vx-surface, #fff);
  box-shadow: var(--vx-shadow-xs, 0 4px 10px rgba(0,0,0,.05));
  border-radius: 18px;
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items:center;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.vx-inbox-row:active{ transform: scale(.99); }

.vx-inbox-challengeBtn{
  width:44px;
  border-radius:14px;
  border:1px solid color-mix(in srgb, var(--vx-danger, #ef4444) 36%, var(--vx-border-2, rgba(0,0,0,.08)));
  background:color-mix(in srgb, var(--vx-danger, #ef4444) 8%, #fff);
  color:var(--vx-danger, #ef4444);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  transition:transform .12s ease, box-shadow .12s ease;
}

.vx-inbox-challengeBtn:not(:disabled):hover{
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(239,68,68,.2);
}

.vx-inbox-challengeBtn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.vx-inbox-row--unread{
  border-color: color-mix(in srgb, var(--vx-brand, #8A05BE) 22%, rgba(0,0,0,.06));
  box-shadow: 0 10px 20px rgba(138,5,190,.10);
}

.vx-inbox-rowLeft{ flex:0 0 auto; }
.vx-inbox-rowMid{ flex:1; min-width:0; }

.vx-inbox-rowTop{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}
.vx-inbox-rowNick{
  font-weight: 950;
  letter-spacing: -0.4px;
  color: var(--vx-text, #0b1220);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vx-inbox-rowMeta{
  display:flex;
  align-items:center;
  gap: 8px;
  flex:0 0 auto;
}
.vx-inbox-rowWhen{
  font-size: 12px;
  color: var(--vx-muted, rgba(0,0,0,.55));
  font-weight: 700;
  white-space: nowrap;
}

.vx-inbox-unread{
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--vx-brand, #8A05BE);
  color: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 950;
  padding: 0 7px;
}

.vx-inbox-rowSub{
  margin-top: 2px;
  font-size: 12px;
  color: var(--vx-muted, rgba(0,0,0,.55));
  font-weight: 700;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-inbox-rowLast{
  margin-top: 6px;
  font-size: 13px;
  color: var(--vx-text, #0b1220);
  opacity: .85;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vx-inbox-empty,
.vx-inbox-emptyOnline{
  padding: 14px;
  border-radius: 18px;
  border: 1px dashed var(--vx-border-2, rgba(0,0,0,.06));
  color: var(--vx-muted, rgba(0,0,0,.55));
  background: color-mix(in srgb, var(--vx-surface, #fff) 86%, transparent);
}

/* skeleton */
.vx-inbox-skel{
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--vx-border-2, rgba(0,0,0,.06));
  background: var(--vx-surface, #fff);
}
.vx-skel-row{
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  margin: 10px 0;
}
.vx-skel-row:first-child{ width: 70%; }
.vx-skel-row:nth-child(2){ width: 45%; }
.vx-skel-row:nth-child(3){ width: 85%; }
