/* PROFIL FRIENDS BLOCK */
.friends-card {
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  border: var(--border);
  padding: 1em 1.2em 1em 1.2em;
  margin-top: 1em;
  text-align: left;
}

.friends-card h4 {
  font-size: 1em;
  font-weight: 700;
  color: var(--color-main);
  margin-top: 0.15em;
  margin-bottom: 0.15em;
  margin-right: 1em;
  display: inline-block;
  float: left;
}

.friends-list-raw {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.46em;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

.friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(24,145,195,0.08);
  transition: transform 0.17s, box-shadow 0.15s;
}

.friend-avatar:hover {
  transform: scale(1.09);
  box-shadow: 0 4px 18px rgba(24,145,195,0.15);
}

.btn-show-all {
  font-size: 0.93em;
  margin-left: 0.5em;
  font-weight: 600;
  color: var(--color-main);
  text-decoration: none;
  background: var(--glass-bg);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 0.38em 1.1em;
  box-shadow: 0 1px 6px rgba(24,145,195,0.06);
  transition: background 0.13s, color 0.13s;
}
.btn-show-all:hover {
  background: var(--color-main);
  color: #fff;
}


/* Стилі друзів */
.friends-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 1.3em;
}
.friend-card {
  background: rgba(255,255,255,0.65);
  border-radius: 16px;
  box-shadow: 0 1.5px 7px 0 rgba(24,145,195,0.06);
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 140px;
  position: relative;
  transition: box-shadow .18s, background .14s;
  border: 1.4px solid #f2f5f8;
}
.friend-card:hover {
  box-shadow: 0 8px 36px 0 rgba(24,145,195,0.13);
  background: rgba(255,255,255,0.87);
}
.friend-avatar-wrap {
  margin-bottom: 10px;
  position: relative;
}
.friend-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 1.5px 10px 0 rgba(24,145,195,0.08);
}
.friend-online-dot {
  position: absolute;
  bottom: 10px;
  right: 135px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #49db83;
  border: 2px solid #fff;
  box-shadow: 0 0 7px #30a15770;
}
.friend-info { text-align: center; width: 100%; margin-bottom: 12px; }
.friend-name {
  font-size: 1.11em; font-weight: 600;
  color: var(--color-main, #1891c3); line-height: 1.18;
}
.friend-login { color: #92a1b6; font-size: 0.97em; margin-top: 2px; }
.friend-city { color: #6bb784; font-size: 0.93em; margin-top: 1px; }
.friend-actions {
  display: flex; justify-content: center;
  gap: 0.38em; width: 100%; margin-top: 3px;
}
.friend-actions .btn {
  background: rgba(230,240,250,0.80);
  border: none; color: var(--color-main, #1891c3);
  font-size: 1.2em; padding: 0.45em 0.67em;
  border-radius: 0.77em; cursor: pointer;
  transition: background .13s, color .14s; margin: 0;
}
.friend-actions .btn:hover {
  background: var(--color-main, #1891c3); color: #fff;
}
.friend-actions .btn-danger {
  background: #f45a63; color: #fff;
}
.friend-actions .btn-danger:hover {
  background: #c81324;
}
.friend-profile-link {
  display: block; width: 100%;
  text-align: center; color: inherit;
  text-decoration: none;
  transition: background .12s;
  border-radius: 16px; cursor: pointer;
}
.friend-profile-link:hover, .friend-profile-link:focus {
  background: rgba(183,224,253,0.08); text-decoration: none;
}


@media (max-width: 540px) {
  .friend-avatar {
    width: 32px;
    height: 32px;
  }
  .friends-card h3 {
    font-size: 1em;
  }
  .friends-card {
    padding: 0.7em 0.7em;
  }
}
