

.online_friends_list {
  .list_item {
    overflow: hidden;

    &:hover {
      background: url("/assets/bkg4-349bbe9b.png");
    }

    &:active {
      background: white;
    }
  }

  .avatar {
    float: left;
    margin-right: 10px;
  }

  .username, .rank {
    font-family: 'Acme';
    font-size: 18px;
  }

  .username {
    margin-top: 5px;
    font-size: 18px;
  }

  .rank {
    position: absolute;
    top: 10px;
    right: 10px;
    color: grey;
  }

  .time {
    color: grey;
    margin-top: 5px;
    font-size: 14px;
  }
}

#network {
  padding: 20px;
}

.friendships_forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;

  .friendship_form_card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 48, 68, 0.05);
  }

  .friendship_form_header {
    margin-bottom: 16px;

    .page_subtitle {
      margin: 0 0 4px;
      color: #263746;
      font-size: 22px;
    }

    p {
      margin: 0;
      color: #647181;
      font-size: 14px;
      line-height: 1.4;
    }
  }

  .friendship_form_label {
    display: block;
    margin-bottom: 7px;
    color: #34475a;
    font: 15px 'Acme';
  }

  .friendship_form_controls {
    display: flex;
    align-items: stretch;
    gap: 8px;

    input[type='text'], input[type='email'] {
      box-sizing: border-box;
      min-width: 0;
      width: 100%;
      padding: 9px 11px;
      border: 1px solid #bdcad5;
      border-radius: 7px;
      background: #fff;
      color: #263746;
      font-size: 16px;

      &:focus-visible {
        border-color: #1686bb;
        outline: 2px solid #b8e4fa;
        outline-offset: 1px;
      }
    }

    .btn_link {
      flex: none;
      padding: 8px 13px;
      border: 1px solid #1686bb;
      border-radius: 7px;
      background: var(--btn-primary);
      color: #08354d;
      font-size: 16px;
      white-space: nowrap;

      &:hover, &:focus-visible {
        border-color: #0874aa;
        background: #18a7e8;
      }

      &:focus-visible {
        outline: 2px solid #176b96;
        outline-offset: 2px;
      }
    }
  }
}

@media (max-width: 760px) {
  #network {
    padding: 14px;
  }

  .friendships_forms {
    grid-template-columns: 1fr;
    gap: 12px;

    .friendship_form_card {
      padding: 17px 16px;
    }
  }
}

@media (max-width: 460px) {
  .friendships_forms .friendship_form_controls {
    flex-direction: column;

    .btn_link {
      width: 100%;
    }
  }
}

#requested_list {
  margin-bottom: 10px;
}

.friend_list_item {
  font-family: 'Acme';

  .title {
    display: block;
    margin-top: 7px;
    font-size: 18px;
  }

  .avatar {
    float: left;
    margin-right: 10px;
  }

  .username {
    margin-top: 3px;
    color: #333;
    display: inline-block;
    font-family: 'Acme';
    font-size: 18px;
  }

  .friend_username {
    font-size: 22px;
    margin-top: 10px;
  }

  .status {
    margin-top: 5px;
  }

  .pending_rank, .friend_rank {
    margin-top: 3px;
    color: #666;
    font-size: 16px;
  }

  .friend_rank {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .links {
    margin-top: 5px;

    a {
      margin-right: 5px;

      &:hover {
        color: dodgerblue;
      }
    }
  }

  .buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
  }
}
