@import url(../../../../assets/css/base.css);
@import url(./huetten_base.css);
@import url(./navbar.css);

/* =========================
   Page
========================= */

.page-head{
  width: 85%;
  margin-top: 1.1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .8rem;
}

.page-head h1{
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 900;
}

.btn-home{
  display:inline-flex;
  align-items:center;
  gap: .45rem;
  padding:.55rem .85rem;
  border-radius:1rem;
  background: var(--bg-surface-hover);
  border: 1px solid var(--divider-main);
  color: var(--text-main);
  text-decoration:none;
  font-weight:900;
  font-size:.8rem;
}

.btn-home:active{
  transform: scale(.99);
}


/* =========================
   Card
========================= */

.card{
  width: calc(85% - 2rem);
  margin: 1rem 0;
  background: var(--bg-surface-2);
  border: 1px solid var(--divider-color);
  border-radius: 1.1rem;
  padding: .9rem;

  display:flex;
  flex-direction:column;
  gap: .75rem;
}

.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 1rem;
}

.card-head h2{
  margin:0;
  color: var(--text-primary);
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.25;
}

.muted{
  color: var(--text-muted);
  opacity: .9;
  font-size: .74rem;
  font-weight: 800;
}


/* =========================
   Users / People
========================= */

.person-list{
  display:flex;
  flex-direction:column;
  gap: .55rem;
}

.person-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .8rem;

  padding: .6rem .65rem;
  border-radius: .95rem;

  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);

  text-decoration:none;
  color: inherit;
}

.person-row:active{
  transform: scale(.99);
}

.person-left{
  display:flex;
  align-items:center;
  gap: .75rem;
  min-width: 0;
}


/* =========================
   Avatar
========================= */

.avatar-wrap{
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
}

.avatar,
.avatar-fallback{
  width: 2.1rem;
  height: 2.1rem;
  border-radius: .85rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;

  background: rgba(50,205,0,.12);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--green-text);

  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.avatar{
  object-fit: cover;
  display: block;
}


/* =========================
   Text
========================= */

.person-text{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: .15rem;
}

.person-name{
  margin: 0;
  color: var(--text-primary);
  font-size: .88rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-meta{
  display:flex;
  flex-wrap:wrap;
  gap: .45rem;
}

.person-sub,
.person-meta{
  margin: 0;
  color: var(--text-muted);
  opacity: .9;
  font-size: .74rem;
  font-weight: 800;
}


/* =========================
   Pills
========================= */

.pill{
  display:inline-flex;
  align-items:center;
  gap: .35rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-secondary);
  white-space: nowrap;
}

.pill b{
  color: var(--text-main);
  font-weight: 900;
}


/* =========================
   Current User
========================= */

.person-name-muted {
    color: var(--text-muted);
    font-weight: 800;
}

.person-separator {
    height: 1.5px;
    width: 100%;
    background-color: var(--border-main);
    opacity: .9;
}

/* =========================
   Chevron
========================= */

.chev{
  font-size: 1.3rem;
  line-height: 1;
  opacity: .55;
  transform: translateY(-1px);
  user-select: none;
}


/* =========================
   Empty
========================= */

.empty{
  padding: .8rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255,255,255,.14);
  color: var(--text-secondary);
  font-weight: 800;
  text-align: center;
}











.sort-tabs {
    width: calc(100% - 2rem);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.sort-tab {
  width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 42px;
    border-radius: 1rem;
    text-decoration: none;
    color: rgba(255,255,255,0.68);
    font-weight: 700;
    font-size: 0.88rem;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sort-tab span {
    font-size: 1rem;
    opacity: 0.9;
}

.sort-tab:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.92);
    transform: translateY(-1px);
}

.sort-tab.is-active {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

@media (max-width: 420px) {
    .sort-tab {
        font-size: 0.8rem;
        gap: 5px;
    }
}